Coder Social home page Coder Social logo

pkalita595 / llvm-examples-sumit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lahiri-phdworks/llvm-examples

0.0 0.0 0.0 63.85 MB

LLVM Repository and Code samples. LLVM Passes and quick bytes.

Home Page: https://hub.docker.com/r/prodrelworks/llvm-examples

License: GNU General Public License v2.0

Shell 0.11% C++ 23.39% C 5.68% TeX 5.64% Makefile 8.53% CMake 6.88% LLVM 49.78%

llvm-examples-sumit's Introduction

LLVM-Examples

LLVM Examples and Code samples. LLVM Passes. Based on llvm-project Clone the LLVM Repository in the $HOME directory or change the paths in the MAKEFILEs to point to the build directory of the LLVM.

# Clone
$ git clone https://github.com/llvm/llvm-project.git

# Change directory
$ cd llvm-project

# Install the essential packages with make and cmake.
$ sudo apt-get install make ninja ninja-build cmake cmake-data binutils build-essentials python3 python3-pip

# llvm cmake command 
$ cmake \
    -S llvm -B build -Wno-dev -GNinja \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLLVM_ENABLE_PROJECTS="llvm;compiler-rt;clang;clang-tools-extra;lldb;lld;mlir" \
    -DLLVM_BUILD_RUNTIMES="libcxx;libcxxabi" \
    -DLLVM_BINUTILS_INCDIR=$HOME/binutils/include \
    -DCMAKE_BUILD_TYPE=Release \
    -DLLVM_ENABLE_RTTI=ON \
    -DLLVM_ENABLE_FFI=ON \
    -DLLVM_BUILD_TESTS=ON \
    -DLLVM_INSTALL_UTILS=ON

$ cd build && ninja -j10 all

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

Running Examples.

$ cd NewPMExample
$ make clean
$ make all

Examples & Implementations :

References & Links :

llvm-examples-sumit's People

Contributors

lahiri-phdworks avatar codersguild avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.