[PATCH] D123897: [X86] Unbreak LIT/FileCheck

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 16 06:02:48 PDT 2022


lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, jdoerfert, craig.topper, nikic, mtrofin, jhenderson, MaskRay.
lebedev.ri added a project: LLVM.
Herald added subscribers: StephenFan, pengfei.
Herald added a project: All.
lebedev.ri requested review of this revision.

D95849 <https://reviews.llvm.org/D95849> was a tragedy/sabotage that should have never happened.
It makes writing new codegen tests impossible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123897

Files:
  llvm/test/CodeGen/X86/lit.local.cfg


Index: llvm/test/CodeGen/X86/lit.local.cfg
===================================================================
--- llvm/test/CodeGen/X86/lit.local.cfg
+++ llvm/test/CodeGen/X86/lit.local.cfg
@@ -1,2 +1,8 @@
+# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
+from lit.llvm.subst import ToolSubst
+
 if not 'X86' in config.root.targets:
     config.unsupported = True
+
+fc = ToolSubst('FileCheck', unresolved='fatal')
+config.substitutions.insert(0, (fc.regex, 'FileCheck --allow-unused-prefixes'))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123897.423233.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220416/02fb467f/attachment.bin>


More information about the llvm-commits mailing list