Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
b8a7d3bb
Commit
b8a7d3bb
authored
Sep 24, 2018
by
Paul
Browse files
Formatting
parent
ad2ac47c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/include/migraph/matcher.hpp
src/include/migraph/matcher.hpp
+3
-2
test/matcher.cpp
test/matcher.cpp
+1
-1
No files found.
src/include/migraph/matcher.hpp
View file @
b8a7d3bb
...
...
@@ -254,8 +254,9 @@ template <class... Ts>
auto
any_of
(
Ts
...
ms
)
{
return
make_bf_matcher
([
=
](
matcher_context
&
ctx
,
instruction_ref
ins
)
{
bool
matches
=
fold
(
[
&
](
auto
x
,
auto
y
)
{
return
x
or
y
.
match
(
ctx
,
ins
)
!=
ctx
.
not_found
();
})(
false
,
ms
...);
bool
matches
=
fold
([
&
](
auto
x
,
auto
y
)
{
return
x
or
y
.
match
(
ctx
,
ins
)
!=
ctx
.
not_found
();
})(
false
,
ms
...);
if
(
matches
)
return
ins
;
return
ctx
.
not_found
();
...
...
test/matcher.cpp
View file @
b8a7d3bb
...
...
@@ -411,7 +411,7 @@ int main()
match_none_of1
();
match_none_of2
();
match_bind1
();
match_finder
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment