Home
last modified time | relevance | path

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

123

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DDexRewriter.java71 private final Rewriter<ClassDef> classDefRewriter;
72 private final Rewriter<Field> fieldRewriter;
73 private final Rewriter<Method> methodRewriter;
74 private final Rewriter<MethodParameter> methodParameterRewriter;
75 private final Rewriter<MethodImplementation> methodImplementationRewriter;
76 private final Rewriter<Instruction> instructionRewriter;
77 private final Rewriter<TryBlock<? extends ExceptionHandler>> tryBlockRewriter;
78 private final Rewriter<ExceptionHandler> exceptionHandlerRewriter;
79 private final Rewriter<DebugItem> debugItemRewriter;
80 private final Rewriter<String> typeRewriter;
[all …]
DRewriters.java44 @Nonnull Rewriter<ClassDef> getClassDefRewriter(); in getClassDefRewriter()
45 @Nonnull Rewriter<Field> getFieldRewriter(); in getFieldRewriter()
47 @Nonnull Rewriter<Method> getMethodRewriter(); in getMethodRewriter()
48 @Nonnull Rewriter<MethodParameter> getMethodParameterRewriter(); in getMethodParameterRewriter()
49 @Nonnull Rewriter<MethodImplementation> getMethodImplementationRewriter(); in getMethodImplementationRewriter()
50 @Nonnull Rewriter<Instruction> getInstructionRewriter(); in getInstructionRewriter()
51 @Nonnull Rewriter<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter(); in getTryBlockRewriter()
52 @Nonnull Rewriter<ExceptionHandler> getExceptionHandlerRewriter(); in getExceptionHandlerRewriter()
53 @Nonnull Rewriter<DebugItem> getDebugItemRewriter(); in getDebugItemRewriter()
55 @Nonnull Rewriter<String> getTypeRewriter(); in getTypeRewriter()
[all …]
DRewriterModule.java44 @Nonnull public Rewriter<ClassDef> getClassDefRewriter(@Nonnull Rewriters rewriters) { in getClassDefRewriter()
48 @Nonnull public Rewriter<Field> getFieldRewriter(@Nonnull Rewriters rewriters) { in getFieldRewriter()
52 @Nonnull public Rewriter<Method> getMethodRewriter(@Nonnull Rewriters rewriters) { in getMethodRewriter()
56 …@Nonnull public Rewriter<MethodParameter> getMethodParameterRewriter(@Nonnull Rewriters rewriters)… in getMethodParameterRewriter()
60 …@Nonnull public Rewriter<MethodImplementation> getMethodImplementationRewriter(@Nonnull Rewriters … in getMethodImplementationRewriter()
64 @Nonnull public Rewriter<Instruction> getInstructionRewriter(@Nonnull Rewriters rewriters) { in getInstructionRewriter()
68 …@Nonnull public Rewriter<TryBlock<? extends ExceptionHandler>> getTryBlockRewriter(@Nonnull Rewrit… in getTryBlockRewriter()
72 …@Nonnull public Rewriter<ExceptionHandler> getExceptionHandlerRewriter(@Nonnull Rewriters rewriter… in getExceptionHandlerRewriter()
76 @Nonnull public Rewriter<DebugItem> getDebugItemRewriter(@Nonnull Rewriters rewriters) { in getDebugItemRewriter()
80 @Nonnull public Rewriter<String> getTypeRewriter(@Nonnull Rewriters rewriters) { in getTypeRewriter()
[all …]
DRewriterUtils.java43 public static <T> T rewriteNullable(@Nonnull Rewriter<T> rewriter, @Nullable T value) { in rewriteNullable()
47 public static <T> Set<T> rewriteSet(@Nonnull final Rewriter<T> rewriter, in rewriteSet()
73 public static <T> List<T> rewriteList(@Nonnull final Rewriter<T> rewriter,
86 public static <T> Iterable<T> rewriteIterable(@Nonnull final Rewriter<T> rewriter,
108 public static TypeReference rewriteTypeReference(@Nonnull final Rewriter<String> typeRewriter,
DRewriter.java36 public interface Rewriter<T> { interface
DTypeRewriter.java36 public class TypeRewriter implements Rewriter<String> {
/external/v8/src/parsing/
Dparameter-initializer-rewriter.cc18 class Rewriter final : public AstTraversalVisitor<Rewriter> { class
20 Rewriter(uintptr_t stack_limit, Expression* initializer, Scope* param_scope) in Rewriter() function in v8::internal::__anon701e9d4e0111::Rewriter
27 friend class AstTraversalVisitor<Rewriter>;
40 void Rewriter::VisitFunctionLiteral(FunctionLiteral* function_literal) { in VisitFunctionLiteral()
45 void Rewriter::VisitClassLiteral(ClassLiteral* class_literal) { in VisitClassLiteral()
64 void Rewriter::VisitVariableProxy(VariableProxy* proxy) { in VisitVariableProxy()
77 void Rewriter::VisitBlock(Block* stmt) { in VisitBlock()
85 void Rewriter::VisitTryCatchStatement(TryCatchStatement* stmt) { in VisitTryCatchStatement()
91 void Rewriter::VisitWithStatement(WithStatement* stmt) { in VisitWithStatement()
108 Rewriter rewriter(stack_limit, expr, param_scope); in ReparentParameterExpressionScope()
Drewriter.h18 class Rewriter {
/external/clang/include/clang/Rewrite/Core/
DHTMLRewrite.h23 class Rewriter; variable
33 void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
40 inline void HighlightRange(Rewriter &R, SourceRange Range, in HighlightRange()
53 void EscapeText(Rewriter& R, FileID FID,
63 void AddLineNumbers(Rewriter& R, FileID FID);
65 void AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
70 void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP);
76 void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP);
DRewriter.h31 class Rewriter {
56 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter() function
58 explicit Rewriter() : SourceMgr(nullptr), LangOpts(nullptr) {} in Rewriter() function
DRewriteBuffer.h19 class Rewriter; variable
28 friend class Rewriter; variable
/external/clang/lib/Frontend/Rewrite/
DRewriteTest.cpp23 TokenRewriter Rewriter(SM.getMainFileID(), SM, LangOpts); in DoRewriteTest() local
26 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest()
27 E = Rewriter.token_end(); I != E; ++I) { in DoRewriteTest()
30 Rewriter.AddTokenBefore(I, "<i>"); in DoRewriteTest()
31 Rewriter.AddTokenAfter(I, "</i>"); in DoRewriteTest()
36 for (TokenRewriter::token_iterator I = Rewriter.token_begin(), in DoRewriteTest()
37 E = Rewriter.token_end(); I != E; ++I) in DoRewriteTest()
DFrontendActions.cpp99 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction()
106 Rewriter->WriteFixedFiles(); in EndSourceFileAction()
125 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginInvocation() local
129 err = Rewriter.WriteFixedFiles(&RewrittenFiles); in BeginInvocation()
/external/clang/include/clang/Tooling/
DRefactoring.h28 class Rewriter; variable
61 bool applyAllReplacements(Rewriter &Rewrite);
65 int saveRewrittenFiles(Rewriter &Rewrite);
87 Rewriter &Rewrite, StringRef Style = "file");
/external/clang/lib/Rewrite/
DRewriter.cpp124 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize()
157 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { in getRangeSize()
168 std::string Rewriter::getRewrittenText(SourceRange Range) const { in getRewrittenText()
212 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, in getLocationOffsetAndFileID()
223 RewriteBuffer &Rewriter::getEditBuffer(FileID FID) { in getEditBuffer()
238 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str, in InsertText()
279 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) { in InsertTextAfterToken()
291 bool Rewriter::RemoveText(SourceLocation Start, unsigned Length, in RemoveText()
303 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText()
313 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { in ReplaceText()
[all …]
DHTMLRewrite.cpp32 void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, in HighlightRange()
106 void html::EscapeText(Rewriter &R, FileID FID, in EscapeText()
226 void html::AddLineNumbers(Rewriter& R, FileID FID) { in AddLineNumbers()
270 void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, in AddHeaderFooterInternalBuiltinCSS()
357 void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { in SyntaxHighlight()
446 void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) { in HighlightMacros()
DCMakeLists.txt9 Rewriter.cpp
/external/clang/lib/Tooling/
DRefactoring.cpp48 Rewriter Rewrite(Sources, DefaultLangOptions); in runAndSave()
57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements()
61 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles()
66 Rewriter &Rewrite, StringRef Style) { in formatAndApplyAllReplacements()
/external/clang/unittests/Tooling/
DRewriterTest.cpp18 TEST(Rewriter, OverwritesChangedFiles) { in TEST() argument
27 TEST(Rewriter, ContinuesOverwritingFilesOnError) { in TEST() argument
40 TEST(Rewriter, AdjacentInsertAndDelete) { in TEST() argument
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp104 void simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI);
107 void rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter);
111 PHINode *IndVar, SCEVExpander &Rewriter);
115 Value *expandSCEVIfNeeded(SCEVExpander &Rewriter, const SCEV *S, Loop *L,
479 Value *IndVarSimplify::expandSCEVIfNeeded(SCEVExpander &Rewriter, const SCEV *S, in expandSCEVIfNeeded() argument
484 if (Value *ExistingValue = Rewriter.findExistingExpansion(S, InsertPt, L)) in expandSCEVIfNeeded()
489 return Rewriter.expandCodeFor(S, ResultTy, InsertPt); in expandSCEVIfNeeded()
507 void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) { in rewriteLoopExitValues() argument
606 bool HighCost = Rewriter.isHighCostExpansion(ExitValue, L, Inst); in rewriteLoopExitValues()
608 expandSCEVIfNeeded(Rewriter, ExitValue, L, Inst, PN->getType()); in rewriteLoopExitValues()
[all …]
DLoopStrengthReduce.cpp1675 void GenerateIVChain(const IVChain &Chain, SCEVExpander &Rewriter,
1753 SCEVExpander &Rewriter) const;
1758 SCEVExpander &Rewriter,
1762 SCEVExpander &Rewriter,
1766 SCEVExpander &Rewriter,
2829 void LSRInstance::GenerateIVChain(const IVChain &Chain, SCEVExpander &Rewriter, in GenerateIVChain() argument
2883 Rewriter.clearPostInc(); in GenerateIVChain()
2884 Value *IncV = Rewriter.expandCodeFor(LeftOverExpr, IntTy, InsertPt); in GenerateIVChain()
2887 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain()
4372 SCEVExpander &Rewriter) const { in AdjustInsertPositionForExpand()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp120 void SimplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LPPassManager &LPM);
122 void RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter);
124 void RewriteIVExpressions(Loop *L, SCEVExpander &Rewriter);
127 PHINode *IndVar, SCEVExpander &Rewriter);
494 void IndVarSimplify::RewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) { in RewriteLoopExitValues() argument
555 Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst); in RewriteLoopExitValues()
594 Rewriter.clearInsertPoint(); in RewriteLoopExitValues()
643 void IndVarSimplify::RewriteIVExpressions(Loop *L, SCEVExpander &Rewriter) { in RewriteIVExpressions() argument
683 Value *NewVal = Rewriter.expandCodeFor(AR, UseTy, InsertPt); in RewriteIVExpressions()
834 PHINode *CreateWideIV(SCEVExpander &Rewriter);
[all …]
/external/clang/include/clang/Tooling/Core/
DReplacement.h33 class Rewriter; variable
121 bool apply(Rewriter &Rewrite) const;
156 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
165 Rewriter &Rewrite);
/external/clang/include/clang/Rewrite/Frontend/
DFixItRewriter.h68 Rewriter Rewrite;
86 typedef Rewriter::buffer_iterator iterator;
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp63 void HandlePiece(Rewriter& R, FileID BugFileID,
66 void HighlightRange(Rewriter& R, FileID BugFileID, SourceRange Range,
133 Rewriter R(const_cast<SourceManager&>(SMgr), PP.getLangOpts()); in ReportDiag()
347 void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, in HandlePiece()
598 void HTMLDiagnostics::HighlightRange(Rewriter& R, FileID BugFileID, in HighlightRange()

123