Skip to content

codersguild/LLVM-Examples

 
 

Repository files navigation

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 :

Releases

No releases published

Packages

No packages published

Languages

  • LLVM 75.4%
  • C++ 11.3%
  • Makefile 4.2%
  • CMake 3.4%
  • C 2.8%
  • TeX 2.8%
  • Shell 0.1%