/getting-started-with-the-newer-llvm-c-api

Tweaking https://github.com/paulsmith/getting-started-llvm-c-api to work with the newer MCJIT LLVM interface

Primary LanguageCOtherNOASSERTION

Getting started with the (recent) LLVM C API

See the accompanying blog post. Props to Paul Smith for the original blog post and repo!

Tested with LLVM 7.0.0 on macOS 10.13.6 (High Sierra).

To use, download and install LLVM. On macOS, using brew, simply

brew install llvm

on other platforms you may need to build from source.

Once LLVM is installed, clone this repo, cd to it, and run:

$ make
$ ./sum 42 99
141