Home
last modified time | relevance | path

Searched refs:Rewriter (Results 1 – 25 of 44) sorted by relevance

12

/src/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DHTMLRewrite.h22 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 DRewriter.h32 class Rewriter {
68 explicit Rewriter() = default;
69 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter() function
H A DRewriteBuffer.h26 friend class Rewriter; variable
/src/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteTest.cpp22 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 DFrontendActions.cpp105 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 DFixItRewriter.cpp62 Rewriter &Rewrite;
65 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) {} in RewritesReceiver()
H A DHTMLPrint.cpp32 Rewriter R;
/src/contrib/llvm-project/clang/include/clang/Tooling/
H A DRefactoring.h28 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 DIndVarSimplify.cpp146 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 DLoopPredication.cpp321 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 DLoopStrengthReduce.cpp2152 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 DRewriter.cpp141 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 DHTMLRewrite.cpp33 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 DRefactoring.cpp48 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 DInstrument.cpp27 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 DHTMLDiagnostics.cpp96 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 DSimplifyIndVar.cpp59 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 DSimplifyIndVar.h59 SCEVExpander &Rewriter,
84 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter,
/src/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h70 Rewriter Rewrite;
100 using iterator = Rewriter::buffer_iterator;
H A DFrontendActions.h31 std::unique_ptr<FixItRewriter> Rewriter;
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DPeepholeOptimizer.cpp849 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 DReplacement.h38 class Rewriter; variable
127 bool apply(Rewriter &Rewrite) const;
322 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
/src/tools/build/options/
H A DWITH_CLANG_FULL1 Build the ARCMigrate, Rewriter and StaticAnalyzer components of the
H A DWITHOUT_CLANG_FULL1 Avoid building the ARCMigrate, Rewriter and StaticAnalyzer components of
/src/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp463 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()

12