Skip to content

「きつねさんでもわかるLLVM」で作成したバックエンド

Notifications You must be signed in to change notification settings

yus3710-fj/llvm-sample-target

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

## setup sample target
$ git clone https://github.com/llvm/llvm-project.git
$ cd llvm-project/llvm/lib/Target
$ git checkout llvmorg-10.0.0
$ git clone https://github.com/Heavybaby5000/llvm-sample-target.git Sample
$ cd - && cd llvm-project
$ patch -p1 < ./llvm/lib/Target/Sample/config.patch

## compile and install
$ cd -
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/llvm -DCMAKE_BUILD_TYPE=Debug ../llvm-project/llvm
$ make -j4
$ sudo make install

## run test
$ export PATH=/opt/llvm/bin:$PATH
$ cd -
$ cd llvm-project/llvm/lib/Target/Sample
$ llvm-lit test

About

「きつねさんでもわかるLLVM」で作成したバックエンド

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.9%
  • LLVM 1.7%
  • CMake 1.4%