未验证 提交 d971a716 编写于 作者: A Aurelius84 提交者: GitHub

[NewIR]Refine shape dialect directory (#56313)

* [NewIR]Refine shape dialect directory

* modify IR into ir

* fix cmake

* fix typo
上级 02a7b3cc
......@@ -37,7 +37,7 @@ endfunction()
add_subdirectory(core)
add_subdirectory(pass)
add_subdirectory(pattern_rewrite)
add_subdirectory(builtin_transforms)
add_subdirectory(transforms)
add_subdirectory(dialect)
if(WIN32)
......
file(GLOB SHAPE_SRCS "*.cc")
ir_library(ir_shape SRCS ${SHAPE_SRCS} DEPS ir_core)
add_subdirectory(ir)
file(GLOB SHAPE_SRCS "*.cc")
ir_library(ir_shape SRCS ${SHAPE_SRCS} DEPS ir_core)
......@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/dialect/shape/shape_dialect.h"
#include "paddle/ir/dialect/shape/shape_op.h"
#include "paddle/ir/dialect/shape/ir/shape_dialect.h"
#include "paddle/ir/dialect/shape/ir/shape_op.h"
namespace ir {
namespace dialect {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/dialect/shape/shape_op.h"
#include "paddle/ir/dialect/shape/ir/shape_op.h"
#include "paddle/ir/core/builtin_attribute.h"
namespace ir {
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include "paddle/ir/builtin_transforms/dead_code_elimination_pass.h"
#include "paddle/ir/transforms/dead_code_elimination_pass.h"
#include "paddle/ir/core/builtin_op.h"
#include "paddle/ir/core/program.h"
......
......@@ -23,7 +23,6 @@
#include "paddle/fluid/ir/dialect/pd_attribute.h"
#include "paddle/fluid/ir/transforms/constant_folding_pass.h"
#include "paddle/fluid/ir/transforms/transform_general_functions.h"
#include "paddle/ir/builtin_transforms/dead_code_elimination_pass.h"
#include "paddle/ir/core/builder.h"
#include "paddle/ir/core/builtin_attribute.h"
#include "paddle/ir/core/builtin_dialect.h"
......@@ -42,6 +41,7 @@
#include "paddle/ir/pattern_rewrite/pattern_applicator.h"
#include "paddle/ir/pattern_rewrite/pattern_match.h"
#include "paddle/ir/pattern_rewrite/pattern_rewrite_driver.h"
#include "paddle/ir/transforms/dead_code_elimination_pass.h"
#include "paddle/phi/core/kernel_registry.h"
// NOTE(zhangbo9674): File pd_op.h is generated by op_gen.py, see details in
......
......@@ -19,8 +19,8 @@
#include "paddle/ir/core/dialect.h"
#include "paddle/ir/core/ir_context.h"
#include "paddle/ir/core/program.h"
#include "paddle/ir/dialect/shape/shape_dialect.h"
#include "paddle/ir/dialect/shape/shape_op.h"
#include "paddle/ir/dialect/shape/ir/shape_dialect.h"
#include "paddle/ir/dialect/shape/ir/shape_op.h"
TEST(assist_struct_test, symbolic_dim) {
ir::IrContext *ctx = ir::IrContext::Instance();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册