Home
last modified time | relevance | path

Searched refs:patterns (Results 1 – 25 of 1854) sorted by relevance

12345678910>>...75

/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Drewriters.h32 OwningRewritePatternList *patterns);
37 void PopulateGeneralDotOpLoweringPatterns(OwningRewritePatternList *patterns,
43 OwningRewritePatternList *patterns);
46 OwningRewritePatternList *patterns);
50 mlir::MLIRContext *context, OwningRewritePatternList *patterns);
52 void PopulateMhloToStdPatterns(OwningRewritePatternList *patterns,
58 OwningRewritePatternList *patterns, bool insert_copy = true);
63 OwningRewritePatternList *patterns);
67 OwningRewritePatternList *patterns);
76 OwningRewritePatternList *patterns);
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_xmllocale.cpp70 CFX_XMLElement* patterns = locale_->GetFirstChildNamed(kNumberSymbols); in GetDecimalSymbol() local
71 return patterns ? GetPattern(patterns, kNumberSymbol, L"decimal") in GetDecimalSymbol()
76 CFX_XMLElement* patterns = locale_->GetFirstChildNamed(kNumberSymbols); in GetGroupingSymbol() local
77 return patterns ? GetPattern(patterns, kNumberSymbol, L"grouping") in GetGroupingSymbol()
82 CFX_XMLElement* patterns = locale_->GetFirstChildNamed(kNumberSymbols); in GetPercentSymbol() local
83 return patterns ? GetPattern(patterns, kNumberSymbol, L"percent") in GetPercentSymbol()
88 CFX_XMLElement* patterns = locale_->GetFirstChildNamed(kNumberSymbols); in GetMinusSymbol() local
89 return patterns ? GetPattern(patterns, kNumberSymbol, L"minus") in GetMinusSymbol()
94 CFX_XMLElement* patterns = locale_->GetFirstChildNamed(kCurrencySymbols); in GetCurrencySymbol() local
95 return patterns ? GetPattern(patterns, kCurrencySymbol, L"symbol") in GetCurrencySymbol()
[all …]
/external/llvm-project/mlir/test/lib/Transforms/
DTestVectorTransforms.cpp28 OwningRewritePatternList patterns; in runOnFunction() local
30 patterns.insert<UnrollVectorPattern>( in runOnFunction()
32 populateVectorToVectorCanonicalizationPatterns(patterns, ctx); in runOnFunction()
33 populateVectorToVectorTransformationPatterns(patterns, ctx); in runOnFunction()
34 applyPatternsAndFoldGreedily(getFunction(), std::move(patterns)); in runOnFunction()
51 OwningRewritePatternList patterns; in runOnFunction() local
52 populateVectorSlicesLoweringPatterns(patterns, &getContext()); in runOnFunction()
53 applyPatternsAndFoldGreedily(getFunction(), std::move(patterns)); in runOnFunction()
82 OwningRewritePatternList patterns; in runOnFunction() local
88 patterns.insert<ContractionOpToOuterProductOpLowering>(options, in runOnFunction()
[all …]
DTestLinalgTransforms.cpp87 OwningRewritePatternList patterns; in applyPatterns() local
92 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
95 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
98 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
101 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
105 patterns.insert<LinalgTilingPattern<MatvecOp>>( in applyPatterns()
111 patterns.insert<LinalgTilingPattern<DotOp>>( in applyPatterns()
121 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
128 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
135 patterns.insert<LinalgTilingPattern<MatmulOp>>( in applyPatterns()
[all …]
/external/rust/crates/aho-corasick/src/packed/
Dapi.rs232 patterns: Patterns, field
243 Builder { config, inert: false, patterns: Patterns::new() } in from_config()
248 if self.inert || self.patterns.is_empty() { in build()
251 let mut patterns = self.patterns.clone(); in build() localVariable
252 patterns.set_match_kind(self.config.kind); in build()
253 let rabinkarp = RabinKarp::new(&patterns); in build()
261 let teddy = match self.build_teddy(&patterns) { in build()
272 patterns, in build()
279 fn build_teddy(&self, patterns: &Patterns) -> Option<Teddy> { in build_teddy()
283 .build(&patterns) in build_teddy()
[all …]
Drabinkarp.rs69 pub fn new(patterns: &Patterns) -> RabinKarp { in new()
70 assert!(patterns.len() >= 1); in new()
71 let hash_len = patterns.minimum_len(); in new()
83 max_pattern_id: patterns.max_pattern_id(), in new()
85 for (id, pat) in patterns.iter() { in new()
97 patterns: &Patterns, in find_at()
104 patterns.max_pattern_id(), in find_at()
116 if let Some(c) = self.verify(patterns, pid, haystack, at) { in find_at()
153 patterns: &Patterns, in verify()
158 let pat = patterns.get(id); in verify()
/external/llvm-project/mlir/lib/Conversion/VectorToLLVM/
DConvertVectorToLLVMPass.cpp41 OwningRewritePatternList patterns; in runOnOperation() local
42 populateVectorToVectorCanonicalizationPatterns(patterns, &getContext()); in runOnOperation()
43 populateVectorSlicesLoweringPatterns(patterns, &getContext()); in runOnOperation()
44 populateVectorContractLoweringPatterns(patterns, &getContext()); in runOnOperation()
45 applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)); in runOnOperation()
50 OwningRewritePatternList patterns; in runOnOperation() local
51 populateVectorToLLVMMatrixConversionPatterns(converter, patterns); in runOnOperation()
53 converter, patterns, reassociateFPReductions, enableIndexOptimizations); in runOnOperation()
54 populateVectorToLLVMMatrixConversionPatterns(converter, patterns); in runOnOperation()
55 populateStdToLLVMConversionPatterns(converter, patterns); in runOnOperation()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUToROCDL/
DLowerGpuOpsToROCDLOps.cpp62 OwningRewritePatternList patterns, llvmPatterns; in runOnOperation() local
64 populateGpuRewritePatterns(m.getContext(), patterns); in runOnOperation()
65 applyPatternsAndFoldGreedily(m, std::move(patterns)); in runOnOperation()
88 LLVMTypeConverter &converter, OwningRewritePatternList &patterns) { in populateGpuToROCDLConversionPatterns() argument
89 populateWithGenerated(converter.getDialect()->getContext(), patterns); in populateGpuToROCDLConversionPatterns()
90 patterns.insert< in populateGpuToROCDLConversionPatterns()
100 patterns.insert<OpToFuncCallLowering<AbsFOp>>(converter, "__ocml_fabs_f32", in populateGpuToROCDLConversionPatterns()
102 patterns.insert<OpToFuncCallLowering<CeilFOp>>(converter, "__ocml_ceil_f32", in populateGpuToROCDLConversionPatterns()
104 patterns.insert<OpToFuncCallLowering<CosOp>>(converter, "__ocml_cos_f32", in populateGpuToROCDLConversionPatterns()
106 patterns.insert<OpToFuncCallLowering<ExpOp>>(converter, "__ocml_exp_f32", in populateGpuToROCDLConversionPatterns()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUToNVVM/
DLowerGpuOpsToNVVMOps.cpp127 OwningRewritePatternList patterns, llvmPatterns; in runOnOperation() local
132 populateGpuRewritePatterns(m.getContext(), patterns); in runOnOperation()
133 applyPatternsAndFoldGreedily(m, std::move(patterns)); in runOnOperation()
160 LLVMTypeConverter &converter, OwningRewritePatternList &patterns) { in populateGpuToNVVMConversionPatterns() argument
161 populateWithGenerated(converter.getDialect()->getContext(), patterns); in populateGpuToNVVMConversionPatterns()
162 patterns in populateGpuToNVVMConversionPatterns()
176 patterns.insert<OpToFuncCallLowering<AbsFOp>>(converter, "__nv_fabsf", in populateGpuToNVVMConversionPatterns()
178 patterns.insert<OpToFuncCallLowering<CeilFOp>>(converter, "__nv_ceilf", in populateGpuToNVVMConversionPatterns()
180 patterns.insert<OpToFuncCallLowering<CosOp>>(converter, "__nv_cosf", in populateGpuToNVVMConversionPatterns()
182 patterns.insert<OpToFuncCallLowering<ExpOp>>(converter, "__nv_expf", in populateGpuToNVVMConversionPatterns()
[all …]
/external/llvm-project/llvm/test/TableGen/
DSlice.td65 multiclass scalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
68 !if(!empty(patterns),[]<dag>,patterns[0])>;
71 … !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>;
74 multiclass vscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
77 !if(!empty(patterns),[]<dag>,patterns[0])>;
80 … !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>;
83 multiclass myscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> :
84 scalar<opcode, asmstr, patterns>,
85 vscalar<opcode, asmstr, patterns>;
/external/llvm/test/TableGen/
DSlice.td65 multiclass scalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
68 !if(!empty(patterns),[]<dag>,patterns[0])>;
71 … !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>;
74 multiclass vscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> {
77 !if(!empty(patterns),[]<dag>,patterns[0])>;
80 … !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>;
83 multiclass myscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> :
84 scalar<opcode, asmstr, patterns>,
85 vscalar<opcode, asmstr, patterns>;
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dbufferize_pass.cc113 OwningRewritePatternList patterns; in runOnOperation() local
124 &context, &converter, &patterns, /*insert_copy=*/false); in runOnOperation()
125 populateFuncOpTypeConversionPattern(patterns, &context, converter); in runOnOperation()
126 populateCallOpTypeConversionPattern(patterns, &context, converter); in runOnOperation()
128 patterns, &context, converter); in runOnOperation()
132 linalg::populateLinalgBufferizePatterns(&context, converter, patterns); in runOnOperation()
134 patterns, target); in runOnOperation()
136 patterns, target); in runOnOperation()
149 std::move(patterns)))) in runOnOperation()
185 OwningRewritePatternList patterns; in runOnOperation() local
[all …]
Dkernel_lowering_passes.cc51 OwningRewritePatternList patterns; in runOnOperation() local
55 populateStdToLLVMConversionPatterns(converter, patterns); in runOnOperation()
56 populateGpuToNVVMConversionPatterns(converter, patterns); in runOnOperation()
57 populateComplexToLLVMConversionPatterns(converter, patterns); in runOnOperation()
60 if (failed(mlir::applyFullConversion(m, target, std::move(patterns)))) { in runOnOperation()
78 OwningRewritePatternList patterns; in runOnOperation() local
80 populateStdToLLVMConversionPatterns(converter, patterns); in runOnOperation()
81 populateGpuToROCDLConversionPatterns(converter, patterns); in runOnOperation()
82 populateComplexToLLVMConversionPatterns(converter, patterns); in runOnOperation()
85 if (failed(mlir::applyFullConversion(m, target, std::move(patterns)))) { in runOnOperation()
/external/rust/crates/aho-corasick/src/packed/teddy/
Dcompile.rs49 pub fn build(&self, patterns: &Patterns) -> Option<Teddy> { in build()
50 self.build_imp(patterns) in build()
75 fn build_imp(&self, patterns: &Patterns) -> Option<Teddy> { in build_imp()
86 if patterns.len() > 64 { in build_imp()
107 None => avx && patterns.len() > 32, in build_imp()
113 let mut compiler = Compiler::new(patterns, fat); in build_imp()
123 max_pattern_id: patterns.max_pattern_id(), in build_imp()
132 max_pattern_id: patterns.max_pattern_id(), in build_imp()
141 max_pattern_id: patterns.max_pattern_id(), in build_imp()
150 max_pattern_id: patterns.max_pattern_id(), in build_imp()
[all …]
/external/libtextclassifier/native/annotator/
Dzlib-utils_test.cc31 model.regex_model->patterns.emplace_back(new RegexModel_::PatternT); in TEST()
32 model.regex_model->patterns.back()->pattern = "this is a test pattern"; in TEST()
33 model.regex_model->patterns.emplace_back(new RegexModel_::PatternT); in TEST()
34 model.regex_model->patterns.back()->pattern = "this is a second test pattern"; in TEST()
37 model.datetime_model->patterns.emplace_back(new DatetimeModelPatternT); in TEST()
38 model.datetime_model->patterns.back()->regexes.emplace_back( in TEST()
40 model.datetime_model->patterns.back()->regexes.back()->pattern = in TEST()
73 compressed_model->regex_model()->patterns()->Get(0)->compressed_pattern(), in TEST()
77 compressed_model->regex_model()->patterns()->Get(1)->compressed_pattern(), in TEST()
81 ->patterns() in TEST()
[all …]
/external/pdfium/fxbarcode/oned/
DBC_OnedCode128Writer.cpp137 std::vector<int32_t> patterns; in EncodeImpl() local
140 checkSum = Encode128B(contents, &patterns); in EncodeImpl()
142 checkSum = Encode128C(contents, &patterns); in EncodeImpl()
145 patterns.push_back(checkSum); in EncodeImpl()
146 patterns.push_back(CODE_STOP); in EncodeImpl()
149 for (const auto& patternIndex : patterns) { in EncodeImpl()
157 for (size_t i = 0; i < patterns.size(); ++i) { in EncodeImpl()
158 const int8_t* pattern = CODE_PATTERNS[patterns[i]]; in EncodeImpl()
166 std::vector<int32_t>* patterns) { in Encode128B() argument
168 patterns->push_back(CODE_START_B); in Encode128B()
[all …]
DBC_OnedCode128Writer_unittest.cpp14 int32_t patterns[7]; member
38 std::vector<int32_t> patterns; in TEST() local
40 CBC_OnedCode128Writer::Encode128B(test_case.input, &patterns); in TEST()
42 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
43 for (size_t j = 0; j < patterns.size(); ++j) { in TEST()
46 EXPECT_EQ(test_case.patterns[j], patterns[j]); in TEST()
71 std::vector<int32_t> patterns; in TEST() local
73 CBC_OnedCode128Writer::Encode128C(test_case.input, &patterns); in TEST()
75 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
76 for (size_t j = 0; j < patterns.size(); ++j) { in TEST()
[all …]
/external/toolchain-utils/debug_info_test/
Dallowlist.py34 def prepare_allowlist(patterns): argument
43 return re.compile('|'.join(patterns))
61 patterns = f.read().splitlines()
62 patterns = [l for l in patterns if l != '']
63 patterns = [l for l in patterns if l[0] != '#']
64 wlist[key] = prepare_allowlist(patterns)
/external/python/cpython2/Lib/distutils/
Dfilelist.py82 patterns = dir = dir_pattern = None
90 patterns = map(convert_path, words[1:])
98 patterns = map(convert_path, words[2:])
110 return (action, patterns, dir, dir_pattern)
118 action, patterns, dir, dir_pattern = self._parse_template_line(line)
124 self.debug_print("include " + ' '.join(patterns))
125 for pattern in patterns:
131 self.debug_print("exclude " + ' '.join(patterns))
132 for pattern in patterns:
138 self.debug_print("global-include " + ' '.join(patterns))
[all …]
/external/python/cpython3/Lib/distutils/
Dfilelist.py80 patterns = dir = dir_pattern = None
87 patterns = [convert_path(w) for w in words[1:]]
93 patterns = [convert_path(w) for w in words[2:]]
102 return (action, patterns, dir, dir_pattern)
110 (action, patterns, dir, dir_pattern) = self._parse_template_line(line)
116 self.debug_print("include " + ' '.join(patterns))
117 for pattern in patterns:
123 self.debug_print("exclude " + ' '.join(patterns))
124 for pattern in patterns:
130 self.debug_print("global-include " + ' '.join(patterns))
[all …]
/external/llvm-project/mlir/lib/Transforms/Utils/
DGreedyPatternRewriteDriver.cpp40 const FrozenRewritePatternList &patterns) in GreedyPatternRewriteDriver() argument
41 : PatternRewriter(ctx), matcher(patterns), folder(ctx) { in GreedyPatternRewriteDriver()
222 const FrozenRewritePatternList &patterns) { in applyPatternsAndFoldGreedily() argument
223 return applyPatternsAndFoldGreedily(op, patterns, maxPatternMatchIterations); in applyPatternsAndFoldGreedily()
227 const FrozenRewritePatternList &patterns, in applyPatternsAndFoldGreedily() argument
229 return applyPatternsAndFoldGreedily(op->getRegions(), patterns, in applyPatternsAndFoldGreedily()
235 const FrozenRewritePatternList &patterns) { in applyPatternsAndFoldGreedily() argument
236 return applyPatternsAndFoldGreedily(regions, patterns, in applyPatternsAndFoldGreedily()
241 const FrozenRewritePatternList &patterns, in applyPatternsAndFoldGreedily() argument
257 GreedyPatternRewriteDriver driver(regions[0].getContext(), patterns); in applyPatternsAndFoldGreedily()
[all …]
/external/hyphenation-patterns/en-US/
Dhyph-en-us.lic.txt1 Hyphenation patterns for American English
6 % for consistency with other files with hyphenation patterns in hyph-utf8 package.
9 % ushyphmax.tex -- patterns for more hyphenation pattern memory (12000+).
23 % These patterns are based on the Hyphenation Exception Log
26 % If added to Liang's before the closing bracket } of \patterns,
27 % the patterns run errorfree as far as known at this moment.
29 % These patterns find all admissible hyphens of the words in
35 % only the additional patterns, without the \patterns command, etc.
38 % ushyphmax.tex now contains both the additional patterns from
39 % Dr. Kuiken, and the original patterns and hyphenations from Knuth's
/external/llvm-project/lldb/test/API/lang/c/enum_types/
DTestEnumTypes.py29 patterns=[' = A$'])
31 patterns=[' = B$'])
33 patterns=[' = C$'])
35 patterns=[' = AB$'])
37 patterns=[' = A | C$'])
39 patterns=[' = ALL$'])
43 patterns=[' = 7$'])
48 patterns=[' = B | C | 0x10$'])
97 patterns=['0x0+$'])
111 patterns=['0x0+$'])
/external/llvm-project/lldb/test/API/lang/c/stepping/
DTestThreadStepping.py44 patterns=['Process .* stopped'])
50 patterns=["frame #0.*main.c:%d" % self.line1,
59 patterns=["frame #0.*main.c:%d" % self.line2])
66 patterns=['Process .* stopped'])
70 patterns=["frame #0.*main.c:%d" % self.line3])
77 patterns=['Process .* stopped'])
82 patterns=["frame #0.*main.c:%d" % self.line4])
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DTiling.cpp519 static void insert(OwningRewritePatternList &patterns, MLIRContext *ctx) {} in insert() argument
525 static void insert(OwningRewritePatternList &patterns, MLIRContext *ctx) { in insert() argument
526 OpTy::getCanonicalizationPatterns(patterns, ctx); in insert()
527 CanonicalizationPatternList<OpTypes...>::insert(patterns, ctx); in insert()
538 static void insert(OwningRewritePatternList &patterns, in insert() argument
545 static void insert(OwningRewritePatternList &patterns, in insert() argument
547 patterns.insert<LinalgTilingPattern<OpTy>>( in insert()
549 RewritePatternList<OpTypes...>::insert(patterns, options, ctx); in insert()
556 OwningRewritePatternList patterns; in getLinalgTilingCanonicalizationPatterns() local
557 populateLinalgTilingCanonicalizationPatterns(patterns, ctx); in getLinalgTilingCanonicalizationPatterns()
[all …]

12345678910>>...75