|
LLVM
3.7.0
|
#include <LowerExpectIntrinsic.h>
Public Member Functions | |
| PreservedAnalyses | run (Function &F) |
| Run the pass over the function. More... | |
Static Public Member Functions | |
| static StringRef | name () |
Definition at line 24 of file LowerExpectIntrinsic.h.
|
inlinestatic |
Definition at line 26 of file LowerExpectIntrinsic.h.
| PreservedAnalyses LowerExpectIntrinsicPass::run | ( | Function & | F | ) |
Run the pass over the function.
This will lower all of th expect intrinsic calls in this function into branch weight metadata. That metadata will subsequently feed the analysis of the probabilities and frequencies of the CFG. After running this pass, no more expect intrinsics remain, allowing the rest of the optimizer to ignore them.
Definition at line 161 of file LowerExpectIntrinsic.cpp.
References llvm::PreservedAnalyses::all(), lowerExpectIntrinsic(), and llvm::PreservedAnalyses::none().
1.8.6