1 // RUN: llvm-tblgen -gen-intrinsic-impl %s | FileCheck %s
4 class IntrinsicProperty;
7 class ValueType<int size, int value> {
8 string Namespace = "MVT";
13 class LLVMType<ValueType vt> {
17 class Intrinsic<string name, list<LLVMType> param_types = []> {
18 string LLVMName = name;
20 string TargetPrefix = "";
21 list<LLVMType> RetTypes = [];
22 list<LLVMType> ParamTypes = param_types;
23 list<IntrinsicProperty> IntrProperties = [];
24 list<SDNodeProperty> Properties = [];
27 // isVoid needs to match the definition in ValueTypes.td
28 def isVoid : ValueType<0, 127>; // Produces no value
29 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
31 // CHECK: /* 0 */ 0, 29, 0,
32 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;