Преглед на файлове

[TableGen] Include ValueTypes.td directly into the intrinsic-varargs.td test.

This prevents needing to keep the test in sync with ValueTypes.td

This is not the only test that includes ValueTypes.td.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369564 91177308-0d34-0410-b5e6-96231b3b80d8
Craig Topper преди 6 години
родител
ревизия
d3d41c932f
променени са 1 файла, в които са добавени 3 реда и са изтрити 9 реда
  1. 3 9
      test/TableGen/intrinsic-varargs.td

+ 3 - 9
test/TableGen/intrinsic-varargs.td

@@ -1,15 +1,11 @@
-// RUN: llvm-tblgen -gen-intrinsic-impl %s | FileCheck %s
+// RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s | FileCheck %s
 // XFAIL: vg_leak
 
+include "llvm/CodeGen/ValueTypes.td"
+
 class IntrinsicProperty;
 class SDNodeProperty;
 
-class ValueType<int size, int value> {
-  string Namespace = "MVT";
-  int Size = size;
-  int Value = value;
-}
-
 class LLVMType<ValueType vt> {
   ValueType VT = vt;
 }
@@ -24,8 +20,6 @@ class Intrinsic<string name, list<LLVMType> param_types = []> {
   list<SDNodeProperty> Properties = [];
 }
 
-// isVoid needs to match the definition in ValueTypes.td
-def isVoid : ValueType<0, 129>;   // Produces no value
 def llvm_vararg_ty : LLVMType<isVoid>;   // this means vararg here
 
 // CHECK: /* 0 */ 0, 29, 0,