From: Craig Topper Date: Wed, 21 Aug 2019 19:14:38 +0000 (+0000) Subject: [TableGen] Include ValueTypes.td directly into the intrinsic-varargs.td test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3d41c932fd9bc3a89ab9b5a5008089bc816713a;p=llvm [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 --- diff --git a/test/TableGen/intrinsic-varargs.td b/test/TableGen/intrinsic-varargs.td index 05572eda8fd..6a2252215a8 100644 --- a/test/TableGen/intrinsic-varargs.td +++ b/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 { - string Namespace = "MVT"; - int Size = size; - int Value = value; -} - class LLVMType { ValueType VT = vt; } @@ -24,8 +20,6 @@ class Intrinsic param_types = []> { list Properties = []; } -// isVoid needs to match the definition in ValueTypes.td -def isVoid : ValueType<0, 129>; // Produces no value def llvm_vararg_ty : LLVMType; // this means vararg here // CHECK: /* 0 */ 0, 29, 0,