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
14fb5cf6
"aten/vscode:/vscode.git/clone" did not exist on "6c85ffa2409b6bd54d63ddd162bb74d858a7aa0f"
Commit
14fb5cf6
authored
Jan 17, 2019
by
Paul
Browse files
Add const to member functions
parent
301b7605
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
CMakeLists.txt
CMakeLists.txt
+1
-1
src/include/migraphx/iterator_for.hpp
src/include/migraphx/iterator_for.hpp
+2
-2
src/opt/memory_coloring_impl.hpp
src/opt/memory_coloring_impl.hpp
+1
-1
test/include/test.hpp
test/include/test.hpp
+1
-1
No files found.
CMakeLists.txt
View file @
14fb5cf6
...
@@ -117,7 +117,7 @@ rocm_enable_cppcheck(
...
@@ -117,7 +117,7 @@ rocm_enable_cppcheck(
passedByValue
passedByValue
unusedStructMember
unusedStructMember
functionStatic
functionStatic
functionConst
functionConst
:*program.hpp
definePrefix:*test/include/test.hpp
definePrefix:*test/include/test.hpp
FORCE
FORCE
INCONCLUSIVE
INCONCLUSIVE
...
...
src/include/migraphx/iterator_for.hpp
View file @
14fb5cf6
...
@@ -17,9 +17,9 @@ struct iterator_for_range
...
@@ -17,9 +17,9 @@ struct iterator_for_range
struct
iterator
struct
iterator
{
{
base_iterator
i
;
base_iterator
i
;
base_iterator
operator
*
()
{
return
i
;
}
base_iterator
operator
*
()
const
{
return
i
;
}
base_iterator
operator
++
()
{
return
++
i
;
}
base_iterator
operator
++
()
{
return
++
i
;
}
bool
operator
!=
(
const
iterator
&
rhs
)
{
return
i
!=
rhs
.
i
;
}
bool
operator
!=
(
const
iterator
&
rhs
)
const
{
return
i
!=
rhs
.
i
;
}
};
};
iterator
begin
()
iterator
begin
()
...
...
src/opt/memory_coloring_impl.hpp
View file @
14fb5cf6
...
@@ -84,7 +84,7 @@ struct memory_coloring_impl
...
@@ -84,7 +84,7 @@ struct memory_coloring_impl
{
{
return
is_param
(
ins
)
&&
any_cast
<
builtin
::
param
>
(
ins
->
get_operator
()).
parameter
==
"output"
;
return
is_param
(
ins
)
&&
any_cast
<
builtin
::
param
>
(
ins
->
get_operator
()).
parameter
==
"output"
;
}
}
bool
is_allocate
(
const
instruction_ref
ins
)
{
return
ins
->
name
()
==
allocation_op
;
}
bool
is_allocate
(
const
instruction_ref
ins
)
const
{
return
ins
->
name
()
==
allocation_op
;
}
static
bool
is_outline
(
const
instruction_ref
ins
)
{
return
ins
->
name
()
==
"@outline"
;
}
static
bool
is_outline
(
const
instruction_ref
ins
)
{
return
ins
->
name
()
==
"@outline"
;
}
static
bool
is_literal
(
const
instruction_ref
ins
)
{
return
ins
->
name
()
==
"@literal"
;
}
static
bool
is_literal
(
const
instruction_ref
ins
)
{
return
ins
->
name
()
==
"@literal"
;
}
static
bool
is_check_context
(
const
instruction_ref
ins
)
static
bool
is_check_context
(
const
instruction_ref
ins
)
...
...
test/include/test.hpp
View file @
14fb5cf6
...
@@ -111,7 +111,7 @@ struct lhs_expression
...
@@ -111,7 +111,7 @@ struct lhs_expression
struct
capture
struct
capture
{
{
template
<
class
T
>
template
<
class
T
>
auto
operator
->*
(
const
T
&
x
)
auto
operator
->*
(
const
T
&
x
)
const
{
{
return
make_lhs_expression
(
x
);
return
make_lhs_expression
(
x
);
}
}
...
...
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