Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 3.15 KB

README.md

File metadata and controls

70 lines (54 loc) · 3.15 KB

LLVM-Examples

LLVM Examples and Code samples. LLVM Passes. Based on llvm-project

# llvm cmake
cmake -G "Ninja" build \
  -DLLVM_ENABLE_PROJECTS="llvm;compiler-rt;clang;clang-tools-extra" \
  -DCMAKE_BUILD_TYPE=Release \
  -DLLVM_ENABLE_ASSERTIONS=ON \
  -DLLVM_CCACHE_BUILD=OFF \
  -DLLVM_BUILD_TESTS=ON \
  -DLLVM_INSTALL_UTILS=ON \
  -B build -S llvm

Installing from Docker

Check build commands in the Dockerfile for more information on installing LLVM on local machine.

$ docker build -f DockerFile -t prodrelworks/llvm-examples:latest .
$ docker run --name llvm-examples --ulimit stack=10000000:10000000 \
  --cpus=4 --memory=20g -it prodrelworks/llvm-examples:latest

Examples & Implementations :

References & Links :