1 // RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s | FileCheck %s
4 include "llvm/CodeGen/ValueTypes.td"
6 class IntrinsicProperty;
9 class LLVMType<ValueType vt> {
13 class Intrinsic<string name, list<LLVMType> param_types = []> {
14 string LLVMName = name;
16 string TargetPrefix = "";
17 list<LLVMType> RetTypes = [];
18 list<LLVMType> ParamTypes = param_types;
19 list<IntrinsicProperty> IntrProperties = [];
20 list<SDNodeProperty> Properties = [];
23 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
25 // CHECK: /* 0 */ 0, 29, 0,
26 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;