[llvm] cbe4499 - Revert "[X86][mem-fold] Speed up test by not re-generating the .inc file"

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 05:18:24 PDT 2023


Author: Nico Weber
Date: 2023-04-11T08:17:55-04:00
New Revision: cbe4499d6b88b1bd6e4c30096cd33d4218fc0a84

URL: https://github.com/llvm/llvm-project/commit/cbe4499d6b88b1bd6e4c30096cd33d4218fc0a84
DIFF: https://github.com/llvm/llvm-project/commit/cbe4499d6b88b1bd6e4c30096cd33d4218fc0a84.diff

LOG: Revert "[X86][mem-fold] Speed up test by not re-generating the .inc file"

This reverts commit 070233dab0fdc6098a8b645774003fb0511e5962.

It also reverts follow-ups 2588e831af4a2240825215670c53717f07a95b3a and
027f60a6e9fa0b2ddf9eecc65aab8fde0b527f51.

Added: 
    llvm/test/TableGen/x86-fold-tables.td

Modified: 
    llvm/test/TableGen/lit.local.cfg

Removed: 
    llvm/test/TableGen/x86-fold-tables.test


################################################################################
diff  --git a/llvm/test/TableGen/lit.local.cfg b/llvm/test/TableGen/lit.local.cfg
index ba0a5eeb911f5..1dbd83e71d816 100644
--- a/llvm/test/TableGen/lit.local.cfg
+++ b/llvm/test/TableGen/lit.local.cfg
@@ -1,3 +1,2 @@
-config.suffixes = ['.td', '.test']
+config.suffixes = ['.td']
 config.excludes = ['Common']
-config.substitutions.append(('%llvm_lib_dir', f'{config.llvm_lib_dir}'))

diff  --git a/llvm/test/TableGen/x86-fold-tables.test b/llvm/test/TableGen/x86-fold-tables.td
similarity index 59%
rename from llvm/test/TableGen/x86-fold-tables.test
rename to llvm/test/TableGen/x86-fold-tables.td
index db9756f0060f3..d6e59bea0000b 100644
--- a/llvm/test/TableGen/x86-fold-tables.test
+++ b/llvm/test/TableGen/x86-fold-tables.td
@@ -3,5 +3,5 @@
 //      fix the vulnerable rules in X86FoldTablesEmitter.cpp until the 
diff  is reasonable
 //   2. cp <generated_file> x86-fold-tables.inc
 
-// REQUIRES: x86-registered-target
-// RUN: 
diff  %p/x86-fold-tables.inc %llvm_lib_dir/Target/X86/X86GenFoldTables.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


        


More information about the llvm-commits mailing list