Displaying 1 result from an estimated 1 matches for "tgprregclass".
Did you mean:
gprregclass
2014 Aug 20
2
[LLVMdev] ARMv4T Copy Lowering
....getParent();
+ const ARMSubtarget &st = MF.getTarget().getSubtarget<ARMSubtarget>();
+
assert(ARM::GPRRegClass.contains(DestReg, SrcReg) &&
"Thumb1 can only copy GPR registers");
+
+ if (st.hasV6Ops() || ARM::hGPRRegClass.contains(SrcReg)
+ || ! ARM::tGPRRegClass.contains(DestReg)) {
+ AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tMOVr), DestReg)
+ .addReg(SrcReg, getKillRegState(KillSrc)));
+ } else {
+ // This is the only way we can move low -> low for < v6.
+ AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::tPUSH)))
+ .addReg(SrcReg,...