[all-commits] [llvm/llvm-project] aacea0: [utils] Add script to generate elaborated IR and a...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed May 8 23:59:17 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aacea0d0f67401f5a0b74947f3ff179ade9cbf6d
https://github.com/llvm/llvm-project/commit/aacea0d0f67401f5a0b74947f3ff179ade9cbf6d
Author: Fangrui Song <i at maskray.me>
Date: 2024-05-08 (Wed, 08 May 2024)
Changed paths:
M llvm/docs/TestingGuide.rst
M llvm/test/tools/UpdateTestChecks/lit.local.cfg
A llvm/test/tools/UpdateTestChecks/update_test_body/Inputs/basic-asm.test.expected
A llvm/test/tools/UpdateTestChecks/update_test_body/Inputs/basic.test.expected
A llvm/test/tools/UpdateTestChecks/update_test_body/basic-asm.test
A llvm/test/tools/UpdateTestChecks/update_test_body/basic.test
A llvm/test/tools/UpdateTestChecks/update_test_body/empty-stdout.test
A llvm/test/tools/UpdateTestChecks/update_test_body/gen-absent.test
A llvm/test/tools/UpdateTestChecks/update_test_body/gen-fail.test
A llvm/test/tools/UpdateTestChecks/update_test_body/gen-unterminated.test
A llvm/test/tools/UpdateTestChecks/update_test_body/lit.local.cfg
M llvm/test/tools/llvm-dwarfdump/X86/formclass4.s
M llvm/test/tools/llvm-dwarfdump/X86/prettyprint_type_units_split_v5.s
A llvm/utils/update_test_body.py
Log Message:
-----------
[utils] Add script to generate elaborated IR and assembly tests (#89026)
Generally, IR and assembly test files benefit from being cleaned to
remove unnecessary details. However, for tests requiring elaborate
IR or assembly files where cleanup is less practical (e.g., large amount
of debug information output from Clang), the current practice is to
include the C/C++ source file and the generation instructions as
comments.
This is inconvenient when regeneration is needed. This patch adds
`llvm/utils/update_test_body.py` to allow easier regeneration.
`ld.lld --debug-names` tests (#86508) utilize this script for
Clang-generated assembly tests.
Note: `-o pipefail` is standard (since
https://www.austingroupbugs.net/view.php?id=789) but not supported by
dash.
Link:
https://discourse.llvm.org/t/utility-to-generate-elaborated-assembly-ir-tests/78408
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list