1// RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s | FileCheck %s 2// XFAIL: vg_leak 3 4include "llvm/CodeGen/ValueTypes.td" 5 6class IntrinsicProperty<bit is_default = 0> { 7 bit IsDefault = is_default; 8} 9class SDNodeProperty; 10 11class LLVMType<ValueType vt> { 12 ValueType VT = vt; 13} 14 15class Intrinsic<string name, list<LLVMType> param_types = []> { 16 string LLVMName = name; 17 bit isTarget = 0; 18 string TargetPrefix = ""; 19 list<LLVMType> RetTypes = []; 20 list<LLVMType> ParamTypes = param_types; 21 list<IntrinsicProperty> IntrProperties = []; 22 list<SDNodeProperty> Properties = []; 23 bit DisableDefaultAttributes = 1; 24} 25 26def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here 27 28// CHECK: /* 0 */ 0, 29, 0, 29def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>; 30