/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | LegacyPassManagers.h | 1 //===- LegacyPassManagers.h - Legacy Pass Infrastructure --------*- C++ -*-===// 9 // This file declares the LLVM Pass Manager infrastructure. 20 #include "llvm/Pass.h" 25 // The Pass Manager Infrastructure manages passes. It's responsibilities are: 33 // Pass Manager Infrastructure uses multiple pass managers. They are 70 // [o] class MPPassManager : public Pass, public PMDataManager; 79 // [o] class PassManagerImpl : public Pass, public PMDataManager, 97 EXECUTION_MSG, // "Executing Pass '" + PassName 99 FREEING_MSG, // " Freeing Pass '" + PassName 110 Pass * [all...] |
H A D | PassManagerInternal.h | 72 explicit PassModel(PassT Pass) : Pass(std::move(Pass)) {} in PassModel() 75 PassModel(const PassModel &Arg) : Pass(Arg.Pass) {} in PassModel() 76 PassModel(PassModel &&Arg) : Pass(std::move(Arg.Pass)) {} in PassModel() 80 swap(LHS.Pass, RHS.Pass); in swap() 90 return Pass.run(IR, AM, ExtraArgs...); in run() 96 Pass.printPipeline(OS, MapClassName2PassName); in printPipeline() 117 PassT Pass; member 293 explicit AnalysisPassModel(PassT Pass) : Pass(std::move(Pass)) {} 296 AnalysisPassModel(const AnalysisPassModel &Arg) : Pass(Arg.Pass) {} 297 AnalysisPassModel(AnalysisPassModel &&Arg) : Pass(std::move(Arg.Pass)) {} [all …]
|
H A D | PassInstrumentation.h | 213 isRequired(const PassT &Pass) { in isRequired() argument 214 return Pass.isRequired(); in isRequired() 218 isRequired(const PassT &Pass) { in isRequired() argument 236 bool runBeforePass(const PassT &Pass, const IRUnitT &IR) const { in runBeforePass() argument 241 if (!isRequired(Pass)) { in runBeforePass() 243 ShouldRun &= C(Pass.name(), llvm::Any(&IR)); in runBeforePass() 248 C(Pass.name(), llvm::Any(&IR)); in runBeforePass() 251 C(Pass.name(), llvm::Any(&IR)); in runBeforePass() 261 void runAfterPass(const PassT &Pass, const IRUnitT &IR, in runAfterPass() argument 265 C(Pass.name(), llvm::Any(&IR), PA); in runAfterPass() [all …]
|
H A D | PassManagerImpl.h | 34 PassConceptT *Pass = nullptr; in run() local 40 void setPass(PassConceptT *P) { Pass = P; } in run() 44 if (Pass) in run() 45 Pass->printPipeline(OS, [this](StringRef ClassName) { in run() 72 for (auto &Pass : Passes) { in run() 73 Entry.setPass(&*Pass); in run() 78 if (!PI.runBeforePass<IRUnitT>(*Pass, IR)) in run() 81 PreservedAnalyses PassPA = Pass->run(IR, AM, ExtraArgs...); in run() 89 PI.runAfterPass<IRUnitT>(*Pass, IR, PassPA); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Pass.cpp | 1 //===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===// 9 // This file implements the LLVM Pass infrastructure. It is primarily 15 #include "llvm/Pass.h" 39 // Pass Implementation 43 Pass::~Pass() { in ~Pass() 50 Pass *ModulePass::createPrinterPass(raw_ostream &OS, in createPrinterPass() 69 bool Pass::mustPreserveAnalysisID(char &AID) const { in mustPreserveAnalysisID() 74 void Pass [all...] |
H A D | LegacyPassManager.cpp | 89 Pass *P, Module &M, int64_t Delta, unsigned CountBefore, in emitInstrCountChangedRemark() 247 class FunctionPassManagerImpl : public Pass, 256 : Pass(PT_PassManager, ID), PMTopLevelManager(new FPPassManager()), in FunctionPassManagerImpl() 260 void add(Pass *P) { in add() 265 Pass *createPrinterPass(raw_ostream &O, in createPrinterPass() 288 Pass *getAsPass() override { return this; } in getAsPass() 383 class MPPassManager : public Pass, public PMDataManager { 386 explicit MPPassManager() : Pass(PT_PassManager, ID) {} in MPPassManager() 397 Pass *createPrinterPass(raw_ostream &O, in createPrinterPass() 406 using llvm::Pass::doInitialization; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | CGSCCPassManager.h | 321 explicit ModuleToPostOrderCGSCCPassAdaptor(std::unique_ptr<PassConceptT> Pass) 322 : Pass(std::move(Pass)) {} 325 : Pass(std::move(Arg.Pass)) {} 329 std::swap(LHS.Pass, RHS.Pass); 344 Pass->printPipeline(OS, MapClassName2PassName); 351 std::unique_ptr<PassConceptT> Pass; 358 createModuleToPostOrderCGSCCPassAdaptor(CGSCCPassT &&Pass) { 366 new PassModelT(std::forward<CGSCCPassT>(Pass)))); 449 explicit CGSCCToFunctionPassAdaptor(std::unique_ptr<PassConceptT> Pass, 451 : Pass(std::move(Pass)), EagerlyInvalidate(EagerlyInvalidate), [all …]
|
H A D | RegionPass.h | 32 class RegionPass : public Pass { 34 explicit RegionPass(char &pid) : Pass(PT_Region, pid) {} in RegionPass() 56 Pass *createPrinterPass(raw_ostream &O, 59 using llvm::Pass::doInitialization; 60 using llvm::Pass::doFinalization; 108 Pass *getAsPass() override { return this; } in getAsPass() 114 Pass *getContainedPass(unsigned N) { in getContainedPass() 116 Pass *FP = static_cast<Pass *>(PassVector[N]); in getContainedPass()
|
H A D | LoopPass.h | 28 class LoopPass : public Pass { 30 explicit LoopPass(char &pid) : Pass(PT_Loop, pid) {} in LoopPass() 34 Pass *createPrinterPass(raw_ostream &O, 41 using llvm::Pass::doInitialization; 42 using llvm::Pass::doFinalization; 92 Pass *getAsPass() override { return this; } in getAsPass()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ |
H A D | PassAnalysisSupport.h | 35 class Pass; variable 165 Pass *findImplPass(AnalysisID PI) { in findImplPass() 166 Pass *ResultPass = nullptr; in findImplPass() 177 std::tuple<Pass *, bool> findImplPass(Pass *P, AnalysisID PI, Function &F); 179 void addAnalysisImplsPair(AnalysisID PI, Pass *P) { in addAnalysisImplsPair() 182 std::pair<AnalysisID, Pass*> pir = std::make_pair(PI,P); in addAnalysisImplsPair() 192 Pass *getAnalysisIfAvailable(AnalysisID ID) const; 197 std::vector<std::pair<AnalysisID, Pass *>> AnalysisImpls; 211 AnalysisType *Pass::getAnalysisIfAvailable() const { in getAnalysisIfAvailable() 216 Pass *ResultPass = Resolver->getAnalysisIfAvailable(PI); in getAnalysisIfAvailable() [all …]
|
H A D | Pass.h | 94 class Pass { 100 explicit Pass(PassKind K, char &pid) : PassID(&pid), Kind(K) {} in Pass() function 101 Pass(const Pass &) = delete; 102 Pass &operator=(const Pass &) = delete; 103 virtual ~Pass(); 137 virtual Pass *createPrinterPass(raw_ostream &OS, 198 static Pass *createPass(AnalysisID ID); 251 class ModulePass : public Pass { 253 explicit ModulePass(char &pid) : Pass(PT_Module, pid) {} in ModulePass() 259 Pass *createPrinterPass(raw_ostream &OS, [all …]
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransUnbridgedCasts.cpp | 60 MigrationPass &Pass; member in __anon8323c4420111::UnbridgedCastRewriter 69 : Pass(pass), ParentD(nullptr), Body(nullptr) { in UnbridgedCastRewriter() 70 SelfII = &Pass.Ctx.Idents.get("self"); in UnbridgedCastRewriter() 83 UnbridgedCastRewriter(Pass).transformBody(D->getBody(), D); in TraverseBlockDecl() 104 if (castExpr->isNullPointerConstant(Pass.Ctx, in VisitCastExpr() 109 if (loc.isValid() && Pass.Ctx.getSourceManager().isInSystemHeader(loc)) in VisitCastExpr() 199 Transaction Trans(Pass.TA); in rewriteToBridgedCast() 205 TransformActions &TA = Pass.TA; in rewriteToBridgedCast() 227 if (Kind == OBC_Bridge || !Pass.CFBridgingFunctionsDefined()) { in rewriteToBridgedCast() 235 newCast += E->getType().getAsString(Pass.Ctx.getPrintingPolicy()); in rewriteToBridgedCast() [all …]
|
H A D | TransAPIUses.cpp | 31 MigrationPass &Pass; member in __anon72ec568a0111::APIChecker 38 APIChecker(MigrationPass &pass) : Pass(pass) { in APIChecker() 39 SelectorTable &sels = Pass.Ctx.Selectors; in APIChecker() 40 IdentifierTable &ids = Pass.Ctx.Idents; in APIChecker() 77 Pass.TA.report(parm->getBeginLoc(), in VisitObjCMessageExpr() 89 Pass.TA.hasDiagnostic(diag::err_unavailable, in VisitObjCMessageExpr() 93 Transaction Trans(Pass.TA); in VisitObjCMessageExpr() 94 Pass.TA.clearDiagnostic(diag::err_unavailable, in VisitObjCMessageExpr() 97 Pass.TA.replace(E->getSourceRange(), getNilString(Pass)); in VisitObjCMessageExpr()
|
H A D | TransRetainReleaseDealloc.cpp | 37 MigrationPass &Pass; member in __anonea0450a80111::RetainReleaseDeallocRemover 46 : Body(nullptr), Pass(pass) { in RetainReleaseDeallocRemover() 48 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("delegate")); in RetainReleaseDeallocRemover() 50 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize")); in RetainReleaseDeallocRemover() 73 Pass.TA.reportError( in VisitObjCMessageExpr() 92 Pass.TA.reportError(err, rec->getBeginLoc()); in VisitObjCMessageExpr() 101 Pass.TA.reportError(err, rec->getBeginLoc()); in VisitObjCMessageExpr() 106 Pass.TA.reportError( in VisitObjCMessageExpr() 124 Transaction Trans(Pass.TA); in VisitObjCMessageExpr() 128 Pass.TA.replace(E->getSourceRange(), "self"); in VisitObjCMessageExpr() [all …]
|
H A D | TransUnusedInitDelegate.cpp | 35 MigrationPass &Pass; member in __anonb7cafbd30111::UnusedInitRewriter 41 : Body(nullptr), Pass(pass) { } in UnusedInitRewriter() 52 Pass.TA.hasDiagnostic(diag::err_arc_unused_init_message, in VisitObjCMessageExpr() 54 Transaction Trans(Pass.TA); in VisitObjCMessageExpr() 55 Pass.TA.clearDiagnostic(diag::err_arc_unused_init_message, in VisitObjCMessageExpr() 58 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = "); in VisitObjCMessageExpr() 60 retStr += getNilString(Pass); in VisitObjCMessageExpr() 61 Pass.TA.insertAfterToken(ExprRange.getEnd(), retStr); in VisitObjCMessageExpr()
|
H A D | TransProperties.cpp | 47 MigrationPass &Pass; member in __anon8393a07d0111::PropertiesRewriter 74 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { } in PropertiesRewriter() 139 Transaction Trans(Pass.TA); in doTransform() 192 (Pass.isGCMigration() && !hasGCWeak(props, atLoc))) in rewriteProperty() 206 Pass.TA.clearDiagnostic(diag::err_arc_strong_property_ownership, in removeAssignForDefaultStrong() 214 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), in rewriteAssign() 215 /*AllowOnUnknownClass=*/Pass.isGCMigration()); in rewriteAssign() 217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign() 229 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign() 231 Pass.TA.insert(I->IvarD->getLocation(), toWhich); in rewriteAssign() [all …]
|
H A D | TransZeroOutPropsInDealloc.cpp | 29 MigrationPass &Pass; member in __anon7bb8f6870111::ZeroOutInDeallocRemover 37 ZeroOutInDeallocRemover(MigrationPass &pass) : Pass(pass), SelfD(nullptr) { in ZeroOutInDeallocRemover() 39 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize")); in ZeroOutInDeallocRemover() 43 ASTContext &Ctx = Pass.Ctx; in VisitObjCMessageExpr() 44 TransformActions &TA = Pass.TA; in VisitObjCMessageExpr() 83 Transaction Trans(Pass.TA); in VisitPseudoObjectExpr() 84 Pass.TA.removeStmt(POE); in VisitPseudoObjectExpr() 92 Transaction Trans(Pass.TA); in VisitBinaryOperator() 93 Pass.TA.removeStmt(BOE); in VisitBinaryOperator() 212 if (E->isNullPointerConstant(Pass.Ctx, Expr::NPC_ValueDependentIsNull)) in isZero()
|
H A D | TransARCAssign.cpp | 35 MigrationPass &Pass; member in __anon3faf4a6b0111::ARCAssignChecker 39 ARCAssignChecker(MigrationPass &pass) : Pass(pass) { } in ARCAssignChecker() 50 ASTContext &Ctx = Pass.Ctx; in VisitBinaryOperator() 56 Transaction Trans(Pass.TA); in VisitBinaryOperator() 57 if (Pass.TA.clearDiagnostic(diag::err_typecheck_arr_assign_enumeration, in VisitBinaryOperator() 61 Pass.TA.insert(TLoc.getBeginLoc(), "__strong "); in VisitBinaryOperator()
|
H A D | TransProtectedScope.cpp | 97 MigrationPass &Pass; member in __anon2f6a04b40111::ProtectedScopeFixer 104 : Pass(BodyCtx.getMigrationContext().Pass), in ProtectedScopeFixer() 105 SM(Pass.Ctx.getSourceManager()) { in ProtectedScopeFixer() 112 const CapturedDiagList &DiagList = Pass.getDiags(); in ProtectedScopeFixer() 132 Transaction Trans(Pass.TA); in handleProtectedScopeError() 144 Pass.TA.clearDiagnostic(diag::err_switch_into_protected_scope, ErrLoc); in handleProtectedScopeError() 159 Pass.TA.clearDiagnostic(Diag.getID(), Diag.getLocation()); in handleProtectedNote() 176 Pass.TA.insertAfterToken(info.SC->getColonLoc(), " {"); in tryFixing() 177 Pass.TA.insert(info.Range.getEnd(), "}\n"); in tryFixing()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/ |
H A D | Scalar.h | 24 class Pass; variable 45 Pass *createLICMPass(); 52 Pass *createLoopStrengthReducePass(); 58 Pass *createLoopUnrollPass(int OptLevel = 2, bool OnlyWhenForced = false, 96 Pass *createStructurizeCFGPass(bool SkipUniformRegions = false); 128 Pass *createLowerAtomicPass(); 134 Pass *createMergeICmpsLegacyPass();
|
H A D | Utils.h | 21 class Pass; variable 67 Pass *createLCSSAPass(); 92 Pass *createLoopSimplifyPass(); 115 Pass *createCanonicalizeFreezeInLoopsPass();
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | LoopPassManager.h | 108 addPass(PassT &&Pass) { in addPass() argument 116 new LoopPassModelT(std::forward<PassT>(Pass)))); in addPass() 122 addPass(PassT &&Pass) { in addPass() argument 130 new LoopNestPassModelT(std::forward<PassT>(Pass)))); in addPass() 159 runSinglePass(IRUnitT &IR, PassT &Pass, LoopAnalysisManager &AM, 365 IRUnitT &IR, PassT &Pass, LoopAnalysisManager &AM, 372 if (!PI.runBeforePass<Loop>(*Pass, L)) 375 PreservedAnalyses PA = Pass->run(IR, AM, AR, U); 379 PI.runAfterPassInvalidated<IRUnitT>(*Pass, PA); 381 PI.runAfterPass<Loop>(*Pass, L, PA); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachinePassManager.cpp | 123 if (!PI.runBeforePass<MachineFunction>(*Pass, MF)) in run() 125 PreservedAnalyses PassPA = Pass->run(MF, MFAM); in run() 127 PI.runAfterPass(*Pass, MF, PassPA); in run() 136 Pass->printPipeline(OS, MapClassName2PassName); in printPipeline() 146 for (auto &Pass : Passes) { in run() local 147 if (!PI.runBeforePass<MachineFunction>(*Pass, MF)) in run() 150 PreservedAnalyses PassPA = Pass->run(MF, MFAM); in run() 152 PI.runAfterPass(*Pass, MF, PassPA); in run()
|
/freebsd/sbin/pfctl/tests/ |
H A D | pfctl_test_list.inc | 38 PFCTL_TEST(0001, "Pass with labels") 49 PFCTL_TEST(0012, "Pass to subnets") 50 PFCTL_TEST(0013, "Pass quick") 51 PFCTL_TEST(0014, "Pass quick IPv6") 52 PFCTL_TEST(0016, "Pass with no state") 64 PFCTL_TEST(0032, "Pass to any") 65 PFCTL_TEST(0034, "Pass with probability") 67 PFCTL_TEST(0038, "Pass with user") 71 PFCTL_TEST(0047, "Pass with labels") 76 PFCTL_TEST(0053, "Pass with labels") [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVCompare.cpp | 88 void updateMissingOrAdded(LVElement *Element, LVComparePass Pass) { in updateMissingOrAdded() argument 90 if (Pass == LVComparePass::Missing) { in updateMissingOrAdded() 197 LVComparePass Pass) -> Error { in execute() argument 205 if (Pass == LVComparePass::Missing) in execute() 213 if (Pass == LVComparePass::Missing && Reference->getIsScope()) { in execute() 222 Pass == LVComparePass::Missing ? Reference->setIsMissing() in execute() 225 updateMissingOrAdded(Reference, Pass); in execute() 227 addPassEntry(Reader, Reference, Pass); in execute() 231 if (Pass == LVComparePass::Added) in execute() 237 << (Pass in execute() 362 printItem(LVElement * Element,LVComparePass Pass) printItem() argument [all...] |