[LLVMdev] target specific ways to extend ConstantExpr
Chris Lattner
clattner at apple.com
Mon Dec 17 16:38:45 PST 2012
On Dec 17, 2012, at 4:23 PM, Yuan Lin <yulin at nvidia.com> wrote:
> The particular case we are looking at is converting a pointer from one address space to another address space. There is one operand and one output, both are the same pointer type, except for their address space. The pointers are of the same size. The operation is a bit-changing operation.
> We are using intrinsic functions for the instructions. We need a solution for the ConstantExpr.
Sounds like a bitcast to me. Is there a reason the bitcast constexpr isn't working for you?
> Instead of adding one target specific expression, it would be better to have a more generic scheme in LLVM.
I agree! However, fixing this is also a lot of work.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121217/a44750ea/attachment.html>
More information about the llvm-dev
mailing list