[PATCH] D147835: [X86][mem-fold] Speed up test by not re-generating the .inc file
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 7 21:34:30 PDT 2023
skan created this revision.
Herald added a project: All.
skan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147835
Files:
llvm/test/TableGen/lit.local.cfg
llvm/test/TableGen/x86-fold-tables.td
Index: llvm/test/TableGen/x86-fold-tables.td
===================================================================
--- llvm/test/TableGen/x86-fold-tables.td
+++ llvm/test/TableGen/x86-fold-tables.td
@@ -3,5 +3,4 @@
// fix the vulnerable rules in X86FoldTablesEmitter.cpp until the diff is reasonable
// 2. cp <generated_file> x86-fold-tables.inc
-// RUN: llvm-tblgen -gen-x86-fold-tables -asmwriternum=1 %p/../../lib/Target/X86/X86.td -I %p/../../lib/Target/X86 -I %p/../../include -o %t
-// RUN: diff %p/x86-fold-tables.inc %t
+// RUN: diff %p/x86-fold-tables.inc %llvm_lib_dir/Target/X86/X86GenFoldTables.inc
Index: llvm/test/TableGen/lit.local.cfg
===================================================================
--- llvm/test/TableGen/lit.local.cfg
+++ llvm/test/TableGen/lit.local.cfg
@@ -1,2 +1,3 @@
config.suffixes = ['.td']
config.excludes = ['Common']
+config.substitutions.append(('%llvm_lib_dir', f'{config.llvm_lib_dir}'))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147835.511845.patch
Type: text/x-patch
Size: 949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230408/6747c181/attachment.bin>
More information about the llvm-commits
mailing list