| /src/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | HTMLRewrite.h | 22 class Rewriter; variable 41 void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, 49 inline void HighlightRange(Rewriter &R, SourceRange Range, in HighlightRange() 62 void EscapeText(Rewriter& R, FileID FID, 72 void AddLineNumbers(Rewriter& R, FileID FID); 74 void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, 79 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, 86 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP,
|
| H A D | Rewriter.h | 32 class Rewriter { 68 explicit Rewriter() = default; 69 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter() function
|
| H A D | RewriteBuffer.h | 26 friend class Rewriter; variable
|
| /src/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteTest.cpp | 22 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest() local 25 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest() 26 E = Rewriter.token_end(); I != E; ++I) { in DoRewriteTest() 29 Rewriter.AddTokenBefore(I, "<i>"); in DoRewriteTest() 30 Rewriter.AddTokenAfter(I, "</i>"); in DoRewriteTest() 35 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest() 36 E = Rewriter.token_end(); I != E; ++I) in DoRewriteTest()
|
| H A D | FrontendActions.cpp | 105 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 112 Rewriter->WriteFixedFiles(); in EndSourceFileAction() 131 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginInvocation() local 139 err = Rewriter.WriteFixedFiles(&RewrittenFiles); in BeginInvocation()
|
| H A D | FixItRewriter.cpp | 62 Rewriter &Rewrite; 65 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) {} in RewritesReceiver()
|
| H A D | HTMLPrint.cpp | 32 Rewriter R;
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/ |
| H A D | Refactoring.h | 28 class Rewriter; variable 64 bool applyAllReplacements(Rewriter &Rewrite); 68 int saveRewrittenFiles(Rewriter &Rewrite); 94 Rewriter &Rewrite, StringRef Style = "file");
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 146 bool simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI); 152 bool optimizeLoopExits(Loop *L, SCEVExpander &Rewriter); 155 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter); 161 PHINode *IndVar, SCEVExpander &Rewriter); 597 SCEVExpander &Rewriter, in simplifyAndExtend() argument 628 Rewriter, &Visitor); in simplifyAndExtend() 644 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend() 918 SCEVExpander &Rewriter, ScalarEvolution *SE) { in genLoopLimit() argument 941 return Rewriter.expandCodeFor(IVLimit, ARBase->getType(), in genLoopLimit() 953 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument [all …]
|
| H A D | LoopPredication.cpp | 321 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter); 1031 bool LoopPredication::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) { in predicateLoopExits() argument 1109 !Rewriter.isSafeToExpandAt(MinEC, IP)) in predicateLoopExits() 1112 Rewriter.setInsertPoint(IP); in predicateLoopExits() 1136 !Rewriter.isSafeToExpandAt(ExitCount, WidenableBR)) in predicateLoopExits() 1152 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits() 1154 MinECV = Rewriter.expandCodeFor(MinEC); in predicateLoopExits()
|
| H A D | LoopStrengthReduce.cpp | 2152 mutable SCEVExpander Rewriter; member in __anonf70d3e490a11::LSRInstance 3456 Rewriter.clearPostInc(); in GenerateIVChain() 3457 Value *IncV = Rewriter.expandCodeFor(Remainder, IntTy, InsertPt); in GenerateIVChain() 3460 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain() 3471 Rewriter.clearPostInc(); in GenerateIVChain() 3472 Value *IncV = Rewriter.expandCodeFor(LeftOverExpr, IntTy, InsertPt); in GenerateIVChain() 3475 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain() 3576 if (SE.isLoopInvariant(N, L) && Rewriter.isSafeToExpand(N) && in CollectFixupsAndInitialFormulae() 3656 if (!Rewriter.isSafeToExpand(S)) in InsertInitialFormula() 5676 while (Rewriter.isInsertedInstruction(&*IP) && IP != LowestIP) in AdjustInsertPositionForExpand() [all …]
|
| /src/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 141 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() 171 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { in getRangeSize() 180 std::string Rewriter::getRewrittenText(CharSourceRange Range) const { in getRewrittenText() 228 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, in getLocationOffsetAndFileID() 237 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer() 252 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str, in InsertText() 293 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) { in InsertTextAfterToken() 305 bool Rewriter::RemoveText(SourceLocation Start, unsigned Length, in RemoveText() 317 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() 327 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { in ReplaceText() [all …]
|
| H A D | HTMLRewrite.cpp | 33 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, in HighlightRange() 135 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() 255 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() 302 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, in AddHeaderFooterInternalBuiltinCSS() 474 Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlightImpl() 563 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlight() 595 Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacrosImpl() 596 llvm::function_ref<void(Rewriter &, SourceLocation, SourceLocation, in HighlightMacrosImpl() argument 740 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacros() 754 auto HighlightRangeCallback = [&](Rewriter &R, SourceLocation B, in HighlightMacros()
|
| /src/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 48 Rewriter Rewrite(Sources, DefaultLangOptions); in runAndSave() 57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() 65 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() 71 Rewriter &Rewrite, StringRef Style) { in formatAndApplyAllReplacements()
|
| /src/contrib/llvm-project/lldb/tools/lldb-instr/ |
| H A D | Instrument.cpp | 27 SBVisitor(Rewriter &R, ASTContext &Context) in SBVisitor() 117 Rewriter &MyRewriter; 123 SBConsumer(Rewriter &R, ASTContext &Context) : Visitor(R, Context) {} in SBConsumer() 153 Rewriter MyRewriter;
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 96 unsigned ProcessControlFlowPiece(Rewriter &R, FileID BugFileID, 100 void HandlePiece(Rewriter &R, FileID BugFileID, const PathDiagnosticPiece &P, 104 void HighlightRange(Rewriter &R, FileID BugFileID, SourceRange Range, 111 std::string GenerateHTML(const PathDiagnostic &D, Rewriter &R, 116 void FinalizeHTML(const PathDiagnostic &D, Rewriter &R, 121 void RewriteFile(Rewriter &R, const PathPieces &path, FileID FID); 128 void addArrowSVGs(Rewriter &R, FileID BugFileID, 287 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); in ReportDiag() 380 std::string HTMLDiagnostics::GenerateHTML(const PathDiagnostic& D, Rewriter &R, in GenerateHTML() 550 void HTMLDiagnostics::FinalizeHTML(const PathDiagnostic &D, Rewriter &R, in FinalizeHTML() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 59 SCEVExpander &Rewriter; member in __anon458945740111::SimplifyIndvar 68 SCEVExpander &Rewriter, in SimplifyIndvar() argument 70 : L(Loop), LI(LI), SE(SE), DT(DT), TTI(TTI), Rewriter(Rewriter), in SimplifyIndvar() 230 if (Rewriter.isHighCostExpansion({InvariantLHS, InvariantRHS}, L, in makeIVComparisonInvariant() 232 !Rewriter.isSafeToExpandAt(InvariantLHS, PHTerm) || in makeIVComparisonInvariant() 233 !Rewriter.isSafeToExpandAt(InvariantRHS, PHTerm)) in makeIVComparisonInvariant() 236 Rewriter.expandCodeFor(InvariantLHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant() 238 Rewriter.expandCodeFor(InvariantRHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant() 648 if (Rewriter.isHighCostExpansion(S, L, SCEVCheapExpansionBudget, TTI, I)) in replaceIVUserWithLoopInvariant() 653 if (!Rewriter.isSafeToExpandAt(S, IP)) { in replaceIVUserWithLoopInvariant() [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyIndVar.h | 59 SCEVExpander &Rewriter, 84 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter,
|
| /src/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/ |
| H A D | FixItRewriter.h | 70 Rewriter Rewrite; 100 using iterator = Rewriter::buffer_iterator;
|
| H A D | FrontendActions.h | 31 std::unique_ptr<FixItRewriter> Rewriter;
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | PeepholeOptimizer.cpp | 849 class Rewriter { class 854 Rewriter(MachineInstr &CopyLike) : CopyLike(CopyLike) {} in Rewriter() function in __anona16aaa3e0211::Rewriter 855 virtual ~Rewriter() = default; 891 class CopyRewriter : public Rewriter { 893 CopyRewriter(MachineInstr &MI) : Rewriter(MI) { in CopyRewriter() 927 class UncoalescableRewriter : public Rewriter { 931 UncoalescableRewriter(MachineInstr &MI) : Rewriter(MI) { in UncoalescableRewriter() 966 class InsertSubregRewriter : public Rewriter { 968 InsertSubregRewriter(MachineInstr &MI) : Rewriter(MI) { in InsertSubregRewriter() 1016 class ExtractSubregRewriter : public Rewriter { [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 38 class Rewriter; variable 127 bool apply(Rewriter &Rewrite) const; 322 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
|
| /src/tools/build/options/ |
| H A D | WITH_CLANG_FULL | 1 Build the ARCMigrate, Rewriter and StaticAnalyzer components of the
|
| H A D | WITHOUT_CLANG_FULL | 1 Avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
|
| /src/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | ARCMT.cpp | 463 Rewriter &rewriter; 467 RewritesApplicator(Rewriter &rewriter, ASTContext &ctx, in RewritesApplicator() 486 Rewriter::RewriteOptions removeOpts; in remove() 578 Rewriter rewriter(Ctx.getSourceManager(), Ctx.getLangOpts()); in applyTransform() 596 for (Rewriter::buffer_iterator in applyTransform()
|