Skip to content

FloofyPlasma/llvm-project-fox32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

559,700 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LLVM fox32

This is a fork of LLVM 22 (development version) with a backend for the fox32 architecture. The goal is translating LLVM IR to fox32 assembly using llc.

For general LLVM information, see README-LLVM.md.

Building

Recommended build invocation:

cmake -S llvm -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DLLVM_PARALLEL_LINK_JOBS=8 \
  -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
  -DCMAKE_C_COMPILER_LAUNCHER=ccache

ccache reduces rebuild time. Useful due to frequent iteration.

Then build:

cmake --build build

Usage

Note

The fox32 backend is set as the default triple. You do not need to explicty set it.

Feed LLVM IR to llc:

build/bin/llc input.ll -o output.s

The output is fox32 assembly. As of now you will have to use the fox32 assembler to assemble the output.

License

This backend, and the LLVM Project are licensed under the Apache License v2.0 with LLVM Exceptions. See the LICENSE for more information.

About

LLVM backend for the fox32 CPU architecture - compile C/C++ to fox32 assembly

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

  • LLVM 41.4%
  • C++ 31.2%
  • C 13.1%
  • Assembly 9.9%
  • MLIR 1.4%
  • Python 0.8%
  • Other 2.2%