[LLVMdev] Add a new language to LLVM 3.6 Framework

Dibyendu Majumdar mobile at majumdar.org.uk
Wed Apr 8 04:35:18 PDT 2015


Hi,

For a simpler example you can look at Ravi - it is CMake based build.
Please see:

Https://github.com/dibyendumajumdar/ravi
------------------------------
From: Mehmet Erol Sanliturk <m.e.sanliturk at gmail.com>
Sent: ‎08/‎04/‎2015 11:17
To: Ambuj Agrawal <ambujbwt at gmail.com>
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Add a new language to LLVM 3.6 Framework



On Wed, Apr 8, 2015 at 2:16 AM, Ambuj Agrawal <ambujbwt at gmail.com> wrote:

> I am trying to add a new language to integrate with LLVM 3.6 Framework. I
> have followed a tutorial on - Kaleidoscope: Implementing a Language with
> LLVM but it dosen't explain anything on how to integrate a language with
> LLVM make build system. I have also gone through LLVMBuild Guide (
> http://llvm.org/docs/LLVMBuild.html) but am still stuck.
>
> My short term goals are to create a language/tool which takes an input
> file with ".bwt" file extensionand produces an output file with ".owt" file
> extension
>
> Stacker project in LLVM is the closest to what I want to achieve but has
> long been removed from LLVM framework.
>
> Any tutorials or simiar LLVM projects which might help me with my short
> term goals?
>
> Thanks,
> Ambuj
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>

In page :

http://en.wikipedia.org/wiki/LLVM


see

"Front ends: programming language support"


You may study how front end languages are built with LLVM .


One important example is CLang itself :


If you add a copy of CLang build statements replaced by your language name
with other required modifications into CLang build system , and created
directories parallel to Clang , I think you may obtain what you want .


Thank you very much .


Mehmet Erol Sanliturk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150408/16bc922b/attachment.html>


More information about the llvm-dev mailing list