└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # avr-llvm 2 | 3 | This repository has been merged into [upstream llvm](http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/). 4 | Development now occurs directly in LLVM trunk, while this repository exists here solely as an archive of old work and issues. 5 | 6 | At this point in time, no changes or commits are added or otherwise backported to this repository. 7 | 8 | In order to compile stock LLVM will AVR support enabled, `-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR` must be passed to CMake. 9 | 10 | ## Compiling the up-to-date backend from upstream LLVM 11 | 12 | ```bash 13 | # Clone the LLVM repository 14 | git clone https://github.com/llvm-mirror/llvm.git 15 | 16 | # optionally clone clang into the 'tools' folder for C/C++ compiler support 17 | git clone https://github.com/llvm-mirror/clang.git llvm/tools/clang 18 | 19 | # where we want to place object files/executables 20 | mkdir build && cd build 21 | 22 | # Run CMake to generate makefiles 23 | cmake ../llvm -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR 24 | 25 | # Compile everything 26 | make 27 | ``` 28 | 29 | Once this is done, you will have a number executables in `build/bin`. 30 | 31 | ## Viewing the historic avr-llvm fork 32 | 33 | This repository contains a few years of development issues, pull requests, and branches prior to the merge of the backend into LLVM trunk. 34 | 35 | The old development branch is named [`avr-support`](https://github.com/avr-llvm/llvm/tree/avr-support). 36 | 37 | There is a [`master`](https://github.com/avr-llvm/llvm/tree/master) branch that points to the upstream LLVM commit that `avr-support` is based on. 38 | --------------------------------------------------------------------------------