Bill,<br><br>  Thanks, yes, I realize that's not what it's for; however, it looks like with a little tweaking it would be possible but I'd rather not change the LLVM base code. Guess I'll just have to write my own code to do this, thanks.<br>
<br>  Also, the initial question, so there's no way to tell if int8 was a char in LLVM?<br><br>Thanks.<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 3:14 PM, Bill Wendling <span dir="ltr"><<a href="mailto:wendling@apple.com">wendling@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>

<br>
For you initial question, you cannot map back from LLVM IR to C types, because the two have little to do with each other.<br>
<br>
-bw<br>
<div><div class="h5"><br>
On Apr 16, 2012, at 2:43 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>
<br>
> 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?<br>
><br>
> On Mon, Apr 16, 2012 at 2:32 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>
> 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?<br>
><br>
</div></div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
</blockquote></div><br>