1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[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
This commit is contained in:
Craig Topper 2019-08-21 19:14:38 +00:00
parent b09118fb22
commit dee4cd0f73

View 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,