LLVM 20.0.0git
|
#include "llvm/Transforms/Scalar/TLSVariableHoist.h"
Public Member Functions | |
PreservedAnalyses | run (Function &F, FunctionAnalysisManager &AM) |
bool | runImpl (Function &F, DominatorTree &DT, LoopInfo &LI) |
Optimize expensive TLS variables in the given function. | |
Public Member Functions inherited from llvm::PassInfoMixin< TLSVariableHoistPass > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< TLSVariableHoistPass > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Definition at line 103 of file TLSVariableHoist.h.
PreservedAnalyses TLSVariableHoistPass::run | ( | Function & | F, |
FunctionAnalysisManager & | AM | ||
) |
Definition at line 281 of file TLSVariableHoist.cpp.
References llvm::PreservedAnalyses::all(), F, llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult(), llvm::PreservedAnalyses::preserveSet(), and runImpl().
bool TLSVariableHoistPass::runImpl | ( | Function & | F, |
DominatorTree & | DT, | ||
LoopInfo & | LI | ||
) |
Optimize expensive TLS variables in the given function.
Definition at line 261 of file TLSVariableHoist.cpp.
References assert(), llvm::Function::getAttributes(), llvm::AttributeList::hasFnAttr(), llvm::Function::hasOptNone(), and TLSLoadHoist.
Referenced by run().