Home
last modified time | relevance | path

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

12

/freebsd/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
/freebsd/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 DRewriteMacros.cpp92 Rewriter Rewrite; in RewriteMacrosInInput()
/freebsd/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");
/freebsd/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 isLoopProfitableToPredicate()
1109 !Rewriter.isSafeToExpandAt(MinEC, IP))
1112 Rewriter.setInsertPoint(IP);
1136 !Rewriter.isSafeToExpandAt(ExitCount, WidenableBR)) in predicateLoopExits()
1152 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
1154 MinECV = Rewriter.expandCodeFor(MinEC); in predicateLoopExits()
1114 predicateLoopExits(Loop * L,SCEVExpander & Rewriter) predicateLoopExits() argument
H A DLoopStrengthReduce.cpp2152 mutable SCEVExpander Rewriter; member in __anonc21373340a11::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 …]
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
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()
/freebsd/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;
/freebsd/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 …]
H A DTextDiagnostics.cpp127 Rewriter Rewrite(SM, LO); in FlushDiagnosticsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp59 SCEVExpander &Rewriter; member in __anonb324fb7f0111::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 …]
H A DLoopUtils.cpp1492 SCEVExpander &Rewriter, DominatorTree *DT, in rewriteLoopExitValues() argument
1589 !Rewriter.isSafeToExpand(ExitValue)) { in rewriteLoopExitValues()
1602 !Rewriter.isSafeToExpand(ExitValue)) in rewriteLoopExitValues()
1616 bool HighCost = Rewriter.isHighCostExpansion( in rewriteLoopExitValues()
1653 Value *ExitVal = Rewriter.expandCodeFor( in rewriteLoopExitValues()
1695 Rewriter.clearInsertPoint(); in rewriteLoopExitValues()
/freebsd/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;
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h59 SCEVExpander &Rewriter,
84 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DPeepholeOptimizer.cpp849 class Rewriter { class
854 Rewriter(MachineInstr &CopyLike) : CopyLike(CopyLike) {} in Rewriter() function in __anon776574090211::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 …]
/freebsd/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);
/freebsd/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
/freebsd/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()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp112 Rewriter ExtractedCodeRewriter(SM, LangOpts); in createSourceReplacements()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolutionExpressions.h906 SCEVParameterRewriter Rewriter(SE, Map); in rewrite()
907 return Rewriter.visit(Scev); in rewrite()
936 SCEVLoopAddRecRewriter Rewriter(SE, Map); in rewrite()
937 return Rewriter.visit(Scev); in rewrite()

12