llvm IR provides capabilities somewhere between C and an idealised assembly
language for mainstream CPUs but with things such as an infinite number of
registers.
If you are writing a compiler for a language very different to C then it's
your job to figure out how to map your language features onto C/generalised
ASM.
On Wed, May 24, 2017 at 11:46 AM, Jajoo, Malhar via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
>
> I am building a LLVM based compiler for a custom language , but would like
> to know if there is any support for Monomorphization in LLVM.
>
>
> But the fact that llvm::Type cannot be mutated , makes it harder to
> implement this.
>
> ( Looking at the API , I see some member functions in the llvm::Value
> class documentation but they were not necessarily helpful ).
>
>
> Thanks,
>
> Malhar
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20170524/395d199b/attachment-0001.html>