[LLVMdev] Target Constants

David Greene dag at cray.com
Thu Apr 29 08:23:57 PDT 2010


In SelectionDAG, what's the difference between getConstant and
getTargetConstant?  One creates a node with opcode Constant and the
other with TargetConstant.  What's the semantic difference?

In X86ISelLowering I need to create a constant vector and put
it in memory so I can reference it as an operand.  I don't see
any examples of doing this.  Is it possible?  If so, what's the
magic?

Thanks!

                         -Dave





More information about the llvm-dev mailing list