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
0900cf79
Commit
0900cf79
authored
Aug 29, 2023
by
Michal Gallus
Browse files
Define friend functions as inlines in instruction_ref windows debug ver
parent
7eb6f941
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
src/include/migraphx/instruction_ref.hpp
src/include/migraphx/instruction_ref.hpp
+18
-23
No files found.
src/include/migraphx/instruction_ref.hpp
View file @
0900cf79
...
@@ -33,7 +33,7 @@ inline namespace MIGRAPHX_INLINE_NS {
...
@@ -33,7 +33,7 @@ inline namespace MIGRAPHX_INLINE_NS {
struct
instruction
;
struct
instruction
;
#if defined(_WIN32) && !defined(NDEBUG)
#if defined(_WIN32) && !defined(NDEBUG)
struct
instruction_ref
:
public
std
::
list
<
instruction
>::
iterator
struct
instruction_ref
:
std
::
list
<
instruction
>::
iterator
{
{
using
instruction_iter
=
std
::
list
<
instruction
>::
iterator
;
using
instruction_iter
=
std
::
list
<
instruction
>::
iterator
;
using
instruction_const_iter
=
std
::
list
<
instruction
>::
const_iterator
;
using
instruction_const_iter
=
std
::
list
<
instruction
>::
const_iterator
;
...
@@ -45,31 +45,26 @@ struct instruction_ref : public std::list<instruction>::iterator
...
@@ -45,31 +45,26 @@ struct instruction_ref : public std::list<instruction>::iterator
_Adopt
(
other
.
_Getcont
());
_Adopt
(
other
.
_Getcont
());
}
}
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
);
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
)
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_iter
&
y
);
{
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_const_iter
&
y
);
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
friend
bool
operator
!=
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
);
}
};
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
)
{
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
}
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_iter
&
y
)
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_iter
&
y
)
{
{
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
}
}
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_const_iter
&
y
)
friend
bool
operator
==
(
const
instruction_ref
&
x
,
const
instruction_const_iter
&
y
)
{
{
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
return
x
.
_Unwrapped
().
_Ptr
==
y
.
_Unwrapped
().
_Ptr
;
}
}
bool
operator
!=
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
)
friend
bool
operator
!=
(
const
instruction_ref
&
x
,
const
instruction_ref
&
y
)
{
{
return
!
(
x
==
y
);
return
!
(
x
==
y
);
}
}
};
#else
#else
using
instruction_ref
=
std
::
list
<
instruction
>::
iterator
;
using
instruction_ref
=
std
::
list
<
instruction
>::
iterator
;
#endif
#endif
...
...
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