search for: getregbank

Displaying 3 results from an estimated 3 matches for "getregbank".

2013 May 17
2
[LLVMdev] Types vs. register classes in instruction patterns -- effect on FastISel
...;RegisterOperand")) OpLeafRec = OpLeafRec->getValueAsDef("RegClass"); if (OpLeafRec->isSubClassOf("RegisterClass")) RC = &Target.getRegisterClass(OpLeafRec); else if (OpLeafRec->isSubClassOf("Register")) RC = Target.getRegBank().getRegClassForRegister(OpLeafRec); else return false; What's the proper thing to do here? If we can map a ValueType to a register class, then we'd be ok. I don't immediately see an interface that will do this (indeed, I guess I'm not certain that's guaranteed...
2013 May 17
0
[LLVMdev] Types vs. register classes in instruction patterns -- effect on FastISel
...t;)) > OpLeafRec = OpLeafRec->getValueAsDef("RegClass"); > if (OpLeafRec->isSubClassOf("RegisterClass")) > RC = &Target.getRegisterClass(OpLeafRec); > else if (OpLeafRec->isSubClassOf("Register")) > RC = Target.getRegBank().getRegClassForRegister(OpLeafRec); > else > return false; > > What's the proper thing to do here? If we can map a ValueType to a > register class, then we'd be ok. I don't immediately see an interface > that will do this (indeed, I guess I'm not ce...
2013 May 19
1
[LLVMdev] Types vs. register classes in instruction patterns -- effect on FastISel
...eafRec = OpLeafRec->getValueAsDef("RegClass"); > > if (OpLeafRec->isSubClassOf("RegisterClass")) > > RC = &Target.getRegisterClass(OpLeafRec); > > else if (OpLeafRec->isSubClassOf("Register")) > > RC = Target.getRegBank().getRegClassForRegister(OpLeafRec); > > else > > return false; > > > > What's the proper thing to do here? If we can map a ValueType to a > > register class, then we'd be ok. I don't immediately see an interface > > that will do this (...