LLVM 20.0.0git
|
#include "llvm/Transforms/Scalar/LowerExpectIntrinsic.h"
Public Member Functions | |
PreservedAnalyses | run (Function &F, FunctionAnalysisManager &) |
Run the pass over the function. | |
Public Member Functions inherited from llvm::PassInfoMixin< LowerExpectIntrinsicPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< LowerExpectIntrinsicPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Definition at line 24 of file LowerExpectIntrinsic.h.
PreservedAnalyses LowerExpectIntrinsicPass::run | ( | Function & | F, |
FunctionAnalysisManager & | |||
) |
Run the pass over the function.
This will lower all of the 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 408 of file LowerExpectIntrinsic.cpp.
References llvm::PreservedAnalyses::all(), F, lowerExpectIntrinsic(), and llvm::PreservedAnalyses::none().