llvm-project/llvm
Yatao Wang 8565b6f9f2 [UpdateLLCTestChecks] Add support for isel debug output in update_llc_test_checks.py
Add a check on run lines to pick up isel options in llc commands and allow
generating check lines of isel final output other than assembly. If llc command
line contains -debug-only=isel, update_llc_test_checks.py will try to scrub isel
output, otherwise, the script will fall back on default behaviour, which is try to
scrub assembly output instead.

The motivation of this change is to allow usage of update_llc_test_checks.py to
autogenerate checks of instruction selection results. In this way, we can detect
errors at an earlier stage before the compilation goes all the way to assembly.
It is an example of having some transparency for the stages between IR and
assembly. These generated tests are almost like "unit tests" of isel stage.

This patch only implements the initial change to differentiate isel output from
assembly output for Lanai. Other targets will not be supported for isel check
generation at the moment. Although adding support for it will only require
implementing the function regex and scrubber for corresponding targets.

The Lanai implementation was chosen mainly for the simplicity of demonstrating
the difference between isel checks and asm checks.

This patch also do not include the implementation of function prefix, which is
required for the generated isel checks to pass. I will put up a follow up revision
for the function prefix change to complete isel support.

Reviewed By: Flakebi

Differential Revision: https://reviews.llvm.org/D119368
2022-03-01 10:55:53 +01:00
..
benchmarks
bindings [llvm] [bindings/OCaml] Remove unused dep on ounit2 2022-02-16 19:30:25 +01:00
cmake [CMake][WinMsvc] Replace MSVC_BASE/WINSDK_BASE with LLVM_WINSYSROOT 2022-02-24 11:47:22 -08:00
docs [doc] Add llvm-ifs commandline guide 2022-02-28 11:18:09 -08:00
examples
include [Support] Allow the ability to change WithColor's auto detection function 2022-02-28 20:30:06 -08:00
lib Revert "[TypePromotion] Avoid some unnecessary truncs" 2022-03-01 08:59:52 +00:00
projects
resources
runtimes [llvm] add missing word in a comment 2022-02-10 20:57:13 -05:00
test [UpdateLLCTestChecks] Add support for isel debug output in update_llc_test_checks.py 2022-03-01 10:55:53 +01:00
tools [ASan] Removed unused AddressSanitizerPass functional pass. 2022-03-01 00:41:29 +00:00
unittests [test] Silence compiler warning. 2022-02-28 18:46:55 -06:00
utils [UpdateLLCTestChecks] Add support for isel debug output in update_llc_test_checks.py 2022-03-01 10:55:53 +01:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT [LoongArch 1/6] Add triples loongarch{32,64} for the upcoming LoongArch target 2022-02-10 10:23:34 +00:00
CREDITS.TXT [Docs] Add self to credits 2022-02-22 16:43:53 -08:00
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.