[LLVMdev] LLVM Backend DAGToDAGISel
Ambuj Agrawal
ambujbwt at gmail.com
Fri Feb 20 08:13:56 PST 2015
I am currently working on DAGToDAGISel class and am trying to figure out a
way for storing an immediate in register if it is greater than 31.
I have something like:
unsigned Imm = Node->getConstantOperandVal(2);
if (Imm > 31)
{
//wanted to load into the register and get the register number
Imm = Register number
}
Instead of storing it as immediate:
SDValue immediteVAL = CurDAG->getTargetConstant(Imm, MVT::i32);
Any clues or references which might help me with this?
Thanks,
Ambuj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150220/c3153973/attachment.html>
More information about the llvm-dev
mailing list