Home
last modified time | relevance | path

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

12345678910>>...76

/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/include/mlir-hlo/Dialect/mhlo/transforms/
Drewriters.h33 void populateGeneralDotOpLoweringPatterns(RewritePatternSet *patterns,
39 RewritePatternSet *patterns);
42 RewritePatternSet *patterns);
46 RewritePatternSet *patterns);
50 RewritePatternSet *patterns);
52 void populateMhloToStdPatterns(RewritePatternSet *patterns, MLIRContext *ctx);
58 RewritePatternSet *patterns);
63 RewritePatternSet *patterns);
66 void populateHloToArithmeticConversionPatterns(RewritePatternSet *patterns);
72 RewritePatternSet *patterns);
[all …]
/external/cronet/base/substring_set_matcher/
Dsubstring_set_matcher_unittest.cc25 std::vector<MatcherStringPattern> patterns; in TestOnePattern() local
26 patterns.emplace_back(pattern, 1); in TestOnePattern()
28 ASSERT_TRUE(matcher.Build(patterns)); in TestOnePattern()
51 std::vector<const MatcherStringPattern*> patterns; in TestTwoPatterns() local
53 patterns.push_back(&substring_pattern_1); in TestTwoPatterns()
54 patterns.push_back(&substring_pattern_2); in TestTwoPatterns()
56 patterns.push_back(&substring_pattern_2); in TestTwoPatterns()
57 patterns.push_back(&substring_pattern_1); in TestTwoPatterns()
60 ASSERT_TRUE(matcher.Build(patterns)); in TestTwoPatterns()
141 std::vector<const MatcherStringPattern*> patterns = {&pattern_1, &pattern_2, in TEST() local
[all …]
Dsubstring_set_matcher.cc34 const std::vector<MatcherStringPattern>& patterns) { in GetVectorOfPointers() argument
36 pattern_pointers.reserve(patterns.size()); in GetVectorOfPointers()
38 for (const MatcherStringPattern& pattern : patterns) in GetVectorOfPointers()
47 const std::vector<MatcherStringPattern>& patterns) { in Build() argument
48 return Build(GetVectorOfPointers(patterns)); in Build()
52 std::vector<const MatcherStringPattern*> patterns) { in Build() argument
58 for (const MatcherStringPattern* pattern : patterns) { in Build()
68 for (const MatcherStringPattern* pattern : patterns) { in Build()
75 std::sort(patterns.begin(), patterns.end(), ComparePatterns); in Build()
76 NodeID tree_size = GetTreeSize(patterns); in Build()
[all …]
/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/Transforms/
Dgpu_kernel_lowering_passes.cc54 RewritePatternSet& patterns) { in populateCommonPatterns() argument
55 arith::populateArithmeticToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
56 populateMathToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
57 populateMemRefToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
58 populateFuncToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
59 cf::populateControlFlowToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
60 populateComplexToLLVMConversionPatterns(converter, patterns); in populateCommonPatterns()
64 RewritePatternSet patterns(&getContext()); in runOnOperation() local
67 populateCommonPatterns(converter, patterns); in runOnOperation()
68 populateGpuToNVVMConversionPatterns(converter, patterns); in runOnOperation()
[all …]
Dgeneric_host_to_llvm.cc58 RewritePatternSet patterns(&getContext()); in runOnOperation() local
59 arith::populateArithmeticExpandOpsPatterns(patterns); in runOnOperation()
60 memref::populateExpandOpsPatterns(patterns); in runOnOperation()
61 arith::populateArithmeticToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
62 populateMemRefToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
63 populateMathToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
64 populateFuncToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
65 cf::populateControlFlowToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
66 populateSCFToControlFlowConversionPatterns(patterns); in runOnOperation()
67 populateComplexToLLVMConversionPatterns(typeConverter, patterns); in runOnOperation()
[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/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()
270 Some(Searcher { patterns, rabinkarp, search_kind, minimum_len }) in build()
273 fn build_teddy(&self, patterns: &Patterns) -> Option<Teddy> { in build_teddy()
277 .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/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/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/cronet/third_party/icu/source/data/locales/
Droot.txt21 patterns{
22 currencyFormat:alias{"/LOCALE/NumberElements/latn/patterns/currencyFormat"}
23 decimalFormat:alias{"/LOCALE/NumberElements/latn/patterns/decimalFormat"}
24 percentFormat:alias{"/LOCALE/NumberElements/latn/patterns/percentFormat"}
25 scientificFormat:alias{"/LOCALE/NumberElements/latn/patterns/scientificFormat"}
35 patterns{
36 accountingFormat:alias{"/LOCALE/NumberElements/arab/patterns/currencyFormat"}
39 decimalFormat:alias{"/LOCALE/NumberElements/latn/patterns/decimalFormat"}
41 scientificFormat:alias{"/LOCALE/NumberElements/latn/patterns/scientificFormat"}
64 patterns{
[all …]
/external/icu/icu4c/source/data/locales/
Droot.txt21 patterns{
22 currencyFormat:alias{"/LOCALE/NumberElements/latn/patterns/currencyFormat"}
23 decimalFormat:alias{"/LOCALE/NumberElements/latn/patterns/decimalFormat"}
24 percentFormat:alias{"/LOCALE/NumberElements/latn/patterns/percentFormat"}
25 scientificFormat:alias{"/LOCALE/NumberElements/latn/patterns/scientificFormat"}
35 patterns{
36 accountingFormat:alias{"/LOCALE/NumberElements/arab/patterns/currencyFormat"}
39 decimalFormat:alias{"/LOCALE/NumberElements/latn/patterns/decimalFormat"}
41 scientificFormat:alias{"/LOCALE/NumberElements/latn/patterns/scientificFormat"}
64 patterns{
[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.cpp125 std::vector<int32_t> patterns; in Encode() local
128 checkSum = Encode128B(contents, &patterns); in Encode()
130 checkSum = Encode128C(contents, &patterns); in Encode()
133 patterns.push_back(checkSum); in Encode()
134 patterns.push_back(CODE_STOP); in Encode()
137 for (const auto& patternIndex : patterns) { in Encode()
144 for (const int32_t pattern_index : patterns) { in Encode()
153 std::vector<int32_t>* patterns) { in Encode128B() argument
155 patterns->push_back(CODE_START_B); in Encode128B()
159 patterns->push_back(patternIndex); in Encode128B()
[all …]
DBC_OnedCode128Writer_unittest.cpp16 int32_t patterns[7]; member
40 std::vector<int32_t> patterns; in TEST() local
42 CBC_OnedCode128Writer::Encode128B(test_case.input, &patterns); in TEST()
44 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
45 for (size_t j = 0; j < patterns.size(); ++j) { in TEST()
48 EXPECT_EQ(test_case.patterns[j], patterns[j]); in TEST()
73 std::vector<int32_t> patterns; in TEST() local
75 CBC_OnedCode128Writer::Encode128C(test_case.input, &patterns); in TEST()
77 ASSERT_EQ(test_case.num_patterns, patterns.size()); in TEST()
78 for (size_t j = 0; j < patterns.size(); ++j) { in TEST()
[all …]
/external/toolchain-utils/debug_info_test/
Dallowlist.py33 def prepare_allowlist(patterns): argument
42 return re.compile("|".join(patterns))
60 patterns = f.read().splitlines()
61 patterns = [l for l in patterns if l != ""]
62 patterns = [l for l in patterns if l[0] != "#"]
63 wlist[key] = prepare_allowlist(patterns)
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Ddecompose_resource_ops_pass.cc89 Operation* op_with_regions, FrozenRewritePatternSet& patterns, in ApplyPatternsLocallyUntilConverged() argument
96 op_with_regions->walk([&patterns, &changed](Operation* operation) { in ApplyPatternsLocallyUntilConverged()
98 if (failed(applyOpPatternsAndFold(operation, patterns, &op_changed))) in ApplyPatternsLocallyUntilConverged()
114 ModuleOp module, FrozenRewritePatternSet& patterns, int max_iterations) { in ApplyPatternsInClusterAndReachableFunctions() argument
121 if (failed(applyPatternsAndFoldGreedily(op, patterns))) { in ApplyPatternsInClusterAndReachableFunctions()
140 if (failed(ApplyPatternsLocallyUntilConverged(cluster, patterns, in ApplyPatternsInClusterAndReachableFunctions()
157 RewritePatternSet patterns(&getContext()); in runOnOperation() local
158 TF::PopulateDecomposeResourceOpsPatterns(&getContext(), &patterns); in runOnOperation()
161 std::move(patterns)))) { in runOnOperation()
173 RewritePatternSet patterns(&getContext()); in runOnOperation() local
[all …]
/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/python/setuptools/setuptools/_distutils/
Dfilelist.py81 patterns = dir = dir_pattern = None
88 patterns = [convert_path(w) for w in words[1:]]
94 patterns = [convert_path(w) for w in words[2:]]
103 return (action, patterns, dir, dir_pattern)
111 (action, patterns, dir, dir_pattern) = self._parse_template_line(line)
117 self.debug_print("include " + ' '.join(patterns))
118 for pattern in patterns:
124 self.debug_print("exclude " + ' '.join(patterns))
125 for pattern in patterns:
131 self.debug_print("global-include " + ' '.join(patterns))
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tfrt/jit/transforms/
Dtf_jitrt_vectorize_tiled_ops.cc112 RewritePatternSet patterns(ctx); in getDefaultVectorizationPatterns() local
113 mlir::vector::populateVectorTransferPermutationMapLoweringPatterns(patterns); in getDefaultVectorizationPatterns()
114 mlir::vector::populateVectorReductionToContractPatterns(patterns); in getDefaultVectorizationPatterns()
115 patterns.add<mlir::linalg::LinalgCopyVTRForwardingPattern, in getDefaultVectorizationPatterns()
118 TransferReadOp::getCanonicalizationPatterns(patterns, ctx); in getDefaultVectorizationPatterns()
119 TransferWriteOp::getCanonicalizationPatterns(patterns, ctx); in getDefaultVectorizationPatterns()
120 return patterns; in getDefaultVectorizationPatterns()
149 RewritePatternSet patterns = getDefaultVectorizationPatterns(ctx); in runOnOperation() local
150 patterns.add<TransferReadOfOneDimExpandShape>(func.getContext()); in runOnOperation()
151 patterns.add<VectorizationPattern<FillOp>>(ctx, isFillTiledOrSmall); in runOnOperation()
[all …]
Dtf_jitrt_fusion.cc130 RewritePatternSet patterns(op->getContext()); in runOnOperation() local
131 linalg::populateElementwiseOpsFusionPatterns(patterns, in runOnOperation()
134 linalg::populateFoldReshapeOpsByExpansionPatterns(patterns, in runOnOperation()
137 linalg::populateConstantFoldLinalgOperations(patterns, in runOnOperation()
140 mlir::AffineApplyOp::getCanonicalizationPatterns(patterns, context); in runOnOperation()
141 linalg::GenericOp::getCanonicalizationPatterns(patterns, context); in runOnOperation()
142 tensor::ExpandShapeOp::getCanonicalizationPatterns(patterns, context); in runOnOperation()
143 tensor::CollapseShapeOp::getCanonicalizationPatterns(patterns, context); in runOnOperation()
145 ->getCanonicalizationPatterns(patterns); in runOnOperation()
149 (void)applyPatternsAndFoldGreedily(op->getRegions(), std::move(patterns), in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu/
Dgpu_passes.cc72 RewritePatternSet patterns(context); in runOnFunction() local
73 populateCclConversionPattern(patterns); in runOnFunction()
74 populateGemmConversionPattern(patterns); in runOnFunction()
75 populateFuncOpTypeConversionPattern(patterns, converter); in runOnFunction()
80 tfrt::gpu::populateGpuAsyncConversionPatterns(patterns, converter, in runOnFunction()
84 std::move(patterns)))) in runOnFunction()
99 RewritePatternSet patterns(context); in runOnFunction() local
100 tfrt::gpu::populateTfrtConversionPatterns(patterns, target); in runOnFunction()
103 std::move(patterns)))) in runOnFunction()
/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/hyphenation-patterns/
DREADME.android6 The tex-hyphen package contains hyphenation patterns under several different licenses.
16 Hyphenation patterns for automatic hyphenation from TeX hyphenation patterns
26 The patterns are taken from the hyph-utf8/tex/generic/hyph-utf8/patterns/txt directory.
28 Only the following patterns are included from that directory:
75 In case hyphenation patterns are licensed under dual licenses,
79 For the German (de) patterns, the *.chr.txt has been automatically generated
83 British English (en-GB) patterns are taken from a different part of the
87 US English (en-US) patterns have been modified to remove patterns added to
95 Swedish (sv) patterns are converted to utf-8 and the first three

12345678910>>...76