From dee4cd0f73ac4d4de22cee8ee108d47ba9a48362 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 21 Aug 2019 19:14:38 +0000 Subject: [PATCH] [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. llvm-svn: 369564 --- test/TableGen/intrinsic-varargs.td | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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,