May 2015
Intermediate to advanced
296 pages
5h 10m
English
For running the llc tool in the TOY target architecture, it has to be registered with the llc tool. This recipe demonstrates which configuration files need to be modified to register a target. The build files are modified in this recipe.
To register a target with a static compiler, follow these steps:
llvm_root_dir/CMakeLists.txt:set(LLVM_ALL_TARGETS AArch64 ARM … … TOY )
llvm_root_dir/include/llvm/ADT/Triple.h:class Triple {
public:
enum ArchType {
UnknownArch,
arm, // ARM (little endian): arm, armv.*, xscale
armeb, // ARM (big endian): armeb
aarch64, // AArch64 (little endian): aarch64
…
…
toy // TOY: toy
};llvm_root_dir/include/llvm/ ...Read now
Unlock full access