HomeSort by: relevance | last modified time | path
    Searched defs:Pass (Results 1 - 22 of 22) sorted by relevancy

  /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
TransUnusedInitDelegate.cpp 35 MigrationPass &Pass;
40 UnusedInitRewriter(MigrationPass &pass)
41 : Body(nullptr), Pass(pass) { }
52 Pass.TA.hasDiagnostic(diag::err_arc_unused_init_message,
54 Transaction Trans(Pass.TA);
55 Pass.TA.clearDiagnostic(diag::err_arc_unused_init_message,
58 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = ");
60 retStr += getNilString(Pass);
61 Pass.TA.insertAfterToken(ExprRange.getEnd(), retStr)
    [all...]
TransAPIUses.cpp 31 MigrationPass &Pass;
38 APIChecker(MigrationPass &pass) : Pass(pass) {
39 SelectorTable &sels = Pass.Ctx.Selectors;
40 IdentifierTable &ids = Pass.Ctx.Idents;
77 Pass.TA.report(parm->getBeginLoc(),
89 Pass.TA.hasDiagnostic(diag::err_unavailable,
93 Transaction Trans(Pass.TA);
94 Pass.TA.clearDiagnostic(diag::err_unavailable
    [all...]
TransARCAssign.cpp 35 MigrationPass &Pass;
39 ARCAssignChecker(MigrationPass &pass) : Pass(pass) { }
50 ASTContext &Ctx = Pass.Ctx;
56 Transaction Trans(Pass.TA);
57 if (Pass.TA.clearDiagnostic(diag::err_typecheck_arr_assign_enumeration,
61 Pass.TA.insert(TLoc.getBeginLoc(), "__strong ");
74 void trans::makeAssignARCSafe(MigrationPass &pass) {
75 ARCAssignChecker assignCheck(pass);
    [all...]
TransBlockObjCVariable.cpp 127 MigrationPass &Pass = BodyCtx.getMigrationContext().Pass;
139 bool useWeak = canApplyWeak(Pass.Ctx, var->getType());
140 SourceManager &SM = Pass.Ctx.getSourceManager();
141 Transaction Trans(Pass.TA);
142 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()),
TransEmptyStatementsAndDealloc.cpp 148 MigrationPass &Pass;
151 EmptyStatementsRemover(MigrationPass &pass) : Pass(pass) { }
170 ASTContext &getContext() { return Pass.Ctx; }
175 if (EmptyChecker(Pass.Ctx, Pass.ARCMTMacroLocs).Visit(S)) {
176 Transaction Trans(Pass.TA);
177 Pass.TA.removeStmt(S);
193 static void cleanupDeallocOrFinalize(MigrationPass &pass) {
    [all...]
TransProtectedScope.cpp 97 MigrationPass &Pass;
104 : Pass(BodyCtx.getMigrationContext().Pass),
105 SM(Pass.Ctx.getSourceManager()) {
112 const CapturedDiagList &DiagList = Pass.getDiags();
132 Transaction Trans(Pass.TA);
144 Pass.TA.clearDiagnostic(diag::err_switch_into_protected_scope, ErrLoc);
159 Pass.TA.clearDiagnostic(Diag.getID(), Diag.getLocation());
176 Pass.TA.insertAfterToken(info.SC->getColonLoc(), " {");
177 Pass.TA.insert(info.Range.getEnd(), "}\n")
    [all...]
TransRetainReleaseDealloc.cpp 37 MigrationPass &Pass;
45 RetainReleaseDeallocRemover(MigrationPass &pass)
46 : Body(nullptr), Pass(pass) {
48 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("delegate"));
50 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize"));
73 Pass.TA.reportError(
80 // Pass through
    [all...]
TransZeroOutPropsInDealloc.cpp 29 MigrationPass &Pass;
37 ZeroOutInDeallocRemover(MigrationPass &pass) : Pass(pass), SelfD(nullptr) {
39 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize"));
43 ASTContext &Ctx = Pass.Ctx;
44 TransformActions &TA = Pass.TA;
83 Transaction Trans(Pass.TA);
84 Pass.TA.removeStmt(POE)
    [all...]
TransAutoreleasePool.cpp 71 AutoreleasePoolRewriter(MigrationPass &pass)
72 : Body(nullptr), Pass(pass) {
73 PoolII = &pass.Ctx.Idents.get("NSAutoreleasePool");
74 DrainSel = pass.Ctx.Selectors.getNullarySelector(
75 &pass.Ctx.Idents.get("drain"));
112 Transaction Trans(Pass.TA);
115 Pass.TA.removeStmt(info.Dcl);
126 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {");
127 Pass.TA.removeStmt(*scope.End)
    [all...]
TransProperties.cpp 47 MigrationPass &Pass;
74 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { }
139 Transaction Trans(Pass.TA);
192 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
206 Pass.TA.clearDiagnostic(diag::err_arc_strong_property_ownership,
214 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
215 /*AllowOnUnknownClass=*/Pass.isGCMigration());
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
229 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong "
    [all...]
TransUnbridgedCasts.cpp 60 MigrationPass &Pass;
68 UnbridgedCastRewriter(MigrationPass &pass)
69 : Pass(pass), ParentD(nullptr), Body(nullptr) {
70 SelfII = &Pass.Ctx.Idents.get("self");
83 UnbridgedCastRewriter(Pass).transformBody(D->getBody(), D);
104 if (castExpr->isNullPointerConstant(Pass.Ctx,
109 if (loc.isValid() && Pass.Ctx.getSourceManager().isInSystemHeader(loc))
200 Transaction Trans(Pass.TA);
206 TransformActions &TA = Pass.TA
    [all...]
Transforms.h 35 void rewriteAutoreleasePool(MigrationPass &pass);
36 void rewriteUnbridgedCasts(MigrationPass &pass);
37 void makeAssignARCSafe(MigrationPass &pass);
38 void removeRetainReleaseDeallocFinalize(MigrationPass &pass);
39 void removeZeroOutPropsInDeallocFinalize(MigrationPass &pass);
40 void rewriteUnusedInitDelegate(MigrationPass &pass);
41 void checkAPIUses(MigrationPass &pass);
43 void removeEmptyStatementsAndDeallocFinalize(MigrationPass &pass);
84 MigrationPass &Pass;
103 explicit MigrationContext(MigrationPass &pass) : Pass(pass) {
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
LoopPassManager.cpp 1 //===- LoopPassManager.cpp - Loop pass management -------------------------===//
24 /// Explicitly specialize the pass manager's run method to handle loop nest
65 // invalid when encountering a loop-nest pass.
72 // The `I`-th pass is a loop pass.
73 auto &Pass = LoopPasses[LoopPassIndex++];
74 PassPA = runSinglePass(L, Pass, AM, AR, U, PI);
76 // The `I`-th pass is a loop-nest pass.
77 auto &Pass = LoopNestPasses[LoopNestPassIndex++]
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
PassManagerInternal.h 11 /// pass management interfaces exposed in PassManager.h. To understand more
31 // Implementation details of the pass manager interfaces.
35 /// polymorphically over pass objects.
41 /// The polymorphic API which runs the pass over a given IR entity.
43 /// Note that actual pass object can omit the analysis manager argument if
45 /// analysis manager in the pass pipeline.
49 /// Polymorphic method to access the name of a pass.
52 /// Polymorphic method to to let a pass optionally exempted from skipping by
54 /// To opt-in, pass should implement `static bool isRequired()`. It's no-op
62 /// an \c IRUnitT& and an \c AnalysisManager<IRUnit>&. It requires the pass t
    [all...]
PassManager.h 1 //===- PassManager.h - Pass management infrastructure -----------*- C++ -*-===//
10 /// This header defines various interfaces for pass management in LLVM. There
11 /// is no "pass" interface in LLVM per se. Instead, an instance of any class
13 /// a pass. A pass manager is generally a tool to collect a sequence of passes
23 /// * FunctionPassManager can run over a Module, runs each pass over
25 /// * ModulePassManager must be directly run, runs each pass over the Module.
27 /// Note that the implementations of the pass managers use concept-based
49 #include "llvm/Pass.h"
67 /// identifies that particular analysis pass type
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
CGSCCPassManager.h 1 //===- CGSCCPassManager.h - Call graph pass management ----------*- C++ -*-===//
55 /// design of the pass manager, it is essential to have stable identities for
66 /// entries that become dead. This extra data is provided to every SCC pass so
72 /// pass manager to reflect call graph changes that fall out naturally as part
127 /// pass manager infrastructure.
131 // Explicit specialization and instantiation declarations for the pass manager.
143 /// The CGSCC pass manager.
152 /// An explicit specialization of the require analysis template pass.
200 /// so it can pass the lazy call graph to the result.
218 /// to the CGSCC pass manager infrsatructure
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/
Pass.h 1 //===- llvm/Pass.h - Base class for Passes ----------------------*- C++ -*-===//
10 // transformation pass implementation.
46 // AnalysisID - Use the PassInfo to identify a pass...
49 /// Different types of internal pass managers. External pass managers
51 /// Ordering of pass manager types is important here.
87 /// Pass interface - Implemented by all 'passes'. Subclass this if you are an
91 class Pass {
97 explicit Pass(PassKind K, char &pid) : PassID(&pid), Kind(K) {}
98 Pass(const Pass &) = delete
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/
LoopPassManager.h 1 //===- LoopPassManager.h - Loop pass management -----------------*- C++ -*-===//
13 /// The primary loop pass pipeline is managed in a very particular way to
53 // Forward declarations of an update tracking API used in the pass manager.
66 // Explicit specialization and instantiation declarations for the pass manager.
97 /// Add either a loop pass or a loop-nest pass to the pass manager. Append \p
98 /// Pass to the list of loop passes if it has a dedicated \fn run() method for
100 /// loop-nests instead. Also append whether \p Pass is loop-nest pass or no
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/IR/
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"
35 // Pass Implementation
39 Pass::~Pass() {
46 Pass *ModulePass::createPrinterPass(raw_ostream &OS,
64 bool Pass::mustPreserveAnalysisID(char &AID) const {
68 // dumpPassStructure - Implement the -debug-pass=Structure optio
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonISelDAGToDAGHVX.cpp 325 Pass,
442 S = (J < Num/2) ? Pass : Switch;
444 S = (J < Num/2) ? Switch : Pass;
447 ElemType U = (S == Pass) ? I : (I < Num/2 ? I+Num/2 : I-Num/2);
505 S = (J < Num/2) ? Pass : Switch;
508 S = (J < Num/2) ? Switch : Pass;
555 // control will be "Pass".
570 T[I][Step] = Pass;
573 T[J][Pets] = (J < Num/2) ? Pass : Switch;
579 T[I][Step] = Pass;
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
MachinePipeliner.h 1 //===- MachinePipeliner.h - Machine Software Pipeliner Pass -------------===//
59 /// software pipeliner pass.
107 MachinePipeliner &Pass;
147 /// must be deleted when the pass is finished.
196 : ScheduleDAGInstrs(*P.MF, P.MLI, false), Pass(P), Loop(L), LIS(lis),
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
AddressSanitizer.cpp 65 #include "llvm/Pass.h"
393 "provided to the pass constructor"),
688 AddressSanitizer *Pass;
690 FunctionStateRAII(AddressSanitizer *Pass) : Pass(Pass) {
691 assert(Pass->ProcessedAllocas.empty() &&
692 "last pass forgot to clear cache");
693 assert(!Pass->LocalDynamicShadow);
697 Pass->LocalDynamicShadow = nullptr
    [all...]

Completed in 41 milliseconds