[LLVMdev] LLVM Backend
Ambuj Agrawal
ambujbwt at gmail.com
Mon Feb 16 08:19:10 PST 2015
I am working on LLVM backend and was wondering if there is any way by which
I can access the value stored SDValue so I can either assign it as a
literal or move it to register in an user defined instruction.
Something like:
SDValue Value = Op->getOperand(2);
intValue = Value.get_integer_value //get Value as an int
and then
if ( intValue > 31)
Thanks,
Ambuj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150216/9a72caa2/attachment.html>
More information about the llvm-dev
mailing list