[LLVMdev] adding customized functions to the modules

Eli Friedman eli.friedman at gmail.com
Tue Aug 27 13:19:28 PDT 2013


On Tue, Aug 27, 2013 at 12:49 PM, emily thomas <emilythomas007 at gmail.com>wrote:

> I am new to llvm, so I apologise for the trivial question.
> 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?
>
>
LLVM IR can only contain LLVM IR types.  You'll have to perform some sort
of mapping.

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


More information about the llvm-dev mailing list