[LLVMdev] types allowed for intrinsics?

Chris Lattner clattner at apple.com
Mon Jul 13 20:57:01 PDT 2009


On Jul 13, 2009, at 8:41 PM, Vinod Grover wrote:

> I was looking at the LLVM IR documentation and was wondering if it  
> is possible to define  LLVM intrinsics which might be a pointer to  
> some pre-defined struct or opaque types?
> If that is possible how would one go about doing that ?

You mean something like FILE*?  It's not possible to do that, but you  
can just define it as i8* and use a bitcast at the call site.

-Chris



More information about the llvm-dev mailing list