| /freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | HTMLRewrite.h | 26 class Rewriter; variable 44 void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, 52 inline void HighlightRange(Rewriter &R, SourceRange Range, in HighlightRange() 65 void EscapeText(Rewriter& R, FileID FID, 75 void AddLineNumbers(Rewriter& R, FileID FID); 77 void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, 82 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, 89 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP,
|
| H A D | Rewriter.h | 32 class Rewriter { 69 explicit Rewriter() = default; 70 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter() function
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteTest.cpp | 21 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest() local 24 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest() 25 E = Rewriter.token_end(); I != E; ++I) { in DoRewriteTest() 28 Rewriter.AddTokenBefore(I, "<i>"); in DoRewriteTest() 29 Rewriter.AddTokenAfter(I, "</i>"); in DoRewriteTest() 34 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest() 35 E = Rewriter.token_end(); I != E; ++I) in DoRewriteTest()
|
| H A D | FrontendActions.cpp | 104 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction() 111 Rewriter->WriteFixedFiles(); in EndSourceFileAction() 130 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginInvocation() local 138 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 | 33 Rewriter R;
|
| /freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 46 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() 76 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { in getRangeSize() 85 std::string Rewriter::getRewrittenText(CharSourceRange Range) const { in getRewrittenText() 133 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, in getLocationOffsetAndFileID() 142 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer() 157 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str, in InsertText() 198 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) { in InsertTextAfterToken() 210 bool Rewriter::RemoveText(SourceLocation Start, unsigned Length, in RemoveText() 222 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() 232 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { in ReplaceText() [all …]
|
| H A D | HTMLRewrite.cpp | 32 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, in HighlightRange() 134 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText() 254 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers() 301 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, in AddHeaderFooterInternalBuiltinCSS() 473 Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlightImpl() 562 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, in SyntaxHighlight() 594 Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacrosImpl() 595 llvm::function_ref<void(Rewriter &, SourceLocation, SourceLocation, in HighlightMacrosImpl() argument 739 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP, in HighlightMacros() 753 auto HighlightRangeCallback = [&](Rewriter &R, SourceLocation B, in HighlightMacros()
|
| /freebsd/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");
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 144 bool simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI); 150 bool optimizeLoopExits(Loop *L, SCEVExpander &Rewriter); 153 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter); 159 PHINode *IndVar, SCEVExpander &Rewriter); 593 SCEVExpander &Rewriter, in simplifyAndExtend() argument 623 Rewriter, &Visitor); in simplifyAndExtend() 639 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend() 909 SCEVExpander &Rewriter, ScalarEvolution *SE) { in genLoopLimit() argument 932 return Rewriter.expandCodeFor(IVLimit, ARBase->getType(), in genLoopLimit() 944 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument [all …]
|
| H A D | LoopPredication.cpp | 320 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter); 1030 bool LoopPredication::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) { in predicateLoopExits() argument 1108 !Rewriter.isSafeToExpandAt(MinEC, IP)) in predicateLoopExits() 1111 Rewriter.setInsertPoint(IP); in predicateLoopExits() 1135 !Rewriter.isSafeToExpandAt(ExitCount, WidenableBR)) in predicateLoopExits() 1151 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits() 1153 MinECV = Rewriter.expandCodeFor(MinEC); in predicateLoopExits()
|
| H A D | LoopStrengthReduce.cpp | 2134 mutable SCEVExpander Rewriter; member in __anonc21373340a11::LSRInstance 3441 Rewriter.clearPostInc(); in GenerateIVChain() 3442 Value *IncV = Rewriter.expandCodeFor(Remainder, IntTy, InsertPt); in GenerateIVChain() 3445 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain() 3456 Rewriter.clearPostInc(); in GenerateIVChain() 3457 Value *IncV = Rewriter.expandCodeFor(LeftOverExpr, IntTy, InsertPt); in GenerateIVChain() 3460 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain() 3561 if (SE.isLoopInvariant(N, L) && Rewriter.isSafeToExpand(N) && in CollectFixupsAndInitialFormulae() 3642 if (!Rewriter.isSafeToExpand(S)) in InsertInitialFormula() 5648 while (Rewriter.isInsertedInstruction(&*IP) && IP != LowestIP) in AdjustInsertPositionForExpand() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 46 Rewriter Rewrite(Sources, DefaultLangOptions); in runAndSave() 55 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() 63 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() 69 Rewriter &Rewrite, StringRef Style) { in formatAndApplyAllReplacements()
|
| /freebsd/contrib/llvm-project/lldb/tools/lldb-instr/ |
| H A D | Instrument.cpp | 28 SBVisitor(Rewriter &R, ASTContext &Context) in SBVisitor() 118 Rewriter &MyRewriter; 124 SBConsumer(Rewriter &R, ASTContext &Context) : Visitor(R, Context) {} in SBConsumer() 154 Rewriter MyRewriter;
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | HTMLDiagnostics.cpp | 92 unsigned ProcessControlFlowPiece(Rewriter &R, FileID BugFileID, 96 void HandlePiece(Rewriter &R, FileID BugFileID, const PathDiagnosticPiece &P, 100 void HighlightRange(Rewriter &R, FileID BugFileID, SourceRange Range, 107 std::string GenerateHTML(const PathDiagnostic &D, Rewriter &R, 112 void FinalizeHTML(const PathDiagnostic &D, Rewriter &R, 117 void RewriteFile(Rewriter &R, const PathPieces &path, FileID FID); 124 void addArrowSVGs(Rewriter &R, FileID BugFileID, 285 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); in ReportDiag() 378 std::string HTMLDiagnostics::GenerateHTML(const PathDiagnostic& D, Rewriter &R, in GenerateHTML() 548 void HTMLDiagnostics::FinalizeHTML(const PathDiagnostic &D, Rewriter &R, in FinalizeHTML() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 59 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() 650 if (Rewriter.isHighCostExpansion(S, L, SCEVCheapExpansionBudget, TTI, I)) in replaceIVUserWithLoopInvariant() 655 if (!Rewriter.isSafeToExpandAt(S, IP)) { in replaceIVUserWithLoopInvariant() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyIndVar.h | 59 SCEVExpander &Rewriter, 84 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter,
|
| /freebsd/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;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | RewriteBuffer.h | 18 class Rewriter; variable 32 friend class clang::Rewriter;
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | PeepholeOptimizer.cpp | 152 class Rewriter { class 157 Rewriter(MachineInstr &CopyLike) : CopyLike(CopyLike) {} in Rewriter() function in __anon776574090111::Rewriter 158 virtual ~Rewriter() = default; 194 class CopyRewriter : public Rewriter { 196 CopyRewriter(MachineInstr &MI) : Rewriter(MI) { in CopyRewriter() 225 class UncoalescableRewriter : public Rewriter { 229 UncoalescableRewriter(MachineInstr &MI) : Rewriter(MI) { in UncoalescableRewriter() 264 class InsertSubregRewriter : public Rewriter { 266 InsertSubregRewriter(MachineInstr &MI) : Rewriter(MI) { in InsertSubregRewriter() 314 class ExtractSubregRewriter : public Rewriter { [all …]
|
| /freebsd/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);
|
| /freebsd/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
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 68 bool Replacement::apply(Rewriter &Rewrite) const { in apply() 567 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements() 591 Rewriter Rewrite(SourceMgr, LangOptions()); in applyAllReplacements()
|