1 // RUN: llvm-tblgen -gen-register-bank -I %p/../../include %s | FileCheck %s
3 include "llvm/Target/Target.td"
6 def R0 : Register<"r0">;
8 def ClassA : RegisterClass<"MyTarget", [i32], 32, (add R0)>;
9 def ClassB : RegisterClass<"MyTarget", [i1], 32, (add ClassA)>;
12 // CHECK: GPRRegBankCoverageData
13 // CHECK: MyTarget::ClassARegClassID
14 // CHECK: MyTarget::ClassBRegClassID
15 def GPRRegBank : RegisterBank<"GPR", [ClassA]>;