LLVM backend for 2003f
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sample
src
.gitignore
README.md
build.sh

README.md

llvm-2003f

The LLVM backend implementation for 2003'd ferlesyl the fictional architecture.

Build on Linux

Install prerequisites:

sudo apt install clang-5.0 llvm-5.0 cmake make

Build:

./build.sh

generates ./build/bin/llc

Build on Windows

Install prerequisites:

  • Miscrosoft Visual Studio 2017
  • CMake >= 3.4.3
  • Python 2.7.x

Build:

  1. create build Directory in the root of this repository
  2. open Command Prompt at build
  3. run cmake -DLLVM_TARGETS_TO_BUILD="F2003f" -DLLVM_DEFAULT_TARGET_TRIPLE="2003f-unknown-unknown" ../src
    • or cmake -DLLVM_TARGETS_TO_BUILD="F2003f" -DLLVM_DEFAULT_TARGET_TRIPLE="2003f-unknown-unknown" -Thost=x64 ../src (in 64-bit environment)
  4. run cmake --build . --target llc

generates ./build/Debug/bin/llc.exe

Usage

Example:

./build/bin/llc sample/test1.ll

Directory Structure

src/lib/Target/F2003f is the 2003f backend implementation body.

Some other files are also modified to support it.