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
9b03bff7
Commit
9b03bff7
authored
Jul 22, 2022
by
Ted Themistokleous
Browse files
Updating tidy and PR comments
parent
df953fbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
src/instruction.cpp
src/instruction.cpp
+1
-5
src/module.cpp
src/module.cpp
+2
-2
No files found.
src/instruction.cpp
View file @
9b03bff7
...
...
@@ -118,11 +118,7 @@ bool instruction::valid() const
{
computed
=
lit
.
get_shape
();
}
else
if
(
op
.
name
()
==
"@param"
)
{
computed
=
result
;
}
else
if
(
op
.
name
()
==
"@divzero"
)
else
if
(
op
.
name
()
==
"@param"
||
op
.
name
()
==
"@divzero"
)
{
computed
=
result
;
}
...
...
src/module.cpp
View file @
9b03bff7
...
...
@@ -495,7 +495,7 @@ module::insert_divzero(instruction_ref pos, std::vector<instruction_ref> args, s
instruction_ref
module
::
add_divzero
(
std
::
vector
<
instruction_ref
>
args
,
shape
s
)
{
return
insert_divzero
(
impl
->
instructions
.
end
(),
args
,
s
);
return
insert_divzero
(
impl
->
instructions
.
end
(),
std
::
move
(
args
)
,
s
);
}
shape
module
::
get_parameter_shape
(
std
::
string
name
)
const
...
...
@@ -646,7 +646,7 @@ instruction_ref module::find_dangling_reference() const
return
end
();
}
bool
is_div_zero
(
instruction
ins
)
{
return
ins
.
name
()
==
"@divzero"
;
}
bool
is_div_zero
(
const
instruction
&
ins
)
{
return
ins
.
name
()
==
"@divzero"
;
}
instruction_ref
module
::
find_division_by_zero
()
const
{
...
...
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