llvm-project/llvm
Krzysztof Parzyszek f6e7ad5604 [Hexagon] Revamp type legalization of ext/trunc/sat in HVX
Resizing operations (e.g. sign extension) in DAG can go from any width
to any other width, e.g. i8 -> i32. If the input and the result differ
by a factor larger than 2, the operation cannot be legal in HVX, since
the only two legal vector sizes in HVX are a single vector and a pair
of vectors.
To simplify the legalization, such operations are expanded into steps
that only double/halve the type size, so that each such step can be fully
legalized on its own. The complication is that DAG will automatically
fold these steps back into one, e.g. sext(sext) -> sext. To prevent that
new HexagonISD nodes are introduced: TL_EXTEND and TL_TRUNCATE. Once
legalized, these nodes are replaced with the original opcodes.

The type legalization is now common to aext/sext/zext/trunc and Hexagon-
specific ssat/usat nodes.
2022-09-21 11:25:27 -07:00
..
benchmarks
bindings [ConstantExpr] Remove fneg expression 2022-09-08 10:24:55 +02:00
cmake [llvm] prefix linker flag on non-MSVC compilers with `-Wl,` 2022-09-21 11:18:42 -05:00
docs [LangRef][Docs] Fix RST header length for GC intrinsics 2022-09-21 16:53:55 +01:00
examples
include [RegisterCoalescer] Use LiveRangeEdit to handle rematerialization 2022-09-21 17:51:07 +00:00
lib [Hexagon] Revamp type legalization of ext/trunc/sat in HVX 2022-09-21 11:25:27 -07:00
projects
resources
runtimes [NFC] Fix typo in comment 2022-09-20 17:22:08 -04:00
test [Hexagon] Revamp type legalization of ext/trunc/sat in HVX 2022-09-21 11:25:27 -07:00
tools [llvm-profgen] Remove CommaSeparated option from perf file cl 2022-09-21 09:46:21 -07:00
unittests Change isLittleEndian to follow llvm style and add an accessor 2022-09-20 17:00:47 -07:00
utils [lit] Work around another windows issue in new test from 28412d1800 2022-09-21 14:08:10 -04:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Revert "[llvm] Remove libcxx, libcxxabi and libunwind from supported LLVM_ENABLE_PROJECTS" 2022-09-21 08:38:00 -04:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.