aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorRamkumar Ramachandra <Ramkumar.Ramachandra@imgtec.com>2023-10-31 14:33:53 +0000
committerGitHub <noreply@github.com>2023-10-31 14:33:53 +0000
commit4c01a58008055aa8a7ce6e1a770216cd86664711 (patch)
tree13a845b895eaf9c94162e239226504edf6d4c624 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parente7de95595c3391780c113c71ac82965abe1a1850 (diff)
downloadllvm-4c01a58008055aa8a7ce6e1a770216cd86664711.zip
llvm-4c01a58008055aa8a7ce6e1a770216cd86664711.tar.gz
llvm-4c01a58008055aa8a7ce6e1a770216cd86664711.tar.bz2
update_analyze_test_checks: support output from LAA (#67584)
update_analyze_test_checks.py is an invaluable tool in updating tests. Unfortunately, it only supports output from the CostModel, ScalarEvolution, and LoopVectorize analyses. Many LoopAccessAnalysis tests use hand-crafted CHECK lines, and it is moreover tedious to generate these CHECK lines, as the output fom the analysis is not stable, and requires the test-writer to hand-craft FileCheck matches. Alleviate this pain, and support output from: $ opt -passes='print<loop-accesses>' This patch includes several non-trivial changes including: - Preserving whitespace at the beginning of the line, so that the LAA output can be properly indented. - Regexes matching the unstable output, which is basically a pointer address hex. - Separating is_analyze from preserve_names clearly, as the former was formerly used as an overload for the latter. To demonstate the utility of this patch, several tests in LoopAccessAnalysis have been auto-generated by update_analyze_test_checks.py.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions