May 2015
Intermediate to advanced
296 pages
5h 10m
English
LLVM provides a wide variety of optimization passes. LLVM allows a compiler implementation to decide which optimizations to use, their order, and so on. In this recipe, you will learn how to add IR optimization support.
Do the following steps:
static FunctionPassManager *Global_FP;
Module object used previously. This can be done in the main() function as follows:FunctionPassManager My_FP(TheModule);
main() function as follows:My_FP.add(createBasicAliasAnalysisPass()); ...
Read now
Unlock full access