1 // Common target boilerplate for GlobalISelEmitter tests.
2 def MyTargetISA : InstrInfo;
3 def MyTarget : Target { let InstructionSet = MyTargetISA; }
5 def R0 : Register<"r0"> { let Namespace = "MyTarget"; }
6 def GPR32 : RegisterClass<"MyTarget", [i32], 32, (add R0)>;
7 def GPR32Op : RegisterOperand<GPR32>;
8 def F0 : Register<"f0"> { let Namespace = "MyTarget"; }
9 def FPR32 : RegisterClass<"MyTarget", [f32], 32, (add F0)>;
10 def FPR32Op : RegisterOperand<FPR32>;
11 def p0 : PtrValueType <i32, 0>;
13 class I<dag OOps, dag IOps, list<dag> Pat>
15 let Namespace = "MyTarget";
16 let OutOperandList = OOps;
17 let InOperandList = IOps;