Exemplo n.º 1
0
void AstBackEnd::getAnalysisUsage(llvm::AnalysisUsage &au) const
{
	au.addRequired<DominatorTreeWrapperPass>();
	au.addRequired<PostDominatorTreeWrapperPass>();
	au.setPreservesAll();
}
void InstructionCount::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  // This is an analysis, nothing is modified, so other analysis are preserved.
  AU.setPreservesAll();
}
void EntryPointAnalysis::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  AU.setPreservesAll();
}
Exemplo n.º 4
0
void DCEliminatePass::getAnalysisUsage(llvm::AnalysisUsage &AU) const{
	//CFGに変更を加えない
	AU.setPreservesCFG();
}
void EscapeAnalysis::getAnalysisUsage(llvm::AnalysisUsage& info) const {
    info.setPreservesCFG();
    info.addRequiredTransitive<DataLayoutPass>();
}
void SwiftARCOpt::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  AU.addRequiredID(&SwiftAAWrapperPass::ID);
  AU.addRequired<SwiftRCIdentity>();
  AU.setPreservesCFG();
}
Exemplo n.º 7
0
 virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const {
   AU.setPreservesCFG();
 }
Exemplo n.º 8
0
void AddressTakenAnalysis::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  AU.setPreservesAll();
}
void ContractManager::getAnalysisUsage(llvm::AnalysisUsage& Info) const {
    Info.setPreservesAll();

    AUX<VariableInfoTracker>::addRequiredTransitive(Info);
}
Exemplo n.º 10
0
void FactGenPass::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  AU.addRequired<llvm::TargetLibraryInfo>();
  AU.addRequired<llvm::DataLayout>();
  AU.setPreservesAll();
}
void SwiftStackPromotion::getAnalysisUsage(llvm::AnalysisUsage &AU) const {
  AU.setPreservesCFG();
}