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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 12:14:38 PDT 2019


Author: ctopper
Date: Wed Aug 21 12:14:38 2019
New Revision: 369564

URL: http://llvm.org/viewvc/llvm-project?rev=369564&view=rev
Log:
[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.

Modified:
    llvm/trunk/test/TableGen/intrinsic-varargs.td

Modified: llvm/trunk/test/TableGen/intrinsic-varargs.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/TableGen/intrinsic-varargs.td?rev=369564&r1=369563&r2=369564&view=diff
==============================================================================
--- llvm/trunk/test/TableGen/intrinsic-varargs.td (original)
+++ llvm/trunk/test/TableGen/intrinsic-varargs.td Wed Aug 21 12:14:38 2019
@@ -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<LLVMTy
   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,




More information about the llvm-commits mailing list