[LLVMdev] Returning i1 type ints from C code ?
samuraileumas at yahoo.com
Thu Sep 22 12:07:42 CDT 2011
Clang can do it if you include <stdbool.h> . I found this out when writing a LibC wrapper library for LLVM Bitcode.
>From: Gordon Keiser <gkeiser at arxan.com>
>To: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu>
>Sent: Wednesday, September 21, 2011 9:55 PM
>Subject: [LLVMdev] Returning i1 type ints from C code ?
>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 ?
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev