Target Constants

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



I added some comments here:

To put a constant in memory, you should use a constant pool entry, and the
constant pool infrastructure.


Yeah, I figured that was the case. Oh, I just found an example in x86
lowering. Great!

Thanks for the extra commentary on TargetConstant.