1 // RUN: llvm-tblgen -gen-intrinsic %s | FileCheck %s
3 class IntrinsicProperty;
5 class ValueType<int size, int value> {
6 string Namespace = "MVT";
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> Properties = [];
24 // isVoid needs to match the definition in ValueTypes.td
25 def isVoid : ValueType<0, 56>; // Produces no value
26 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
28 // CHECK: /* 0 */ 0, 27, 0,
29 def int_foo : Intrinsic<"llvm.foo", [llvm_vararg_ty]>;