/external/clang/test/CodeGenCXX/ |
2004-09-27-DidntEmitTemplate.cpp | 7 struct Pass {}; 10 Pass *callDefaultCtor() { return new Pass(); } 12 void foo(Pass *(*C)()); 22 void baz() { foo(callDefaultCtor<Pass>); }
|
2003-11-27-MultipleInheritanceThunk.cpp | 17 struct Pass { 22 struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
|
/external/clang/lib/ARCMigrate/ |
TransUnusedInitDelegate.cpp | 35 MigrationPass &Pass; 40 UnusedInitRewriter(MigrationPass &pass) 41 : Body(0), 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, 57 Pass.TA.insert(ME->getExprLoc(), "self = "); 70 void trans::rewriteUnusedInitDelegate(MigrationPass &pass) { 71 BodyTransform<UnusedInitRewriter> trans(pass); [all...] |
Transforms.h | 32 void rewriteAutoreleasePool(MigrationPass &pass); 33 void rewriteUnbridgedCasts(MigrationPass &pass); 34 void makeAssignARCSafe(MigrationPass &pass); 35 void removeRetainReleaseDealloc(MigrationPass &pass); 36 void removeZeroOutPropsInDealloc(MigrationPass &pass); 37 void rewriteProperties(MigrationPass &pass); 38 void rewriteBlockObjCVariable(MigrationPass &pass); 39 void rewriteUnusedInitDelegate(MigrationPass &pass); 40 void checkAPIUses(MigrationPass &pass); 42 void removeEmptyStatementsAndDealloc(MigrationPass &pass); [all...] |
TransAPIUses.cpp | 31 MigrationPass &Pass; 38 APIChecker(MigrationPass &pass) : Pass(pass) { 39 SelectorTable &sels = Pass.Ctx.Selectors; 40 IdentifierTable &ids = Pass.Ctx.Idents; 82 Pass.TA.reportError(err, parm->getLocStart(), parm->getSourceRange()); 91 Pass.TA.hasDiagnostic(diag::err_unavailable, 95 Transaction Trans(Pass.TA); 96 Pass.TA.clearDiagnostic(diag::err_unavailable [all...] |
TransARCAssign.cpp | 35 MigrationPass &Pass; 39 ARCAssignChecker(MigrationPass &pass) : Pass(pass) { } 47 ASTContext &Ctx = Pass.Ctx; 53 Transaction Trans(Pass.TA); 54 if (Pass.TA.clearDiagnostic(diag::err_typecheck_arr_assign_enumeration, 58 Pass.TA.insert(TLoc.getBeginLoc(), "__strong "); 71 void trans::makeAssignARCSafe(MigrationPass &pass) { 72 ARCAssignChecker assignCheck(pass); [all...] |
TransBlockObjCVariable.cpp | 40 MigrationPass &Pass; 74 RootBlockObjCVarRewriter(MigrationPass &pass) : Pass(pass) { } 100 bool useWeak = canApplyWeak(Pass.Ctx, var->getType()); 101 SourceManager &SM = Pass.Ctx.getSourceManager(); 102 Transaction Trans(Pass.TA); 103 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()), 126 MigrationPass &Pass; 129 BlockObjCVarRewriter(MigrationPass &pass) : Pass(pass) { [all...] |
TransRetainReleaseDealloc.cpp | 34 MigrationPass &Pass; 42 RetainReleaseDeallocRemover(MigrationPass &pass) 43 : Body(0), Pass(pass) { 45 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("delegate")); 65 Pass.TA.reportError("it is not safe to remove an unused 'autorelease' " 70 // Pass through. 81 Pass.TA.reportError(err, rec->getLocStart()); 90 Pass.TA.reportError(err, rec->getLocStart()) [all...] |
TransZeroOutPropsInDealloc.cpp | 29 MigrationPass &Pass; 36 ZeroOutInDeallocRemover(MigrationPass &pass) : Pass(pass), SelfD(0) { } 39 ASTContext &Ctx = Pass.Ctx; 40 TransformActions &TA = Pass.TA; 79 Transaction Trans(Pass.TA); 80 Pass.TA.removeStmt(BOE); 150 ASTContext &Ctx = Pass.Ctx; 194 void trans::removeZeroOutPropsInDealloc(MigrationPass &pass) { [all...] |
TransEmptyStatementsAndDealloc.cpp | 152 MigrationPass &Pass; 155 EmptyStatementsRemover(MigrationPass &pass) : Pass(pass) { } 175 ASTContext &getContext() { return Pass.Ctx; } 180 if (EmptyChecker(Pass.Ctx, Pass.ARCMTMacroLocs).Visit(S)) { 181 Transaction Trans(Pass.TA); 182 Pass.TA.removeStmt(S); 199 static void removeDeallocMethod(MigrationPass &pass) { [all...] |
TransUnbridgedCasts.cpp | 49 MigrationPass &Pass; 54 UnbridgedCastRewriter(MigrationPass &pass) : Pass(pass) { 55 SelfII = &Pass.Ctx.Idents.get("self"); 83 if (castExpr->isNullPointerConstant(Pass.Ctx, 88 if (loc.isValid() && Pass.Ctx.getSourceManager().isInSystemHeader(loc)) 149 Transaction Trans(Pass.TA); 155 TransformActions &TA = Pass.TA; 185 newCast += E->getType().getAsString(Pass.Ctx.getPrintingPolicy()) [all...] |
TransAutoreleasePool.cpp | 71 AutoreleasePoolRewriter(MigrationPass &pass) 72 : Body(0), 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 PropertiesRewriter(MigrationPass &pass) : Pass(pass) { } 134 Transaction Trans(Pass.TA); 149 Transaction Trans(Pass.TA); 223 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props)); 233 Pass.TA.insert(I->IvarD->getLocation(), 236 Pass.TA.clearDiagnostic(diag::err_arc_assign_property_ownership, 245 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props)) [all...] |
/external/llvm/lib/VMCore/ |
Pass.cpp | 1 //===- Pass.cpp - LLVM Pass Infrastructure Implementation -----------------===// 10 // This file implements the LLVM Pass infrastructure. It is primarily 16 #include "llvm/Pass.h" 25 // Pass Implementation 28 Pass::Pass(PassKind K, char &pid) : Resolver(0), PassID(&pid), Kind(K) { } 31 Pass::~Pass() { 38 Pass *ModulePass::createPrinterPass(raw_ostream &O [all...] |
/external/llvm/include/llvm/ |
Pass.h | 1 //===- llvm/Pass.h - Base class for Passes ----------------------*- C++ -*-===// 11 // transformation pass implementation. 48 // AnalysisID - Use the PassInfo to identify a pass... 51 /// Different types of internal pass managers. External pass managers 53 /// Ordering of pass manager types is important here. 77 /// Pass interface - Implemented by all 'passes'. Subclass this if you are an 81 class Pass { 85 void operator=(const Pass&); // DO NOT IMPLEMENT 86 Pass(const Pass &); // DO NOT IMPLEMEN [all...] |
/external/llvm/lib/CodeGen/ |
InlineSpiller.cpp | 54 MachineFunctionPass &Pass; 136 InlineSpiller(MachineFunctionPass &pass, 139 : Pass(pass), 141 LIS(pass.getAnalysis<LiveIntervals>()), 142 LSS(pass.getAnalysis<LiveStacks>()), 143 AA(&pass.getAnalysis<AliasAnalysis>()), 144 MDT(pass.getAnalysis<MachineDominatorTree>()), 145 Loops(pass.getAnalysis<MachineLoopInfo>()), 190 Spiller *createInlineSpiller(MachineFunctionPass &pass, [all...] |
/prebuilt/common/jython/ |
jython.jar | |