Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
70eade79
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
70eade79
编写于
5月 29, 2023
作者:
W
winter-wang
提交者:
GitHub
5月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[IR] rectify the new ir folder (#54124)
上级
abbc3392
变更
78
显示空白变更内容
内联
并排
Showing
78 changed file
with
222 addition
and
218 deletion
+222
-218
paddle/CMakeLists.txt
paddle/CMakeLists.txt
+1
-1
paddle/fluid/dialect/legacy_pd_op.h
paddle/fluid/dialect/legacy_pd_op.h
+1
-1
paddle/fluid/dialect/op_gen.py
paddle/fluid/dialect/op_gen.py
+4
-4
paddle/fluid/dialect/pd_attribute.h
paddle/fluid/dialect/pd_attribute.h
+1
-1
paddle/fluid/dialect/pd_attribute_storage.h
paddle/fluid/dialect/pd_attribute_storage.h
+2
-2
paddle/fluid/dialect/pd_dialect.cc
paddle/fluid/dialect/pd_dialect.cc
+1
-1
paddle/fluid/dialect/pd_dialect.h
paddle/fluid/dialect/pd_dialect.h
+2
-2
paddle/fluid/dialect/pd_type.h
paddle/fluid/dialect/pd_type.h
+1
-1
paddle/fluid/dialect/pd_type_storage.h
paddle/fluid/dialect/pd_type_storage.h
+2
-2
paddle/fluid/dialect/utils.h
paddle/fluid/dialect/utils.h
+1
-1
paddle/fluid/translator/op_translator.cc
paddle/fluid/translator/op_translator.cc
+4
-4
paddle/fluid/translator/op_translator.h
paddle/fluid/translator/op_translator.h
+4
-4
paddle/fluid/translator/program_translator.cc
paddle/fluid/translator/program_translator.cc
+4
-4
paddle/fluid/translator/program_translator.h
paddle/fluid/translator/program_translator.h
+3
-3
paddle/fluid/translator/translate.cc
paddle/fluid/translator/translate.cc
+1
-1
paddle/fluid/translator/translate.h
paddle/fluid/translator/translate.h
+1
-1
paddle/fluid/translator/type_translator.cc
paddle/fluid/translator/type_translator.cc
+1
-1
paddle/fluid/translator/type_translator.h
paddle/fluid/translator/type_translator.h
+3
-3
paddle/ir/CMakeLists.txt
paddle/ir/CMakeLists.txt
+1
-6
paddle/ir/core/CMakeLists.txt
paddle/ir/core/CMakeLists.txt
+6
-0
paddle/ir/core/attribute.cc
paddle/ir/core/attribute.cc
+2
-2
paddle/ir/core/attribute.h
paddle/ir/core/attribute.h
+2
-2
paddle/ir/core/attribute_base.h
paddle/ir/core/attribute_base.h
+3
-3
paddle/ir/core/block.cc
paddle/ir/core/block.cc
+1
-1
paddle/ir/core/block.h
paddle/ir/core/block.h
+1
-1
paddle/ir/core/builder.cc
paddle/ir/core/builder.cc
+1
-1
paddle/ir/core/builder.h
paddle/ir/core/builder.h
+3
-3
paddle/ir/core/builtin_attribute.cc
paddle/ir/core/builtin_attribute.cc
+1
-1
paddle/ir/core/builtin_attribute.h
paddle/ir/core/builtin_attribute.h
+3
-3
paddle/ir/core/builtin_attribute_storage.h
paddle/ir/core/builtin_attribute_storage.h
+2
-2
paddle/ir/core/builtin_dialect.cc
paddle/ir/core/builtin_dialect.cc
+4
-4
paddle/ir/core/builtin_dialect.h
paddle/ir/core/builtin_dialect.h
+1
-1
paddle/ir/core/builtin_op.cc
paddle/ir/core/builtin_op.cc
+3
-3
paddle/ir/core/builtin_op.h
paddle/ir/core/builtin_op.h
+1
-1
paddle/ir/core/builtin_type.cc
paddle/ir/core/builtin_type.cc
+1
-1
paddle/ir/core/builtin_type.h
paddle/ir/core/builtin_type.h
+2
-2
paddle/ir/core/builtin_type_storage.h
paddle/ir/core/builtin_type_storage.h
+2
-2
paddle/ir/core/cast_utils.h
paddle/ir/core/cast_utils.h
+0
-0
paddle/ir/core/dialect.cc
paddle/ir/core/dialect.cc
+1
-1
paddle/ir/core/dialect.h
paddle/ir/core/dialect.h
+5
-5
paddle/ir/core/dialect_interface.h
paddle/ir/core/dialect_interface.h
+1
-1
paddle/ir/core/ir_context.cc
paddle/ir/core/ir_context.cc
+8
-8
paddle/ir/core/ir_context.h
paddle/ir/core/ir_context.h
+0
-0
paddle/ir/core/op_base.cc
paddle/ir/core/op_base.cc
+1
-1
paddle/ir/core/op_base.h
paddle/ir/core/op_base.h
+2
-2
paddle/ir/core/op_info.cc
paddle/ir/core/op_info.cc
+4
-4
paddle/ir/core/op_info.h
paddle/ir/core/op_info.h
+1
-1
paddle/ir/core/op_info_impl.h
paddle/ir/core/op_info_impl.h
+3
-3
paddle/ir/core/operation.cc
paddle/ir/core/operation.cc
+4
-4
paddle/ir/core/operation.h
paddle/ir/core/operation.h
+7
-6
paddle/ir/core/operation_utils.cc
paddle/ir/core/operation_utils.cc
+1
-1
paddle/ir/core/operation_utils.h
paddle/ir/core/operation_utils.h
+4
-4
paddle/ir/core/parameter.h
paddle/ir/core/parameter.h
+1
-1
paddle/ir/core/printer.cc
paddle/ir/core/printer.cc
+6
-6
paddle/ir/core/program.cc
paddle/ir/core/program.cc
+2
-2
paddle/ir/core/program.h
paddle/ir/core/program.h
+4
-4
paddle/ir/core/spin_lock.h
paddle/ir/core/spin_lock.h
+0
-0
paddle/ir/core/storage_manager.cc
paddle/ir/core/storage_manager.cc
+1
-1
paddle/ir/core/storage_manager.h
paddle/ir/core/storage_manager.h
+2
-2
paddle/ir/core/type.cc
paddle/ir/core/type.cc
+2
-2
paddle/ir/core/type.h
paddle/ir/core/type.h
+2
-2
paddle/ir/core/type_base.h
paddle/ir/core/type_base.h
+3
-3
paddle/ir/core/type_id.h
paddle/ir/core/type_id.h
+0
-0
paddle/ir/core/utils.cc
paddle/ir/core/utils.cc
+1
-1
paddle/ir/core/utils.h
paddle/ir/core/utils.h
+0
-0
paddle/ir/core/value.cc
paddle/ir/core/value.cc
+2
-2
paddle/ir/core/value.h
paddle/ir/core/value.h
+2
-2
paddle/ir/core/value_impl.h
paddle/ir/core/value_impl.h
+1
-1
paddle/pass/pass.cc
paddle/pass/pass.cc
+2
-2
test/cpp/ir/CMakeLists.txt
test/cpp/ir/CMakeLists.txt
+4
-31
test/cpp/ir/core/CMakeLists.txt
test/cpp/ir/core/CMakeLists.txt
+29
-0
test/cpp/ir/core/ir_attribute_test.cc
test/cpp/ir/core/ir_attribute_test.cc
+6
-6
test/cpp/ir/core/ir_op_test.cc
test/cpp/ir/core/ir_op_test.cc
+6
-6
test/cpp/ir/core/ir_program_test.cc
test/cpp/ir/core/ir_program_test.cc
+6
-6
test/cpp/ir/core/ir_value_test.cc
test/cpp/ir/core/ir_value_test.cc
+5
-5
test/cpp/ir/core/program_translator_test.cc
test/cpp/ir/core/program_translator_test.cc
+4
-4
test/cpp/ir/core/type_test.cc
test/cpp/ir/core/type_test.cc
+7
-7
test/cpp/pass/pass_manager_test.cc
test/cpp/pass/pass_manager_test.cc
+5
-5
未找到文件。
paddle/CMakeLists.txt
浏览文件 @
70eade79
...
...
@@ -3,12 +3,12 @@ set(PYTHON_TESTS_DIR
CACHE INTERNAL
"python tests directory"
)
add_subdirectory
(
utils
)
add_subdirectory
(
ir
)
add_subdirectory
(
scripts
)
add_subdirectory
(
testing
)
add_subdirectory
(
phi
)
add_subdirectory
(
fluid
)
add_subdirectory
(
ir
)
add_subdirectory
(
pass
)
# NOTE(zhiqiu): The changes of cc tests
...
...
paddle/fluid/dialect/legacy_pd_op.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/op_base.h"
#include "paddle/ir/
core/
op_base.h"
namespace
paddle
{
namespace
dialect
{
...
...
paddle/fluid/dialect/op_gen.py
浏览文件 @
70eade79
...
...
@@ -29,7 +29,7 @@ H_FILE_TEMPLATE = """#ifdef GET_OP_LIST
{op_declare}
#else
#include "paddle/ir/op_base.h"
#include "paddle/ir/
core/
op_base.h"
{input}
#endif
...
...
@@ -67,9 +67,9 @@ OP_GET_OUTPUT_TEMPLATE = """ ir::OpResult {output_name}() {{ return operation()
CC_FILE_TEMPLATE
=
"""#include "{h_file}"
#include "paddle/fluid/dialect/pd_type.h"
#include "paddle/fluid/dialect/pd_attribute.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/phi/core/enforce.h"
{input}
...
...
paddle/fluid/dialect/pd_attribute.h
浏览文件 @
70eade79
...
...
@@ -15,7 +15,7 @@
#pragma once
#include "paddle/fluid/dialect/pd_attribute_storage.h"
#include "paddle/ir/attribute.h"
#include "paddle/ir/
core/
attribute.h"
namespace
paddle
{
namespace
dialect
{
...
...
paddle/fluid/dialect/pd_attribute_storage.h
浏览文件 @
70eade79
...
...
@@ -14,8 +14,8 @@
#pragma once
#include "paddle/ir/attribute.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
utils.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/common/int_array.h"
#include "paddle/phi/common/layout.h"
...
...
paddle/fluid/dialect/pd_dialect.cc
浏览文件 @
70eade79
...
...
@@ -23,7 +23,7 @@
#include "paddle/fluid/dialect/utils.h"
#include "paddle/fluid/framework/convert_utils.h"
#include "paddle/fluid/framework/data_type.h"
#include "paddle/ir/dialect_interface.h"
#include "paddle/ir/
core/
dialect_interface.h"
#include "paddle/phi/core/dense_tensor.h"
namespace
paddle
{
...
...
paddle/fluid/dialect/pd_dialect.h
浏览文件 @
70eade79
...
...
@@ -15,8 +15,8 @@
#pragma once
#include "paddle/fluid/framework/variable.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/parameter.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
parameter.h"
namespace
paddle
{
namespace
dialect
{
...
...
paddle/fluid/dialect/pd_type.h
浏览文件 @
70eade79
...
...
@@ -15,7 +15,7 @@
#pragma once
#include "paddle/fluid/dialect/pd_type_storage.h"
#include "paddle/ir/type.h"
#include "paddle/ir/
core/
type.h"
namespace
paddle
{
namespace
dialect
{
...
...
paddle/fluid/dialect/pd_type_storage.h
浏览文件 @
70eade79
...
...
@@ -16,8 +16,8 @@
#include <type_traits>
#include "paddle/ir/type.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
type.h"
#include "paddle/ir/
core/
utils.h"
namespace
std
{
///
...
...
paddle/fluid/dialect/utils.h
浏览文件 @
70eade79
...
...
@@ -17,7 +17,7 @@
#include "paddle/fluid/dialect/pd_type_storage.h"
#include "paddle/fluid/framework/convert_utils.h"
#include "paddle/fluid/framework/data_type.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/phi/core/dense_tensor.h"
namespace
paddle
{
...
...
paddle/fluid/translator/op_translator.cc
浏览文件 @
70eade79
...
...
@@ -25,10 +25,10 @@
#include "paddle/fluid/translator/op_compat_info.h"
#include "paddle/fluid/translator/program_translator.h"
#include "paddle/fluid/translator/type_translator.h"
#include "paddle/ir/builtin_op.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/value.h"
#include "paddle/ir/
core/
builtin_op.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
value.h"
#include "paddle/phi/core/enforce.h"
namespace
paddle
{
...
...
paddle/fluid/translator/op_translator.h
浏览文件 @
70eade79
...
...
@@ -21,10 +21,10 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/var_desc.h"
#include "paddle/fluid/translator/program_translator.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/program.h"
#include "paddle/ir/value.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
value.h"
namespace
paddle
{
namespace
translator
{
...
...
paddle/fluid/translator/program_translator.cc
浏览文件 @
70eade79
...
...
@@ -21,10 +21,10 @@
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/translator/op_translator.h"
#include "paddle/fluid/translator/type_translator.h"
#include "paddle/ir/attribute.h"
#include "paddle/ir/builtin_op.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
builtin_op.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/phi/core/enforce.h"
namespace
paddle
{
...
...
paddle/fluid/translator/program_translator.h
浏览文件 @
70eade79
...
...
@@ -20,9 +20,9 @@
#include <vector>
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/program.h"
#include "paddle/ir/value.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
value.h"
namespace
paddle
{
namespace
translator
{
...
...
paddle/fluid/translator/translate.cc
浏览文件 @
70eade79
...
...
@@ -19,7 +19,7 @@
#include "paddle/fluid/dialect/pd_dialect.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/translator/program_translator.h"
#include "paddle/ir/program.h"
#include "paddle/ir/
core/
program.h"
namespace
paddle
{
...
...
paddle/fluid/translator/translate.h
浏览文件 @
70eade79
...
...
@@ -18,7 +18,7 @@
#include "paddle/fluid/dialect/pd_dialect.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/ir/program.h"
#include "paddle/ir/
core/
program.h"
namespace
paddle
{
...
...
paddle/fluid/translator/type_translator.cc
浏览文件 @
70eade79
...
...
@@ -17,7 +17,7 @@
#include "paddle/fluid/dialect/pd_type.h"
#include "paddle/fluid/dialect/pd_type_storage.h"
#include "paddle/fluid/framework/framework.pb.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/
core/
builtin_type.h"
namespace
paddle
{
namespace
translator
{
...
...
paddle/fluid/translator/type_translator.h
浏览文件 @
70eade79
...
...
@@ -20,9 +20,9 @@
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/var_desc.h"
#include "paddle/fluid/translator/program_translator.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
namespace
paddle
{
namespace
translator
{
...
...
paddle/ir/CMakeLists.txt
浏览文件 @
70eade79
...
...
@@ -2,9 +2,4 @@ if(NOT WITH_NEWIR)
return
()
endif
()
set
(
NEWIR_SOURCE_DIR
"
${
PADDLE_SOURCE_DIR
}
/paddle/ir"
)
set
(
NEWIR_BINARY_DIR
"
${
PADDLE_BINARY_DIR
}
/paddle/ir"
)
file
(
GLOB IR_SRCS
"*.cc"
)
cc_library
(
new_ir SRCS
${
IR_SRCS
}
)
add_subdirectory
(
core
)
paddle/ir/core/CMakeLists.txt
0 → 100644
浏览文件 @
70eade79
set
(
NEWIR_SOURCE_DIR
"
${
PADDLE_SOURCE_DIR
}
/paddle/ir"
)
set
(
NEWIR_BINARY_DIR
"
${
PADDLE_BINARY_DIR
}
/paddle/ir"
)
file
(
GLOB IR_SRCS
"*.cc"
)
cc_library
(
new_ir SRCS
${
IR_SRCS
}
)
paddle/ir/attribute.cc
→
paddle/ir/
core/
attribute.cc
浏览文件 @
70eade79
...
...
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/attribute.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
dialect.h"
namespace
ir
{
IrContext
*
Attribute
::
ir_context
()
const
{
return
dialect
().
ir_context
();
}
...
...
paddle/ir/attribute.h
→
paddle/ir/
core/
attribute.h
浏览文件 @
70eade79
...
...
@@ -14,8 +14,8 @@
#pragma once
#include "paddle/ir/attribute_base.h"
#include "paddle/ir/cast_utils.h"
#include "paddle/ir/
core/
attribute_base.h"
#include "paddle/ir/c
ore/c
ast_utils.h"
namespace
ir
{
///
...
...
paddle/ir/attribute_base.h
→
paddle/ir/
core/
attribute_base.h
浏览文件 @
70eade79
...
...
@@ -14,9 +14,9 @@
#pragma once
#include "paddle/ir/ir_context.h"
#include "paddle/ir/storage_manager.h"
#include "paddle/ir/type_id.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
storage_manager.h"
#include "paddle/ir/
core/
type_id.h"
namespace
ir
{
class
Dialect
;
...
...
paddle/ir/block.cc
→
paddle/ir/
core/
block.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/block.h"
#include "paddle/ir/
core/
block.h"
namespace
ir
{
Block
::~
Block
()
{
clear
();
}
...
...
paddle/ir/block.h
→
paddle/ir/
core/
block.h
浏览文件 @
70eade79
...
...
@@ -15,7 +15,7 @@
#pragma once
#include <list>
#include "paddle/ir/operation.h"
#include "paddle/ir/
core/
operation.h"
namespace
ir
{
class
Block
{
...
...
paddle/ir/builder.cc
→
paddle/ir/
core/
builder.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builder.h"
#include "paddle/ir/
core/
builder.h"
namespace
ir
{
Operation
*
Builder
::
insert
(
Operation
*
op
)
{
...
...
paddle/ir/builder.h
→
paddle/ir/
core/
builder.h
浏览文件 @
70eade79
...
...
@@ -16,9 +16,9 @@
#include <list>
#include "paddle/ir/block.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/program.h"
#include "paddle/ir/
core/
block.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
program.h"
namespace
ir
{
///
...
...
paddle/ir/builtin_attribute.cc
→
paddle/ir/
core/
builtin_attribute.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/
core/
builtin_attribute.h"
namespace
ir
{
std
::
string
StrAttribute
::
data
()
const
{
return
storage
()
->
GetAsKey
();
}
...
...
paddle/ir/builtin_attribute.h
→
paddle/ir/
core/
builtin_attribute.h
浏览文件 @
70eade79
...
...
@@ -14,9 +14,9 @@
#pragma once
#include "paddle/ir/attribute.h"
#include "paddle/ir/builtin_attribute_storage.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
builtin_attribute_storage.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
class
StrAttribute
:
public
Attribute
{
...
...
paddle/ir/builtin_attribute_storage.h
→
paddle/ir/
core/
builtin_attribute_storage.h
浏览文件 @
70eade79
...
...
@@ -18,8 +18,8 @@
#include <map>
#include <type_traits>
#include "paddle/ir/attribute.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
...
...
paddle/ir/builtin_dialect.cc
→
paddle/ir/
core/
builtin_dialect.cc
浏览文件 @
70eade79
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_op.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_op.h"
#include "paddle/ir/
core/
builtin_type.h"
namespace
ir
{
BuiltinDialect
::
BuiltinDialect
(
ir
::
IrContext
*
context
)
...
...
paddle/ir/builtin_dialect.h
→
paddle/ir/
core/
builtin_dialect.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/dialect.h"
#include "paddle/ir/
core/
dialect.h"
namespace
ir
{
///
...
...
paddle/ir/builtin_op.cc
→
paddle/ir/
core/
builtin_op.cc
浏览文件 @
70eade79
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builtin_op.h"
#include "paddle/ir/
core/
builtin_op.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/phi/core/enforce.h"
namespace
ir
{
...
...
paddle/ir/builtin_op.h
→
paddle/ir/
core/
builtin_op.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/op_base.h"
#include "paddle/ir/
core/
op_base.h"
namespace
ir
{
///
...
...
paddle/ir/builtin_type.cc
→
paddle/ir/
core/
builtin_type.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/
core/
builtin_type.h"
namespace
ir
{
std
::
vector
<
Type
>
VectorType
::
data
()
const
{
return
storage
()
->
GetAsKey
();
}
...
...
paddle/ir/builtin_type.h
→
paddle/ir/
core/
builtin_type.h
浏览文件 @
70eade79
...
...
@@ -14,8 +14,8 @@
#pragma once
#include "paddle/ir/builtin_type_storage.h"
#include "paddle/ir/type.h"
#include "paddle/ir/
core/
builtin_type_storage.h"
#include "paddle/ir/
core/
type.h"
namespace
ir
{
///
...
...
paddle/ir/builtin_type_storage.h
→
paddle/ir/
core/
builtin_type_storage.h
浏览文件 @
70eade79
...
...
@@ -14,8 +14,8 @@
#pragma once
#include "paddle/ir/type.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
type.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
struct
VectorTypeStorage
:
public
TypeStorage
{
...
...
paddle/ir/cast_utils.h
→
paddle/ir/c
ore/c
ast_utils.h
浏览文件 @
70eade79
文件已移动
paddle/ir/dialect.cc
→
paddle/ir/
core/
dialect.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/dialect.h"
#include "paddle/ir/
core/
dialect.h"
namespace
ir
{
Dialect
::
Dialect
(
std
::
string
name
,
ir
::
IrContext
*
context
,
ir
::
TypeId
id
)
...
...
paddle/ir/dialect.h
→
paddle/ir/
core/
dialect.h
浏览文件 @
70eade79
...
...
@@ -16,11 +16,11 @@
#include <ostream>
#include "paddle/ir/attribute_base.h"
#include "paddle/ir/dialect_interface.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/op_base.h"
#include "paddle/ir/type_base.h"
#include "paddle/ir/
core/
attribute_base.h"
#include "paddle/ir/
core/
dialect_interface.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
op_base.h"
#include "paddle/ir/
core/
type_base.h"
namespace
ir
{
class
DialectInterface
;
...
...
paddle/ir/dialect_interface.h
→
paddle/ir/
core/
dialect_interface.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/type_id.h"
#include "paddle/ir/
core/
type_id.h"
namespace
ir
{
class
Dialect
;
...
...
paddle/ir/ir_context.cc
→
paddle/ir/
core/
ir_context.cc
浏览文件 @
70eade79
...
...
@@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/ir_context.h"
#include "paddle/ir/
core/
ir_context.h"
#include <unordered_map>
#include "paddle/ir/attribute_base.h"
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/op_info_impl.h"
#include "paddle/ir/spin_lock.h"
#include "paddle/ir/type_base.h"
#include "paddle/ir/
core/
attribute_base.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
op_info_impl.h"
#include "paddle/ir/
core/
spin_lock.h"
#include "paddle/ir/
core/
type_base.h"
namespace
ir
{
// The implementation class of the IrContext class, cache registered
...
...
paddle/ir/ir_context.h
→
paddle/ir/
core/
ir_context.h
浏览文件 @
70eade79
文件已移动
paddle/ir/op_base.cc
→
paddle/ir/
core/
op_base.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/op_base.h"
#include "paddle/ir/
core/
op_base.h"
namespace
ir
{
InterfaceValue
::~
InterfaceValue
()
{
if
(
model_
)
free
(
model_
);
...
...
paddle/ir/op_base.h
→
paddle/ir/
core/
op_base.h
浏览文件 @
70eade79
...
...
@@ -15,8 +15,8 @@
#pragma once
#include <type_traits>
#include "paddle/ir/operation.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
...
...
paddle/ir/op_info.cc
→
paddle/ir/
core/
op_info.cc
浏览文件 @
70eade79
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/op_info.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/op_info_impl.h"
#include "paddle/ir/
core/
op_info.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
op_info_impl.h"
namespace
ir
{
bool
OpInfo
::
HasTrait
(
TypeId
trait_id
)
const
{
...
...
paddle/ir/op_info.h
→
paddle/ir/
core/
op_info.h
浏览文件 @
70eade79
...
...
@@ -15,7 +15,7 @@
#pragma once
#include <functional>
#include <unordered_map>
#include "paddle/ir/type_id.h"
#include "paddle/ir/
core/
type_id.h"
namespace
ir
{
class
OpInfoImpl
;
...
...
paddle/ir/op_info_impl.h
→
paddle/ir/
core/
op_info_impl.h
浏览文件 @
70eade79
...
...
@@ -19,9 +19,9 @@
#include <string>
#include <utility>
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/op_base.h"
#include "paddle/ir/type.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
op_base.h"
#include "paddle/ir/
core/
type.h"
namespace
ir
{
class
Dialect
;
...
...
paddle/ir/operation.cc
→
paddle/ir/
core/
operation.cc
浏览文件 @
70eade79
...
...
@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/operation.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/program.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
Operation
*
Operation
::
create
(
const
OperationArgument
&
argument
)
{
...
...
paddle/ir/operation.h
→
paddle/ir/
core/
operation.h
浏览文件 @
70eade79
...
...
@@ -15,10 +15,11 @@
#pragma once
#include <iostream>
#include "paddle/ir/op_info.h"
#include "paddle/ir/operation_utils.h"
#include "paddle/ir/type.h"
#include "paddle/ir/value_impl.h"
#include <vector>
#include "paddle/ir/core/op_info.h"
#include "paddle/ir/core/operation_utils.h"
#include "paddle/ir/core/type.h"
#include "paddle/ir/core/value_impl.h"
namespace
ir
{
class
OpBase
;
...
...
@@ -104,13 +105,13 @@ class alignas(8) Operation final {
AttributeMap
attribute_
;
ir
::
OpInfo
op_info_
;
OpInfo
op_info_
;
uint32_t
num_results_
=
0
;
uint32_t
num_operands_
=
0
;
ir
::
Program
*
parent_program_
{
nullptr
};
Program
*
parent_program_
{
nullptr
};
};
}
// namespace ir
paddle/ir/operation_utils.cc
→
paddle/ir/
core/
operation_utils.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/operation_utils.h"
#include "paddle/ir/
core/
operation_utils.h"
namespace
ir
{
OperationArgument
::
OperationArgument
(
IrContext
*
ir_context
,
std
::
string
name
)
{
...
...
paddle/ir/operation_utils.h
→
paddle/ir/
core/
operation_utils.h
浏览文件 @
70eade79
...
...
@@ -14,10 +14,10 @@
#pragma once
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/op_info.h"
#include "paddle/ir/type.h"
#include "paddle/ir/value_impl.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
op_info.h"
#include "paddle/ir/
core/
type.h"
#include "paddle/ir/
core/
value_impl.h"
namespace
ir
{
...
...
paddle/ir/parameter.h
→
paddle/ir/
core/
parameter.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/type.h"
#include "paddle/ir/
core/
type.h"
namespace
ir
{
///
...
...
paddle/ir/printer.cc
→
paddle/ir/
core/
printer.cc
浏览文件 @
70eade79
...
...
@@ -17,12 +17,12 @@
#include <string>
#include <unordered_map>
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/program.h"
#include "paddle/ir/value.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
value.h"
namespace
ir
{
...
...
paddle/ir/program.cc
→
paddle/ir/
core/
program.cc
浏览文件 @
70eade79
...
...
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/program.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
ir_context.h"
namespace
ir
{
Program
::~
Program
()
=
default
;
...
...
paddle/ir/program.h
→
paddle/ir/
core/
program.h
浏览文件 @
70eade79
...
...
@@ -17,10 +17,10 @@
#include <list>
#include <unordered_map>
#include "paddle/ir/block.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/parameter.h"
#include "paddle/ir/
core/
block.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/ir/
core/
parameter.h"
namespace
ir
{
///
...
...
paddle/ir/spin_lock.h
→
paddle/ir/
core/
spin_lock.h
浏览文件 @
70eade79
文件已移动
paddle/ir/storage_manager.cc
→
paddle/ir/
core/
storage_manager.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/storage_manager.h"
#include "paddle/ir/
core/
storage_manager.h"
#include <memory>
#include <unordered_map>
...
...
paddle/ir/storage_manager.h
→
paddle/ir/
core/
storage_manager.h
浏览文件 @
70eade79
...
...
@@ -18,8 +18,8 @@
#include <type_traits>
#include <unordered_map>
#include "paddle/ir/spin_lock.h"
#include "paddle/ir/type_id.h"
#include "paddle/ir/
core/
spin_lock.h"
#include "paddle/ir/
core/
type_id.h"
namespace
ir
{
///
...
...
paddle/ir/type.cc
→
paddle/ir/
core/
type.cc
浏览文件 @
70eade79
...
...
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/
core/
type.h"
#include "paddle/ir/
core/
dialect.h"
namespace
ir
{
IrContext
*
Type
::
ir_context
()
const
{
return
dialect
().
ir_context
();
}
...
...
paddle/ir/type.h
→
paddle/ir/
core/
type.h
浏览文件 @
70eade79
...
...
@@ -16,8 +16,8 @@
#include <ostream>
#include "paddle/ir/cast_utils.h"
#include "paddle/ir/type_base.h"
#include "paddle/ir/c
ore/c
ast_utils.h"
#include "paddle/ir/
core/
type_base.h"
namespace
ir
{
///
...
...
paddle/ir/type_base.h
→
paddle/ir/
core/
type_base.h
浏览文件 @
70eade79
...
...
@@ -14,9 +14,9 @@
#pragma once
#include "paddle/ir/ir_context.h"
#include "paddle/ir/storage_manager.h"
#include "paddle/ir/type_id.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
storage_manager.h"
#include "paddle/ir/
core/
type_id.h"
namespace
ir
{
class
Dialect
;
...
...
paddle/ir/type_id.h
→
paddle/ir/
core/
type_id.h
浏览文件 @
70eade79
文件已移动
paddle/ir/utils.cc
→
paddle/ir/
core/
utils.cc
浏览文件 @
70eade79
...
...
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
utils.h"
namespace
ir
{
std
::
size_t
hash_combine
(
std
::
size_t
lhs
,
std
::
size_t
rhs
)
{
...
...
paddle/ir/utils.h
→
paddle/ir/
core/
utils.h
浏览文件 @
70eade79
文件已移动
paddle/ir/value.cc
→
paddle/ir/
core/
value.cc
浏览文件 @
70eade79
...
...
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/value.h"
#include "paddle/ir/value_impl.h"
#include "paddle/ir/
core/
value.h"
#include "paddle/ir/
core/
value_impl.h"
namespace
ir
{
// Operand
...
...
paddle/ir/value.h
→
paddle/ir/
core/
value.h
浏览文件 @
70eade79
...
...
@@ -14,8 +14,8 @@
#pragma once
#include "paddle/ir/cast_utils.h"
#include "paddle/ir/type.h"
#include "paddle/ir/c
ore/c
ast_utils.h"
#include "paddle/ir/
core/
type.h"
namespace
ir
{
class
Operation
;
...
...
paddle/ir/value_impl.h
→
paddle/ir/
core/
value_impl.h
浏览文件 @
70eade79
...
...
@@ -14,7 +14,7 @@
#pragma once
#include "paddle/ir/value.h"
#include "paddle/ir/
core/
value.h"
namespace
ir
{
static
const
uint32_t
OUTLINE_OP_RESULT_INDEX
=
6
;
...
...
paddle/pass/pass.cc
浏览文件 @
70eade79
...
...
@@ -13,8 +13,8 @@
// limitations under the License.
#include "paddle/pass/pass.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/pass/pass_adaptor.h"
#include "paddle/pass/pass_manager.h"
...
...
test/cpp/ir/CMakeLists.txt
浏览文件 @
70eade79
if
(
WITH_NEWIR
)
cc_test_old
(
type_test SRCS type_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_attribute_test SRCS ir_attribute_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_value_test SRCS ir_value_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_op_test SRCS ir_op_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_program_test
SRCS
ir_program_test.cc
DEPS
new_ir
pd_dialect
phi
gtest
)
file
(
DOWNLOAD
https://paddle-ci.gz.bcebos.com/ir_translator_test/restnet50_main.prog
${
CMAKE_CURRENT_BINARY_DIR
}
/restnet50_main.prog
EXPECTED_MD5 b64c0ad3c96d99fc37d12094623ce1ad
)
cc_test_old
(
program_translator_test
SRCS
program_translator_test.cc
DEPS
program_translator
gtest
new_ir
pd_dialect
)
if
(
NOT WITH_NEWIR
)
return
()
endif
()
add_subdirectory
(
core
)
test/cpp/ir/core/CMakeLists.txt
0 → 100644
浏览文件 @
70eade79
cc_test_old
(
type_test SRCS type_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_attribute_test SRCS ir_attribute_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_value_test SRCS ir_value_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_op_test SRCS ir_op_test.cc DEPS new_ir gtest
)
cc_test_old
(
ir_program_test
SRCS
ir_program_test.cc
DEPS
new_ir
pd_dialect
phi
gtest
)
file
(
DOWNLOAD
https://paddle-ci.gz.bcebos.com/ir_translator_test/restnet50_main.prog
${
CMAKE_CURRENT_BINARY_DIR
}
/restnet50_main.prog
EXPECTED_MD5 b64c0ad3c96d99fc37d12094623ce1ad
)
cc_test_old
(
program_translator_test
SRCS
program_translator_test.cc
DEPS
program_translator
gtest
new_ir
pd_dialect
)
test/cpp/ir/ir_attribute_test.cc
→
test/cpp/ir/
core/
ir_attribute_test.cc
浏览文件 @
70eade79
...
...
@@ -15,12 +15,12 @@
#include <gtest/gtest.h>
#include <map>
#include "paddle/ir/attribute.h"
#include "paddle/ir/attribute_base.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
attribute_base.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
TEST
(
attribute_test
,
attribute_base
)
{
class
AttributeA
{};
...
...
test/cpp/ir/ir_op_test.cc
→
test/cpp/ir/
core/
ir_op_test.cc
浏览文件 @
70eade79
...
...
@@ -14,12 +14,12 @@
#include <gtest/gtest.h>
#include "paddle/ir/builder.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/op_base.h"
#include "paddle/ir/
core/
builder.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
op_base.h"
/// \brief Define built-in Trait, derived from OpTraitBase.
class
ReadOnlyTrait
:
public
ir
::
OpTraitBase
<
ReadOnlyTrait
>
{
...
...
test/cpp/ir/ir_program_test.cc
→
test/cpp/ir/
core/
ir_program_test.cc
浏览文件 @
70eade79
...
...
@@ -17,12 +17,12 @@
#include "paddle/fluid/dialect/pd_dialect.h"
#include "paddle/fluid/dialect/pd_type.h"
#include "paddle/fluid/dialect/utils.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/builtin_op.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/program.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
builtin_op.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
program.h"
#include "paddle/ir/
core/
utils.h"
#include "paddle/phi/core/meta_tensor.h"
#include "paddle/phi/infermeta/binary.h"
#include "paddle/phi/kernels/elementwise_add_kernel.h"
...
...
test/cpp/ir/ir_value_test.cc
→
test/cpp/ir/
core/
ir_value_test.cc
浏览文件 @
70eade79
...
...
@@ -14,11 +14,11 @@
#include <gtest/gtest.h>
#include "paddle/ir/attribute.h"
#include "paddle/ir/builtin_attribute.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/
core/
attribute.h"
#include "paddle/ir/
core/
builtin_attribute.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
operation.h"
// This unittest is used to test the construction interfaces of value class and
// operation. The constructed test scenario is: a = OP1(); b = OP2(); c = OP3(a,
...
...
test/cpp/ir/program_translator_test.cc
→
test/cpp/ir/
core/
program_translator_test.cc
浏览文件 @
70eade79
...
...
@@ -23,10 +23,10 @@
#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/translator/translate.h"
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/program.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
program.h"
using
PaddleDialect
=
paddle
::
dialect
::
PaddleDialect
;
using
ProgramDesc
=
paddle
::
framework
::
ProgramDesc
;
...
...
test/cpp/ir/type_test.cc
→
test/cpp/ir/
core/
type_test.cc
浏览文件 @
70eade79
...
...
@@ -15,13 +15,13 @@
#include <gtest/gtest.h>
#include <unordered_map>
#include "paddle/ir/builtin_dialect.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/type.h"
#include "paddle/ir/type_base.h"
#include "paddle/ir/utils.h"
#include "paddle/ir/
core/
builtin_dialect.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
type.h"
#include "paddle/ir/
core/
type_base.h"
#include "paddle/ir/
core/
utils.h"
TEST
(
type_test
,
type_id
)
{
// Define two empty classes, just for testing.
...
...
test/cpp/pass/pass_manager_test.cc
浏览文件 @
70eade79
...
...
@@ -18,11 +18,11 @@
#include "glog/logging.h"
#include "paddle/ir/builtin_type.h"
#include "paddle/ir/dialect.h"
#include "paddle/ir/ir_context.h"
#include "paddle/ir/op_base.h"
#include "paddle/ir/operation.h"
#include "paddle/ir/
core/
builtin_type.h"
#include "paddle/ir/
core/
dialect.h"
#include "paddle/ir/
core/
ir_context.h"
#include "paddle/ir/
core/
op_base.h"
#include "paddle/ir/
core/
operation.h"
#include "paddle/pass/pass.h"
#include "paddle/pass/pass_manager.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录