search for: offimm

Displaying 1 result from an estimated 1 matches for "offimm".

Did you mean: offsimm
2013 Feb 03
1
[LLVMdev] Chain and glue operands should occur at end of operand list
...Emitter::AddOperand. I am writing a back end for CortexM0 (for self teaching purposes), I am working on LDR with immediate offset instruction. In the ARM backend, if the offset is 0, the following code is executed by the function ARMDAGToDAGISel::SelectThumbAddrModeImm5S Base = N.getOperand(0); OffImm = CurDAG->getTargetConstant(0, MVT::i32); If I do a similar thing in my backend, I get this assertion message. I found out that if I execute the code below, the problem disappear. Base = N; OffImm = CurDAG->getTargetConstant(0, TM.getTargetLowering()->getPointerTy()); Only the change...