[LLVMdev] types allowed for intrinsics?
Eli Friedman
eli.friedman at gmail.com
Mon Jul 13 21:27:52 PDT 2009
On Mon, Jul 13, 2009 at 9:12 PM, Vinod Grover<vgrover528 at gmail.com> wrote:
> Unfortunately that does not work, since the bitcast will generate a convert
> and the argument of the intrinsic will be a value type i8* and the
> intrinsics is intended to map to an instruction that accepts only a
> symbolic.
A value in LLVM normally doesn't have that sort of identity... what
exactly are you doing?
For a normal intrinsic, if you're using LLVM CodeGen, it shouldn't be
possible to distinguish normally, and otherwise, you should be able to
look through the bitcast.
-Eli
More information about the llvm-dev
mailing list