If what you're trying to do is use LLVM as a target-independent bitcode
representation, you should be aware that it's not made for that purpose. In
fact, it's specifically *not* target-independent, no matter what the types
are.
For you initial question, you cannot map back from LLVM IR to C types, because
the two have little to do with each other.
-bw
On Apr 16, 2012, at 2:43 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> So what I would like to do is redefine the widths for the types, making the
type widths more portable and less target dependent, is this possible within
llvm?
>
> On Mon, Apr 16, 2012 at 2:32 PM, Ryan Taylor <ryta1203 at gmail.com>
wrote:
> What is the best way to determine the type of an arbitrary int? For
example, find whether it is a char, short, int, long, long, etc?
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev