Home
last modified time | relevance | path

Searched refs:rewrites (Results 1 – 25 of 86) sorted by relevance

1234

/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs307 IList<RewriteOperation> rewrites = GetProgram( programName ); in InsertBefore()
308 op.instructionIndex = rewrites.Count; in InsertBefore()
309 rewrites.Add( op ); in InsertBefore()
339 IList<RewriteOperation> rewrites = GetProgram( programName ); in Replace()
340 op.instructionIndex = rewrites.Count; in Replace()
341 rewrites.Add( op ); in Replace()
454 IList<RewriteOperation> rewrites; in ToString()
455 if ( !programs.TryGetValue( programName, out rewrites ) ) in ToString()
456 rewrites = null; in ToString()
464 if ( rewrites == null || rewrites.Count == 0 ) in ToString()
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs270 IList<RewriteOperation> rewrites = GetProgram(programName); in InsertBefore()
271 op.instructionIndex = rewrites.Count; in InsertBefore()
272 rewrites.Add(op); in InsertBefore()
296 IList<RewriteOperation> rewrites = GetProgram(programName); in Replace()
297 op.instructionIndex = rewrites.Count; in Replace()
298 rewrites.Add(op); in Replace()
391 IList<RewriteOperation> rewrites; in ToString()
392 if (!programs.TryGetValue(programName, out rewrites)) in ToString()
393 rewrites = null; in ToString()
401 if (rewrites == null || rewrites.Count == 0) { in ToString()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java246 List<? super RewriteOperation> rewrites = getProgram(programName); in insertBefore() local
247 op.instructionIndex = rewrites.size(); in insertBefore()
248 rewrites.add(op); in insertBefore()
272 List<? super RewriteOperation> rewrites = getProgram(programName); in replace() local
273 op.instructionIndex = rewrites.size(); in replace()
274 rewrites.add(op); in replace()
368 List<RewriteOperation> rewrites = programs.get(programName); in toString() local
374 if ( rewrites==null || rewrites.isEmpty() ) { in toString()
380 Map<Integer, ? extends RewriteOperation> indexToOp = reduceToSingleOperationPerIndex(rewrites); in toString()
460 …ends RewriteOperation> reduceToSingleOperationPerIndex(List<? extends RewriteOperation> rewrites) { in reduceToSingleOperationPerIndex() argument
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DTokenRewriteStream.js200 var rewrites = this.getProgram(programName);
202 for (pos=0, len=rewrites.length; pos<len; pos++) {
203 searchOp = rewrites[pos];
212 for (i=pos; i<rewrites.length; i++) {
213 prevOp = rewrites[pos];
218 rewrites[pos] = op; // replace old with new
226 rewrites.splice(i, 0, op);
230 rewrites.splice(pos, 0, op);
234 rewrites.splice(pos, 0, op);
239 rewrites.push(op);
[all …]
/external/tensorflow/tensorflow/compiler/aot/
Dcodegen.cc127 std::vector<std::pair<string, string>>* rewrites) { in AddRewritesForShape() argument
143 rewrites->push_back({"{{I}}", absl::StrCat(i)}); in AddRewritesForShape()
144 rewrites->push_back({"{{TYPE}}", type}); in AddRewritesForShape()
145 rewrites->push_back({"{{DIM_VARS}}", absl::StrJoin(dim_vars, ", ")}); in AddRewritesForShape()
146 rewrites->push_back({"{{DIM_SIZES}}", dim_sizes}); in AddRewritesForShape()
147 rewrites->push_back({"{{INDICES}}", indices}); in AddRewritesForShape()
160 const std::vector<std::pair<string, string>>& rewrites) { in RewriteWithName() argument
161 absl::StrReplaceAll(rewrites, &code); in RewriteWithName()
177 std::vector<std::pair<string, string>> rewrites; in GenArgMethods() local
179 AddRewritesForShape(i, xla::Shape(ps.parameters(i)), &rewrites)); in GenArgMethods()
[all …]
/external/antlr/runtime/Python/antlr3/
Dstreams.py1163 rewrites = self.getProgram(programName)
1164 op.instructionIndex = len(rewrites)
1165 rewrites.append(op)
1204 rewrites = self.getProgram(programName)
1205 op.instructionIndex = len(rewrites)
1206 rewrites.append(op)
1290 rewrites = self.programs.get(programName)
1291 if rewrites is None or len(rewrites) == 0:
1298 indexToOp = self.reduceToSingleOperationPerIndex(rewrites)
1336 def reduceToSingleOperationPerIndex(self, rewrites): argument
[all …]
/external/antlr/runtime/Python3/antlr3/
Dstreams.py1108 rewrites = self.getProgram(programName)
1109 op.instructionIndex = len(rewrites)
1110 rewrites.append(op)
1149 rewrites = self.getProgram(programName)
1150 op.instructionIndex = len(rewrites)
1151 rewrites.append(op)
1235 rewrites = self.programs.get(programName)
1236 if not rewrites:
1243 indexToOp = self.reduceToSingleOperationPerIndex(rewrites)
1276 def reduceToSingleOperationPerIndex(self, rewrites): argument
[all …]
/external/antlr/runtime/ObjC/Framework/
DTokenRewriteStream.m318 HashMap *rewrites = [self getProgram:programName];
319 op.instructionIndex = [rewrites count];
320 [rewrites addObject:op];
354 HashMap *rewrites = (HashMap *)[lastRewriteTokenIndexes getName:programName];
355 op.instructionIndex = [rewrites count];
356 [rewrites addObject:op];
461 HashMap *rewrites = (HashMap *)[programs getName:programName];
468 if ( rewrites == nil || [rewrites count] == 0 ) {
474 HashMap *indexToOp = [self reduceToSingleOperationPerIndex:rewrites];
556 - (HashMap *)reduceToSingleOperationPerIndex:(HashMap *)rewrites
[all …]
DTokenRewriteStream.h163 - (HashMap *)reduceToSingleOperationPerIndex:(HashMap *)rewrites;
164 - (HashMap *)getKindOfOps:(HashMap *)rewrites KindOfClass:(Class)kind;
165 - (HashMap *)getKindOfOps:(HashMap *)rewrites KindOfClass:(Class)kind Index:(NSInteger)before;
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DTokenRewriteStream.as70 * rewrites from a single pass over the input. Just name the instruction
132 var rewrites:Array = getProgram(programName);
133 op.instructionIndex = rewrites.length;
134 rewrites.push(op);
146 var rewrites:Array = getProgram(programName);
147 op.instructionIndex = rewrites.length;
148 rewrites.push(op);
222 var rewrites:Array = programs[programName] as Array;
228 if ( rewrites==null || rewrites.length==0 ) {
235 var indexToOp:Array = reduceToSingleOperationPerIndex(rewrites);
[all …]
/external/tensorflow/tensorflow/contrib/quantize/
DREADME.md28 required locations in the model, there's a function available that rewrites the
35 # Call the training rewrite which rewrites the graph in-place with
58 # Call the eval rewrite which rewrites the graph in-place with
72 and experimentation. Although rewrites and quantized training might not work or
153 These rewrites are an active area of research and experimentation, so the
154 rewrites and quantized training will likely not work across all models, though
/external/llvm/include/llvm/MC/MCParser/
DMCTargetAsmParser.h81 ParseInstructionInfo(SmallVectorImpl<AsmRewrite> *rewrites) in ParseInstructionInfo()
82 : AsmRewrites(rewrites) {} in ParseInstructionInfo()
/external/tensorflow/tensorflow/contrib/quantization/
DREADME.md3 If you are looking for quantized training rewrites that allow for training
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/MCParser/
DMCTargetAsmParser.h127 ParseInstructionInfo(SmallVectorImpl<AsmRewrite> *rewrites) in ParseInstructionInfo()
128 : AsmRewrites(rewrites) {} in ParseInstructionInfo()
/external/llvm/test/CodeGen/ARM/
Dfast-isel-update-valuemap-for-extract.ll6 ; This test ensures that when fast-isel rewrites uses of the vreg for %tmp29, it also
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
Dfast-isel-update-valuemap-for-extract.ll6 ; This test ensures that when fast-isel rewrites uses of the vreg for %tmp29, it also
/external/antlr/antlr3-maven-archetype/src/main/resources/archetype-resources/src/main/antlr3/
DTParser.g35 // Some imaginary tokens for tree rewrites
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MapDefun.pbtxt54 rewrites.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DAST.stg72 * These should be turned off if doing rewrites. This must be a "mode"
276 /** For empty rewrites: "r : ... -> ;" */
340 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DAST.stg92 * These should be turned off if doing rewrites. This must be a "mode"
309 /** For empty rewrites: "r : ... -> ;" */
372 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DAST.stg105 * These should be turned off if doing rewrites. This must be a "mode"
300 /** For empty rewrites: "r : ... -> ;" */
365 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DAST.stg76 * These should be turned off if doing rewrites. This must be a "mode"
277 /** For empty rewrites: "r : ... -> ;" */
341 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DAST.stg87 * These should be turned off if doing rewrites. This must be a "mode"
288 /** For empty rewrites: "r : ... -> ;" */
352 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DAST.stg92 * These should be turned off if doing rewrites. This must be a "mode"
309 /** For empty rewrites: "r : ... -> ;" */
372 * before I set it during rewrites. The assign will be to retval.tree.
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DAST.stg103 * These should be turned off if doing rewrites. This must be a "mode"
302 /** For empty rewrites: "r : ... -> ;" */
367 * before I set it during rewrites. The assign will be to retval.tree.

1234