/external/perfetto/src/trace_processor/sqlite/ |
D | sql_source.cc | 157 rewriter.Rewrite(0, static_cast<uint32_t>(root_.original_sql.size()), in RewriteAllIgnoreExisting() 163 const std::vector<Rewrite>& rewrites) { in ApplyRewrites() 166 for (const auto& rewrite : rewrites) { in ApplyRewrites() local 167 PERFETTO_CHECK(prev_idx <= rewrite.original_sql_start); in ApplyRewrites() 169 original_sql.substr(prev_idx, rewrite.original_sql_start - prev_idx)); in ApplyRewrites() 170 sql.append(rewrite.rewrite_node.rewritten_sql); in ApplyRewrites() 171 prev_idx = rewrite.original_sql_end; in ApplyRewrites() 182 const Rewrite& rewrite = rewrites[*opt_idx]; in AsTraceback() local 183 PERFETTO_CHECK(rewritten_offset >= rewrite.rewritten_sql_start); in AsTraceback() 184 PERFETTO_CHECK(rewritten_offset < rewrite.rewritten_sql_end); in AsTraceback() [all …]
|
D | sql_source.h | 98 struct Rewrite; 100 // Represents a tree of SQL rewrites, preserving the source for each rewrite. 110 // while retaining information about the source of the rewrite. 160 std::vector<Rewrite> rewrites; 186 // IMPORTANT: if |rewritten_offset| is *inside* a rewrite, the original 187 // offset will point to the *start of the rewrite*. For example, if 208 // rewrite whose original range contains |original_offset|. 209 // Returns std::nullopt if there is no such rewrite. 214 // Defines a rewrite. See the documentation for |SqlSource::Node| for details 216 struct Rewrite { struct [all …]
|
/external/clang/test/Frontend/ |
D | rewrite-includes.c | 6 #include "rewrite-includes1.h" 8 #define HEADER "rewrite-includes3.h" 11 #include "rewrite-includes4.h" 14 #/**/include /**/ "rewrite-includes5.h" /**/ \ 16 #include "rewrite-includes6.h" // comment 18 #include "rewrite-includes6.h" /* comment 20 #include "rewrite-includes7.h" 21 #include "rewrite-includes7.h" 22 #include "rewrite-includes8.h" 24 // CHECK: {{^}}# 1 "{{.*}}rewrite-includes.c"{{$}} [all …]
|
/external/antlr/runtime/Ruby/test/functional/token-rewrite/ |
D | basic.rb | 18 def rewrite( input, expected ) method in TestRewritingLexerOutputDirectly 27 rewrite( 'abc', '0abc' ) do |stream| 33 rewrite( 'abc', 'abcx' ) do |stream| 39 rewrite( 'abc', 'axbxc' ) do |stream| 46 rewrite( 'abc', 'xbc' ) do |stream| 52 rewrite( 'abc', 'abx' ) do |stream| 58 rewrite( 'abc', 'abx' ) do |stream| 64 rewrite( 'abc', 'axc' ) do |stream| 70 rewrite( 'abc', 'ayc' ) do |stream| 77 rewrite( 'abc', '_ayc' ) do |stream| [all …]
|
/external/clang/test/Driver/ |
D | symbol-rewriter.c | 1 // RUN: %clang -frewrite-map-file %S/Inputs/rewrite.map -### %s 2>&1 | FileCheck %s -check-prefix C… 3 // CHECK-SINGLE: "-frewrite-map-file" "{{.*[\\/]}}rewrite.map" 5 // RUN: %clang -frewrite-map-file %S/Inputs/rewrite-1.map -frewrite-map-file %S/Inputs/rewrite-2.ma… 7 …CHECK-MULTIPLE: "-frewrite-map-file" "{{.*[\\/]}}rewrite-1.map" "-frewrite-map-file" "{{.*[\\/]}}r… 9 // RUN: %clang -frewrite-map-file=%S/Inputs/rewrite.map -### %s 2>&1 | FileCheck %s -check-prefix C… 11 // CHECK-SINGLE-EQ: "-frewrite-map-file" "{{.*[\\/]}}rewrite.map" 13 // RUN: %clang -frewrite-map-file=%S/Inputs/rewrite-1.map -frewrite-map-file=%S/Inputs/rewrite-2.ma… 15 // CHECK-MULTIPLE-EQ: "-frewrite-map-file" "{{.*[\\/]}}rewrite-1.map" 16 // CHECK-MULTIPLE-EQ: "-frewrite-map-file" "{{.*[\\/]}}rewrite-2.map" 18 // RUN: %clang -frewrite-map-file %S/Inputs/rewrite-1.map -frewrite-map-file=%S/Inputs/rewrite-2.ma… [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/eager/ |
D | eager_op_rewrite_registry.h | 34 // To be implemented by an Eager op rewrite pass. 38 // Holds information about the rewrite registration. 43 // Returns information about the registered Eager op rewrite. 52 // Phases at which the Eager op rewrite pass should run. 58 // Add a rewrite pass to the registry. 62 // Run the rewrite pass registered for a given phase. 66 // Returns the global registry of rewrite passes. 79 // This class is used to register a new Eager Op rewrite. 90 #define REGISTER_REWRITE(phase, ordinal, rewrite) \ argument 92 ordinal, rewrite) [all …]
|
D | mkl_eager_op_rewrite.cc | 40 // The entry point to execute the op rewrite. 48 // Generic rewrite that can be used for any mkl op that doesn't need 53 // Rewrite rule for Conv2D, Conv2DBackpropInput and Conv2DBackpropFilter. 56 // Rewrite rule for FusedBatchNormV3 and FusedBatchNormGradV3 59 // Calls op-specific rewrite function to create new MKL op. 63 // Check whether we can rewrite the op to MKL one or not. 66 // Default rewrite rule to be used when rewrite should happen without any 171 // Don't rewrite the op if MKL use is disabled at runtime. in ShouldRewriteOp() 179 // Only rewrite if op is to be run on CPU device. in ShouldRewriteOp() 189 // Find and call the op's rewrite rule that determines whether we need to in ShouldRewriteOp() [all …]
|
/external/mpdecimal/libmpdec/literature/ |
D | mulmod-ppro.txt | 151 rewrite <- (Qred_correct (T)); simpl (Qred (T)). 172 rewrite <- (Qdiv_mult_l x z). rewrite <- (Qdiv_mult_l y z). 196 rewrite Qlt_mult_by_z with (z := (p * (1 + (2#1)^(-63))^2)). 199 rewrite <- Qmult_assoc. 200 rewrite (Qmult_comm (/ (p * (1 + (2 # 1) ^ (-63)) ^ 2)) (p * (1 + (2 # 1) ^ (-63)) ^ 2)). 201 rewrite Qmult_inv_r. 202 rewrite Qmult_1_r. 209 rewrite H5. 211 rewrite Qplus_comm. 212 rewrite Qlt_move_right. [all …]
|
/external/python/cpython3/Modules/_decimal/libmpdec/literature/ |
D | mulmod-ppro.txt | 151 rewrite <- (Qred_correct (T)); simpl (Qred (T)). 172 rewrite <- (Qdiv_mult_l x z). rewrite <- (Qdiv_mult_l y z). 196 rewrite Qlt_mult_by_z with (z := (p * (1 + (2#1)^(-63))^2)). 199 rewrite <- Qmult_assoc. 200 rewrite (Qmult_comm (/ (p * (1 + (2 # 1) ^ (-63)) ^ 2)) (p * (1 + (2 # 1) ^ (-63)) ^ 2)). 201 rewrite Qmult_inv_r. 202 rewrite Qmult_1_r. 209 rewrite H5. 211 rewrite Qplus_comm. 212 rewrite Qlt_move_right. [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/compiler/ |
D | preprocessor_test.cc | 34 RewriteStatus Rewrite(absl::string_view input, std::string* output) final { in Rewrite() function in tflite::gpu::gl::__anonc3c73da60111::AccuInlineRewrite 47 AccuInlineRewrite rewrite(&blocks); in ParseInlines() local 48 preprocessor.AddRewrite(&rewrite); in ParseInlines() 50 preprocessor.Rewrite(text, &discard).IgnoreError(); in ParseInlines() 73 AccuInlineRewrite rewrite(&blocks); in RewriteInlines() local 74 preprocessor.AddRewrite(&rewrite); in RewriteInlines() 76 preprocessor.Rewrite(text, &out).IgnoreError(); in RewriteInlines() 98 RewriteStatus Rewrite(absl::string_view input, std::string* output) final { in Rewrite() function in tflite::gpu::gl::__anonc3c73da60111::SingleRewrite 111 SingleRewrite rewrite; in TEST() local 112 preprocessor.AddRewrite(&rewrite); in TEST() [all …]
|
D | fuse_inplace.cc | 41 RewriteStatus Rewrite(absl::string_view input, std::string* output) final { in Rewrite() function in tflite::gpu::gl::__anonb55d7d2e0111::EmptyInplaceRewrite 56 // comes in a rewrite. For example: 58 // rewrite: inplace_update:result_12 -> result_12 = max(result_12, 0); 64 RewriteStatus Rewrite(absl::string_view input, std::string* output) final { in Rewrite() function in tflite::gpu::gl::__anonb55d7d2e0111::InplaceCodeRewrite 86 EmptyInplaceRewrite rewrite; in ApplyToNode() local 88 preprocessor.AddRewrite(&rewrite); in ApplyToNode() 89 if (!preprocessor.Rewrite(attr.code.source_code, &attr.code.source_code) in ApplyToNode() 93 return {rewrite.num_rewrites() > 0 ? TransformStatus::APPLIED in ApplyToNode() 116 // First count of replaces that would happen to check whether rewrite is in ApplyToNodesSequence() 123 if (!preprocessor.Rewrite(attr1.code.source_code, &temp).ok()) { in ApplyToNodesSequence() [all …]
|
D | object_accessor_test.cc | 53 ASSERT_EQ(accessor.Rewrite("", &result), RewriteStatus::NOT_RECOGNIZED); in TEST() 54 ASSERT_EQ(accessor.Rewrite("=", &result), RewriteStatus::NOT_RECOGNIZED); in TEST() 63 EXPECT_EQ(accessor.Rewrite("obj[i]", &result), RewriteStatus::SUCCESS); in TEST() 74 EXPECT_EQ(accessor.Rewrite("obj[i]", &result), RewriteStatus::SUCCESS); in TEST() 85 EXPECT_EQ(accessor.Rewrite("obj[x,y + 5,z]", &result), in TEST() 99 EXPECT_EQ(accessor.Rewrite("obj[i,j,k]", &result), RewriteStatus::SUCCESS); in TEST() 111 EXPECT_EQ(accessor.Rewrite("obj[i]", &result), RewriteStatus::SUCCESS); in TEST() 122 EXPECT_EQ(accessor.Rewrite(" obj[i] =value", &result), in TEST() 134 EXPECT_EQ(accessor.Rewrite(" obj[i,j,k] =value", &result), in TEST() 148 EXPECT_EQ(accessor.Rewrite("obj[i,j,k]= value ", &result), in TEST() [all …]
|
/external/clang/lib/Tooling/ |
D | Refactoring.cpp | 20 #include "clang/Rewrite/Core/Rewriter.h" 48 Rewriter Rewrite(Sources, DefaultLangOptions); in runAndSave() local 50 if (!applyAllReplacements(Rewrite)) { in runAndSave() 54 return saveRewrittenFiles(Rewrite); in runAndSave() 57 bool RefactoringTool::applyAllReplacements(Rewriter &Rewrite) { in applyAllReplacements() argument 58 return tooling::applyAllReplacements(Replace, Rewrite); in applyAllReplacements() 61 int RefactoringTool::saveRewrittenFiles(Rewriter &Rewrite) { in saveRewrittenFiles() argument 62 return Rewrite.overwriteChangedFiles() ? 1 : 0; in saveRewrittenFiles() 66 Rewriter &Rewrite, StringRef Style) { in formatAndApplyAllReplacements() argument 67 SourceManager &SM = Rewrite.getSourceMgr(); in formatAndApplyAllReplacements() [all …]
|
/external/angle/src/compiler/translator/tree_ops/glsl/ |
D | RewriteRepeatedAssignToSwizzled.cpp | 6 // RewriteRepeatedAssignToSwizzled.cpp: Rewrite expressions that assign an assignment to a swizzled 30 [[nodiscard]] static bool rewrite(TCompiler *compiler, TIntermBlock *root); 45 bool RewriteAssignToSwizzledTraverser::rewrite(TCompiler *compiler, TIntermBlock *root) in rewrite() function in sh::__anona3b781a90111::RewriteAssignToSwizzledTraverser 47 RewriteAssignToSwizzledTraverser rewrite; in rewrite() local 50 rewrite.nextIteration(); in rewrite() 51 root->traverse(&rewrite); in rewrite() 52 if (!rewrite.updateTree(compiler, root)) in rewrite() 56 } while (rewrite.didRewrite()); in rewrite() 94 return RewriteAssignToSwizzledTraverser::rewrite(compiler, root); in RewriteRepeatedAssignToSwizzled()
|
/external/jsoncpp/test/ |
D | pyjsontestrunner.py | 22 rewrite_path = base_path + '.rewrite' 23 rewrite_actual_path = base_path + '.actual-rewrite' 61 rewrite = json.dumps(value) 62 #rewrite = rewrite[1:-1] # Somehow the string is quoted ! jsonpy bug ? 63 file(rewrite_path, 'wt').write(rewrite + '\n') 64 return rewrite 68 rewrite = rewriteValueTree(json.write(root), rewrite_path) variable 69 rewrite_root = parseAndSaveValueTree(rewrite, rewrite_actual_path)
|
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/include/mlir-hlo/Dialect/mhlo/transforms/ |
D | rewriters.h | 32 // Collection of rewrite patterns for lowering a general dot product. 36 // Collection of rewrite patterns for lowering complex operations to equivalent 44 // Rewrite patterns for einsum to equivalent dot_general legalization. 48 // Rewrite patterns for gather to equivalent torch index select legalization. 54 // Collection of rewrite patterns for lowering all mhlo ops to their 60 // Collection of rewrite patterns for lowering of HLO to LHLO dialect. 65 // Collection of rewrite patterns for lowering of HLO to arithmetic dialect. 68 // Collection of rewrite patterns for lowering of shape operations from the HLO 74 // Collection of rewrite patterns for lowering of HLO to Linalg dialect. 79 // Collection of rewrite patterns for lowering of HLO dim operations. [all …]
|
/external/grpc-grpc/tools/distrib/python/xds_protos/envoy/extensions/path/rewrite/uri_template/v3/ |
D | uri_template_rewrite_pb2.py | 3 # source: envoy/extensions/path/rewrite/uri_template/v3/uri_template_rewrite.proto 18 …rewrite/uri_template/v3/uri_template_rewrite.proto\x12-envoy.extensions.path.rewrite.uri_template.… 22 _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'envoy.extensions.path.rewrite.uri_template.v3.… 25 …ensions.path.rewrite.uri_template.v3B\027UriTemplateRewriteProtoP\001Zcgithub.com/envoyproxy/go-co…
|
/external/llvm/lib/Transforms/Utils/ |
D | SymbolRewriter.cpp | 10 // SymbolRewriter is a LLVM pass which can rewrite symbols transparently within 44 // New rewrite descriptors can be created. Addding a new rewrite descriptor 47 // a) extended the rewrite descriptor kind enumeration 51 // c) extending the rewrite map parser 54 // Specify to rewrite the symbols using the `-rewrite-symbols` option, and 55 // specify the map file to use for the rewriting via the `-rewrite-map-file` 76 static cl::list<std::string> RewriteMapFiles("rewrite-map-file", 77 cl::desc("Symbol Rewrite Map"), 181 /// Represents a rewrite for an explicitly named (function) symbol. Both the 188 /// Represents a rewrite for an explicitly named (global variable) symbol. Both [all …]
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/ |
D | AddAnnotation.java | 61 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 62 import org.eclipse.jdt.core.dom.rewrite.ListRewrite; 304 final ASTRewrite rewrite = context.rewrite(); in process() local 308 return handleBodyDeclaration(rewrite, node); in process() 313 return handleBodyDeclaration(rewrite, node); in process() 318 return handleBodyDeclaration(rewrite, node); in process() 323 return handleBodyDeclaration(rewrite, node); in process() 328 return handleBodyDeclaration(rewrite, node); in process() 333 return handleBodyDeclaration(rewrite, node); in process() 338 return handleBodyDeclaration(rewrite, node); in process() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 16 #include "clang/Rewrite/Frontend/FixItRewriter.h" 35 Rewrite(SourceMgr, LangOpts), in FixItRewriter() 49 const RewriteBuffer *RewriteBuf = Rewrite.getRewriteBufferFor(ID); in WriteFixedFile() 59 Rewriter &Rewrite; member in __anon21c9648a0111::RewritesReceiver 62 RewritesReceiver(Rewriter &Rewrite) : Rewrite(Rewrite) { } in RewritesReceiver() argument 65 Rewrite.InsertText(loc, text); in insert() 68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace() 81 RewritesReceiver Rec(Rewrite); in WriteFixedFiles() 87 Rewrite.overwriteChangedFiles(); in WriteFixedFiles() 92 const FileEntry *Entry = Rewrite.getSourceMgr().getFileEntryForID(I->first); in WriteFixedFiles()
|
/external/tensorflow/tensorflow/python/training/experimental/ |
D | mixed_precision.py | 15 """Contains functions to use mixed precision with the graph rewrite.""" 85 """Enable mixed precision via a graph rewrite. 88 training a model to improve performance. This is achieved via a graph rewrite 100 Note: While the mixed precision rewrite changes the datatype of various 126 Calling `enable_mixed_precision_graph_rewrite(opt)` enables the graph rewrite 133 The graph rewrite operation changes the `dtype` of certain operations in the 135 that are either included or excluded by this rewrite operation. The following 160 When eager execution is enabled, the mixed precision graph rewrite is only 172 parts of the graph on CPUs and TPUs are untouched by the graph rewrite. 192 'The mixed precision graph rewrite cannot be enabled, because the ' [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SymbolRewriter.cpp | 9 // SymbolRewriter is a LLVM pass which can rewrite symbols transparently within 43 // New rewrite descriptors can be created. Addding a new rewrite descriptor 46 // a) extended the rewrite descriptor kind enumeration 50 // c) extending the rewrite map parser 53 // Specify to rewrite the symbols using the `-rewrite-symbols` option, and 54 // specify the map file to use for the rewriting via the `-rewrite-map-file` 91 static cl::list<std::string> RewriteMapFiles("rewrite-map-file", 92 cl::desc("Symbol Rewrite Map"), 206 /// Represents a rewrite for an explicitly named (function) symbol. Both the 213 /// Represents a rewrite for an explicitly named (global variable) symbol. Both [all …]
|
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/Utils/ |
D | SymbolRewriter.cpp | 9 // SymbolRewriter is a LLVM pass which can rewrite symbols transparently within 43 // New rewrite descriptors can be created. Addding a new rewrite descriptor 46 // a) extended the rewrite descriptor kind enumeration 50 // c) extending the rewrite map parser 53 // Specify to rewrite the symbols using the `-rewrite-symbols` option, and 54 // specify the map file to use for the rewriting via the `-rewrite-map-file` 90 static cl::list<std::string> RewriteMapFiles("rewrite-map-file", 91 cl::desc("Symbol Rewrite Map"), 207 /// Represents a rewrite for an explicitly named (function) symbol. Both the 214 /// Represents a rewrite for an explicitly named (global variable) symbol. Both [all …]
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ |
D | JavadocUtils.java | 25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 26 import org.eclipse.jdt.core.dom.rewrite.ListRewrite; 36 public static void addJavadocTag(ASTRewrite rewrite, BodyDeclaration node, String tagText) { in addJavadocTag() argument 41 rewrite.set(node, node.getJavadocProperty(), javadoc, null /* editGroup */); in addJavadocTag() 43 addJavadocTag(rewrite, javadoc, tagText); in addJavadocTag() 46 public static void addJavadocTag(ASTRewrite rewrite, Javadoc javadoc, String tagText) { in addJavadocTag() argument 49 ListRewrite listRewrite = rewrite.getListRewrite(javadoc, Javadoc.TAGS_PROPERTY); in addJavadocTag()
|
/external/perfetto/src/trace_processor/perfetto_sql/preprocessor/ |
D | perfetto_sql_preprocessor.cc | 74 struct Rewrite { struct 83 using Type = std::variant<Root, Rewrite, Append>; 170 frame.tokenizer.Rewrite( in RewriteIntrinsicMacro() 196 Frame::Rewrite{frame.tokenizer, frame.rewriter, name, rp}, in ExecuteSqlMacro() 231 Frame::Rewrite{frame.tokenizer, frame.rewriter, name, rp}, in ExecuteStringify() 239 frame.tokenizer.Rewrite(frame.rewriter, name, rp, std::move(res), in ExecuteStringify() 254 Frame::Rewrite{frame.tokenizer, frame.rewriter, name, rp}, in ExecuteApply() 287 auto& rewrite = std::get<Frame::Rewrite>(frame.type); in OnPreprocessorApply() local 288 rewrite.tokenizer.Rewrite(rewrite.rewriter, rewrite.start, rewrite.end, in OnPreprocessorApply() 443 case base::variant_index<Frame::Type, Frame::Rewrite>(): { in OnPreprocessorEnd() [all …]
|