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
c749ed33
Commit
c749ed33
authored
Feb 09, 2019
by
Paul
Browse files
Formatting
parent
d447561b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/instruction.cpp
src/instruction.cpp
+3
-1
No files found.
src/instruction.cpp
View file @
c749ed33
...
...
@@ -97,7 +97,9 @@ const std::vector<instruction_ref>& instruction::outputs() const { return output
bool
operator
==
(
const
instruction
&
x
,
const
instruction
&
y
)
{
static_assert
(
sizeof
(
instruction
)
==
(
sizeof
(
x
.
op
)
+
sizeof
(
x
.
result
)
+
sizeof
(
x
.
output
)
+
sizeof
(
x
.
arguments
)
+
sizeof
(
x
.
lit
)),
"Update equality operator"
);
static_assert
(
sizeof
(
instruction
)
==
(
sizeof
(
x
.
op
)
+
sizeof
(
x
.
result
)
+
sizeof
(
x
.
output
)
+
sizeof
(
x
.
arguments
)
+
sizeof
(
x
.
lit
)),
"Update equality operator"
);
if
(
std
::
tie
(
x
.
result
,
x
.
op
,
x
.
arguments
)
!=
std
::
tie
(
y
.
result
,
y
.
op
,
y
.
arguments
))
return
false
;
if
(
x
.
name
()
==
"@literal"
)
...
...
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