| /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/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::__anonad2540350111::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::__anonad2540350111::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::__anon8d6cea5d0111::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::__anon8d6cea5d0111::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 …]
|
| D | variable_accessor_test.cc | 33 EXPECT_EQ(variable_accessor.Rewrite("unknown", &result), in TEST() 41 ASSERT_EQ(variable_accessor.Rewrite("var", &result), RewriteStatus::SUCCESS); in TEST() 49 ASSERT_EQ(variable_accessor.Rewrite("var", &result), RewriteStatus::SUCCESS); in TEST() 58 ASSERT_EQ(variable_accessor.Rewrite("var.y", &result), in TEST() 68 ASSERT_EQ(variable_accessor.Rewrite("var.y", &result), RewriteStatus::ERROR); in TEST() 72 ASSERT_EQ(variable_accessor.Rewrite("vec.z", &result), RewriteStatus::ERROR); in TEST() 82 ASSERT_EQ(variable_accessor.Rewrite("var[i].y", &result), in TEST() 93 ASSERT_EQ(variable_accessor.Rewrite("var[i]", &result), RewriteStatus::ERROR); in TEST()
|
| /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/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/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::__anon8fd6f3780111::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/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 …]
|
| D | AddDefaultConstructor.java | 30 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 31 import org.eclipse.jdt.core.dom.rewrite.ListRewrite; 70 final ASTRewrite rewrite = context.rewrite(); in process() local 75 addDefaultConstructor(rewrite, typeDeclaration); in process() 81 private void addDefaultConstructor(ASTRewrite rewrite, TypeDeclaration node) { in addDefaultConstructor() argument 82 AST ast = rewrite.getAST(); in addDefaultConstructor() 100 ListRewrite listRewrite = rewrite.getListRewrite(node, node.getBodyDeclarationsProperty()); in addDefaultConstructor()
|
| D | BaseJavadocNodeScanner.java | 26 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 31 * A base class for processors that process Javadoc nodes and may rewrite the AST. All Javadoc nodes 39 ASTRewrite rewrite = context.rewrite(); in process() local 44 visit(reporter, javadoc, rewrite); in process() 49 protected abstract void visit(Reporter reporter, Javadoc javadoc, ASTRewrite rewrite); in visit() argument
|
| /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 __anon39d194b90111::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/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/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/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/mesa3d/src/gallium/drivers/r600/sb/ |
| D | sb_gvn.cpp | 45 bool rewrite = true; in visit() local 48 rewrite = false; in visit() 52 process_op(n, rewrite); in visit() 135 bool gvn::process_src(value* &v, bool rewrite) { in process_src() argument 139 if (rewrite && !v->gvn_source->is_rel()) { in process_src() 188 void gvn::process_op(node& n, bool rewrite) { in process_op() argument 194 process_src(v->rel, rewrite); in process_op() 197 if (rewrite && v->gvn_source && v->gvn_source->is_readonly() && in process_op() 200 } else if (rewrite && v->gvn_source && v->gvn_source->is_const() && in process_op() 205 process_src(v, rewrite); in process_op() [all …]
|
| /external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
| D | ShardingAnnotator.java | 37 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 84 ASTRewrite rewrite = context.rewrite(); in process() local 90 annotateTestType(cu, rewrite, declaration, imports); in process() 107 CompilationUnit cu, ASTRewrite rewrite, TypeDeclaration type, Set<String> imports) { in annotateTestType() argument 113 appendImport(cu, rewrite, annotationName); in annotateTestType() 120 rewrite.getListRewrite(type, type.getModifiersProperty()) in annotateTestType() 132 private void appendImport(CompilationUnit cu, ASTRewrite rewrite, String annotationName) { in appendImport() argument 137 rewrite.getListRewrite(cu, CompilationUnit.IMPORTS_PROPERTY) in appendImport()
|
| D | ReplaceIcuTags.java | 25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite; 35 protected boolean visitTagElement(Reporter reporter, ASTRewrite rewrite, TagElement tag) { in visitTagElement() argument 45 rewrite.replace(tag, createIcuMarker(ast), null /* editGroup */); in visitTagElement() 49 rewrite.replace(tag, createIcuUsageText(ast), null /* editGroup */); in visitTagElement() 59 rewrite.replace(tag, createIcuEnhancementText(ast, element), null /* editGroup */); in visitTagElement() 63 rewrite.replace(tag, createIcuNoteText(ast), null /* editGroup */); in visitTagElement() 67 rewrite.replace(tag, createDiscouragedText(ast, fragments), null /* editGroup */); in visitTagElement() 71 rewrite.remove(tag, null /* editGroup */); in visitTagElement()
|