]> granicus.if.org Git - llvm/commitdiff
[TableGen] Include ValueTypes.td directly into the intrinsic-varargs.td test.
authorCraig Topper <craig.topper@intel.com>
Wed, 21 Aug 2019 19:14:38 +0000 (19:14 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 21 Aug 2019 19:14:38 +0000 (19:14 +0000)
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

test/TableGen/intrinsic-varargs.td

index 05572eda8fd4e4df96643bdafa15ce16c7d06954..6a2252215a830f256eb3e9fa02c91ef7c9182aa6 100644 (file)
@@ -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,