1 // RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s | FileCheck %s
4 include "llvm/CodeGen/ValueTypes.td"
6 class IntrinsicProperty<bit is_default = 0> {
7 bit IsDefault = is_default;
11 class LLVMType<ValueType vt> {
15 class Intrinsic<string name, list<LLVMType> param_types = []> {
16 string LLVMName = name;
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;
26 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
28 // CHECK: /* 0 */ 0, 29, 0,
29 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;