May 2015
Intermediate to advanced
296 pages
5h 10m
English
An IR instruction in DAG needs to be lowered to a target-specific instruction. The SDAG node contains IR, which needs to be mapped on machine-specific DAG nodes. The outcome of the selection phase is ready for scheduling.
TOYDAGToDAGISel, needs to be defined. To compile the file containing this class definition, add the filename to the CMakeLists.txt file in the TOY folder:$ vi CMakeLists .txt add_llvm_target(... ... TOYISelDAGToDAG.cpp ... )
TOYTargetMachine.h and TOYTargetMachine.cpp files:$ vi TOYTargetMachine.h const TOYInstrInfo *getInstrInfo() const override { return getSubtargetImpl()->getInstrInfo(); ...Read now
Unlock full access