[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
Mon Apr 10 19:05:21 PDT 2023
skan updated this revision to Diff 512309.
skan added a comment.
Address review comments: rename x86-fold-tables.td to x86-fold-tables.test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147835/new/
https://reviews.llvm.org/D147835
Files:
llvm/test/TableGen/lit.local.cfg
llvm/test/TableGen/x86-fold-tables.td
llvm/test/TableGen/x86-fold-tables.test
Index: llvm/test/TableGen/x86-fold-tables.test
===================================================================
--- llvm/test/TableGen/x86-fold-tables.test
+++ llvm/test/TableGen/x86-fold-tables.test
@@ -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.suffixes = ['.td', '.test']
config.excludes = ['Common']
+config.substitutions.append(('%llvm_lib_dir', f'{config.llvm_lib_dir}'))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147835.512309.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230411/f3d66710/attachment.bin>
More information about the llvm-commits
mailing list