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
magic?

Thanks!

                         -Dave

I added some comments here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100426/100541.html

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

Dan

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

Thanks for the extra commentary on TargetConstant.

                           -Dave