<div dir="ltr">On Tue, Aug 27, 2013 at 12:49 PM, emily thomas <span dir="ltr"><<a href="mailto:emilythomas007@gmail.com" target="_blank">emilythomas007@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I am new to llvm, so I apologise for the trivial question.<br></div>I have an AST from antlr, and I am walking the tree and generating llvm IR from it.  When I get a function definition, I  call  <module>->getOrInsertFunction(..). But, my function arguments can have parameter or return types  not defined in enum TypeID. So, is there a way to map such functions? Or is the only way to do this is to map the datatpes to the llvm antlr types? <br>

</div><div><br></div></div></blockquote><div><br></div><div>LLVM IR can only contain LLVM IR types.  You'll have to perform some sort of mapping.</div><div><br></div><div>-Eli </div></div></div></div>