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
e8009f7b
Commit
e8009f7b
authored
Feb 20, 2019
by
Paul
Browse files
Reduce pass include
parent
c50e8004
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
src/program.cpp
src/program.cpp
+1
-0
src/targets/cpu/include/migraphx/cpu/target.hpp
src/targets/cpu/include/migraphx/cpu/target.hpp
+2
-0
src/targets/cpu/target.cpp
src/targets/cpu/target.cpp
+1
-0
tools/include/target.hpp
tools/include/target.hpp
+0
-2
No files found.
src/program.cpp
View file @
e8009f7b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include <migraphx/stringutils.hpp>
#include <migraphx/stringutils.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/instruction.hpp>
#include <migraphx/operators.hpp>
#include <migraphx/operators.hpp>
#include <migraphx/target.hpp>
#include <migraphx/env.hpp>
#include <migraphx/env.hpp>
#include <migraphx/ranges.hpp>
#include <migraphx/ranges.hpp>
#include <migraphx/time.hpp>
#include <migraphx/time.hpp>
...
...
src/targets/cpu/include/migraphx/cpu/target.hpp
View file @
e8009f7b
...
@@ -7,8 +7,10 @@
...
@@ -7,8 +7,10 @@
namespace
migraphx
{
namespace
migraphx
{
inline
namespace
MIGRAPHX_INLINE_NS
{
inline
namespace
MIGRAPHX_INLINE_NS
{
struct
pass
;
namespace
cpu
{
namespace
cpu
{
struct
target
struct
target
{
{
std
::
string
name
()
const
;
std
::
string
name
()
const
;
...
...
src/targets/cpu/target.cpp
View file @
e8009f7b
#include <migraphx/cpu/target.hpp>
#include <migraphx/cpu/target.hpp>
#include <migraphx/cpu/lowering.hpp>
#include <migraphx/cpu/lowering.hpp>
#include <migraphx/pass.hpp>
#include <migraphx/auto_contiguous.hpp>
#include <migraphx/auto_contiguous.hpp>
#include <migraphx/rewrite_rnn.hpp>
#include <migraphx/rewrite_rnn.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/dead_code_elimination.hpp>
...
...
tools/include/target.hpp
View file @
e8009f7b
...
@@ -22,10 +22,8 @@ struct target
...
@@ -22,10 +22,8 @@ struct target
{
{
/// A unique name used to identify the target
/// A unique name used to identify the target
std
::
string
name
()
const
;
std
::
string
name
()
const
;
/// The transformation passes to be run
/**
/**
* @brief The transformation pass to be run during compilation.
* @brief The transformation pass to be run during compilation.
* @details [long description]
*
*
* @param ctx This is the target-dependent context that is created by `get_context`
* @param ctx This is the target-dependent context that is created by `get_context`
* @return The passes to be ran
* @return The passes to be ran
...
...
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