farzonl / expr-ir

An Expression Tree to LLVM-IR Example.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expr-IR

An Expression Tree to LLVM-IR Example.

Demo

Why does this exist?

A tutorial should be simple. If your like me the last time a tutorial on how to use llvm was simple was the 2.6 tutorial So this is an attempt to get back to something simple while updating for llvm 8.0.1.

Other modern resources (2019)

Build instructions Mac

brew install llvm
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile
./build.sh

Further reading on setting up your build:

Run instructions

./expr-ir ab+cde+**

About

An Expression Tree to LLVM-IR Example.


Languages

Language:C++ 90.4%Language:CMake 7.4%Language:Shell 2.2%