Home
last modified time | relevance | path

Searched refs:NodeMatch (Results 1 – 19 of 19) sorted by relevance

/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp901 void MatchFinder::addMatcher(const DeclarationMatcher &NodeMatch, in addMatcher() argument
903 Matchers.DeclOrStmt.emplace_back(NodeMatch, Action); in addMatcher()
907 void MatchFinder::addMatcher(const TypeMatcher &NodeMatch, in addMatcher() argument
909 Matchers.Type.emplace_back(NodeMatch, Action); in addMatcher()
913 void MatchFinder::addMatcher(const StatementMatcher &NodeMatch, in addMatcher() argument
915 Matchers.DeclOrStmt.emplace_back(NodeMatch, Action); in addMatcher()
919 void MatchFinder::addMatcher(const NestedNameSpecifierMatcher &NodeMatch, in addMatcher() argument
921 Matchers.NestedNameSpecifier.emplace_back(NodeMatch, Action); in addMatcher()
925 void MatchFinder::addMatcher(const NestedNameSpecifierLocMatcher &NodeMatch, in addMatcher() argument
927 Matchers.NestedNameSpecifierLoc.emplace_back(NodeMatch, Action); in addMatcher()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h149 void addMatcher(const DeclarationMatcher &NodeMatch,
151 void addMatcher(const TypeMatcher &NodeMatch,
153 void addMatcher(const StatementMatcher &NodeMatch,
155 void addMatcher(const NestedNameSpecifierMatcher &NodeMatch,
157 void addMatcher(const NestedNameSpecifierLocMatcher &NodeMatch,
159 void addMatcher(const TypeLocMatcher &NodeMatch,
171 bool addDynamicMatcher(const internal::DynTypedMatcher &NodeMatch,
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_utils.h154 struct NodeMatch { struct
155 NodeMatch() : node() {} in NodeMatch() argument
157 std::vector<NodeMatch> inputs; argument
171 std::vector<NodeMatch>* matches);
176 NodeMatch* match);
200 const std::function<Status(const NodeMatch&, const std::set<string>&,
206 void MatchedNodesAsArray(const NodeMatch& match, std::vector<NodeDef>* result);
218 void CopyOriginalMatch(const NodeMatch& match, std::vector<NodeDef>* new_nodes);
Dfold_old_batch_norms.cc40 Status GetScaleAndOffsetValues(const NodeMatch& match, in GetScaleAndOffsetValues()
107 const NodeMatch& conv_node_match, in FuseScaleOffsetToConvWeights()
175 Status FuseBatchNormWithConv(const NodeMatch& match, in FuseBatchNormWithConv()
191 Status FuseBatchNormWithBatchToSpace(const NodeMatch& match, in FuseBatchNormWithBatchToSpace()
201 const NodeMatch& batch_to_space_node_match = match.inputs[0]; in FuseBatchNormWithBatchToSpace()
202 const NodeMatch& conv_node_match = batch_to_space_node_match.inputs[0]; in FuseBatchNormWithBatchToSpace()
220 Status FuseBatchNormWithConvConcat(const NodeMatch& match, in FuseBatchNormWithConvConcat()
230 const NodeMatch& concat_node_match = match.inputs[0]; in FuseBatchNormWithConvConcat()
310 [&did_graph_change](const NodeMatch& match, in FoldOldBatchNorms()
347 [&did_graph_change](const NodeMatch& match, in FoldOldBatchNorms()
[all …]
Dtransform_utils.cc33 void RecordMatchedNodes(const NodeMatch& match, in RecordMatchedNodes()
36 for (const NodeMatch& input_match : match.inputs) { in RecordMatchedNodes()
46 void MatchedNodesAsArray(const NodeMatch& match, std::vector<NodeDef>* result) { in MatchedNodesAsArray()
48 std::vector<NodeMatch> current_matches = {match}; in MatchedNodesAsArray()
50 std::vector<NodeMatch> next_matches; in MatchedNodesAsArray()
51 for (const NodeMatch& current_match : current_matches) { in MatchedNodesAsArray()
57 for (const NodeMatch& input_match : current_match.inputs) { in MatchedNodesAsArray()
275 string NodeMatch::DebugString() const { in DebugString()
279 for (const NodeMatch& input : inputs) { in DebugString()
292 std::vector<NodeMatch>* matches) { in GetOpTypeMatches()
[all …]
Dbackports.cc34 [](const NodeMatch& match, const std::set<string>& input_nodes, in BackportConcatV2Transform()
70 [&inputs_to_rename](const NodeMatch& match, in BackportTensorArrayV3Transform()
117 [](const NodeMatch& match, const std::set<string>& input_nodes, in BackportTensorArrayV3Transform()
Dtransform_utils_test.cc304 std::vector<NodeMatch> const_matches; in TestGetOpTypeMatches()
307 for (const NodeMatch& match : const_matches) { in TestGetOpTypeMatches()
313 std::vector<NodeMatch> add_matches; in TestGetOpTypeMatches()
319 std::vector<NodeMatch> add_child_matches; in TestGetOpTypeMatches()
326 for (const NodeMatch& match : add_child_matches[0].inputs) { in TestGetOpTypeMatches()
332 std::vector<NodeMatch> no_such_matches; in TestGetOpTypeMatches()
336 std::vector<NodeMatch> all_matches; in TestGetOpTypeMatches()
357 std::vector<NodeMatch> wildcard_matches; in TestGetOpTypeMatches()
367 std::vector<NodeMatch> or_matches; in TestGetOpTypeMatches()
397 std::vector<NodeMatch> add_matches; in TestGetOpTypeMatchesDAG()
[all …]
Dfuse_convolutions.cc45 [](const NodeMatch& match, const std::set<string>& input_nodes, in FuseResizePadAndConv()
94 [](const NodeMatch& match, const std::set<string>& input_nodes, in FuseResizeAndConv()
154 [](const NodeMatch& match, const std::set<string>& input_nodes, in FusePadAndConv()
Dquantize_nodes.cc279 [&inputs_to_rename, &graph_outputs](const NodeMatch& match, in RemoveRedundantQuantizations()
403 [](const NodeMatch& match, const std::set<string>& input_nodes, in ConvertFakeQuantsToRequantize()
497 [](const NodeMatch& match, const std::set<string>& input_nodes, in MergeAdjacentRequantizes()
547 [depth](const NodeMatch& match, const std::set<string>& input_nodes, in HoistFakeQuants()
554 NodeMatch current_match = match; in HoistFakeQuants()
696 const NodeMatch& match, const std::set<string>& input_nodes, in QuantizeNodes()
Dround_weights.cc40 [num_steps](const NodeMatch& match, const std::set<string>& input_nodes, in RoundWeights()
Dremove_nodes.cc70 const NodeMatch& match, const std::set<string>& input_nodes, in RemoveNodes()
Dfold_batch_norms.cc48 [](const NodeMatch& match, const std::set<string>& input_nodes, in FoldBatchNorms()
Dflatten_atrous.cc50 [](const NodeMatch& match, const std::set<string>& input_nodes, in FlattenAtrousConv()
Dquantize_weights.cc42 [minimum_size](const NodeMatch& match, in QuantizeWeights()
Dsparsify_gather.cc258 &refs](const NodeMatch& match, const std::set<string>& input_nodes, in SparsifyGatherInternal()
DREADME.md951 `NodeMatch` that contains information about the current sub-graph, and return a
967 [](const NodeMatch& match, const std::set<string>& input_nodes,
/external/clang/unittests/AST/
DStmtPrinterTest.cpp71 const T &NodeMatch, StringRef ExpectedPrinted) { in PrintedStmtMatches() argument
75 Finder.addMatcher(NodeMatch, &Printer); in PrintedStmtMatches()
101 PrintedStmtCXX98Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX98Matches() argument
106 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX98Matches()
124 PrintedStmtCXX11Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX11Matches() argument
129 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX11Matches()
DDeclPrinterTest.cpp71 const DeclarationMatcher &NodeMatch, in PrintedDeclMatches() argument
76 Finder.addMatcher(NodeMatch, &Printer); in PrintedDeclMatches()
114 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX98Matches() argument
119 NodeMatch, in PrintedDeclCXX98Matches()
137 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11Matches() argument
142 NodeMatch, in PrintedDeclCXX11Matches()
149 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11nonMSCMatches() argument
155 NodeMatch, in PrintedDeclCXX11nonMSCMatches()
161 PrintedDeclCXX1ZMatches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX1ZMatches() argument
166 NodeMatch, in PrintedDeclCXX1ZMatches()
[all …]
DNamedDeclPrinterTest.cpp66 const DeclarationMatcher &NodeMatch, in PrintedNamedDeclMatches() argument
70 Finder.addMatcher(NodeMatch, &Printer); in PrintedNamedDeclMatches()