diff options
author | Fabian Ritter <fabian.ritter@amd.com> | 2025-07-24 09:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-24 09:58:45 +0200 |
commit | 78ccaf1295b35a62d3d5bcda76d83eae788a6f48 (patch) | |
tree | bea29bb1c6867ccfeceb968676b58c109731a572 /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 07faafe4a4d0a5bd82b648aa9717783f001ddfae (diff) | |
download | llvm-78ccaf1295b35a62d3d5bcda76d83eae788a6f48.zip llvm-78ccaf1295b35a62d3d5bcda76d83eae788a6f48.tar.gz llvm-78ccaf1295b35a62d3d5bcda76d83eae788a6f48.tar.bz2 |
[update_mir_test_checks] Add missing MIFlags (#150012)
If the update_mir_test_checks.py script is aware of MIFlags, it can produce
meaningful identifiers in generated FileCheck lines. A few MIFlags that were
introduced more recently have been missing from the script.
Ideally, the MIFlags would be specified in a single place and automatically
made known to the script to avoid this divergence, but for now adding a comment
pointing to the script at the place where the MIFlags are printed seems like a
reasonable trade-off.
This PR only regenerates check lines for a single test as an example of the
effect; other affected tests are not regenerated for now to avoid unnecessary
test churn.
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 7710b50..bc4e299 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -815,6 +815,9 @@ static void printMI(raw_ostream &OS, MFPrintState &State, if (MI.getFlag(MachineInstr::SameSign)) OS << "samesign "; + // NOTE: Please add new MIFlags also to the MI_FLAGS_STR in + // llvm/utils/update_mir_test_checks.py. + OS << TII->getName(MI.getOpcode()); LS = ListSeparator(); |