[LLVMdev] can an alias Value be created?
edA-qa mort-ora-y
eda-qa at disemia.com
Sun Oct 20 21:22:44 PDT 2013
I'm in a situation where my code would be simpler if I could create a
Value object without saying where it comes from. Sometime later I would
attach an actual value to the object.
llvm::Value * placeholder = builder.CreatePlaceholder( a_type );
...
placeholder->setSource( actual_value );
I could in theory use a PHINode, but it needs an actual IR instruction
to be inserted. That's something I'm trying to avoid.
--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131021/e6479b8d/attachment.sig>
More information about the llvm-dev
mailing list