[LLVMdev] Returning i1 type ints from C code ?

Gordon Keiser gkeiser at arxan.com
Wed Sep 21 19:55:48 PDT 2011


I was wondering if there was any way to return an i1 type (or something that llvm would accept as one, internally) from a C function compiled with llvm-gcc.   My thought from searching around was that it might take rewriting (or at least writing a wrapper to %trunc the result) in assembly.   I'm fairly new to LLVM so I may have missed something important.

Any thoughts ?

Thanks much,
Gordon Keiser

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110921/d5e19fc2/attachment.html>

More information about the llvm-dev mailing list