1 // RUN: llvm-tblgen -gen-intrinsic-enums %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 def iAny : ValueType<0, 253>;
28 def llvm_anyint_ty : LLVMType<iAny>;
30 // Make sure we generate the long name without crashing
31 // CHECK: this_is_a_really_long_intrinsic_name_but_we_should_still_not_crash // llvm.this.is.a.really.long.intrinsic.name.but.we.should.still.not.crash
32 def int_foo : Intrinsic<"llvm.foo", [llvm_anyint_ty]>;
33 def int_this_is_a_really_long_intrinsic_name_but_we_should_still_not_crash : Intrinsic<"llvm.this.is.a.really.long.intrinsic.name.but.we.should.still.not.crash", [llvm_anyint_ty]>;