Skip to content

Commit

Permalink
[IR] Refine OP auto code gen (#54186)
Browse files Browse the repository at this point in the history
* refine auto gen

* refine code

* refine code

* fix bug

* fix bug

* fix bug

* fix bug

* fix bug

* fix bug
  • Loading branch information
zhangbo9674 authored May 30, 2023
1 parent 4bcb5cc commit 14425c0
Show file tree
Hide file tree
Showing 10 changed files with 528 additions and 300 deletions.
7 changes: 4 additions & 3 deletions paddle/fluid/dialect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ set(op_forward_yaml_file1
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/ops.parsed.yaml
)
set(op_forward_yaml_file2
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/static_ops.parsed.yaml
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/legacy_ops.parsed.yaml
)
set(op_backward_yaml_file1
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/backward_ops.parsed.yaml
)
set(op_backward_yaml_file2
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/static_backward.parsed.yaml
${PADDLE_SOURCE_DIR}/paddle/fluid/operators/generator/parsed_ops/legacy_backward_ops.parsed.yaml
)
set(op_yaml_file3 ${PADDLE_SOURCE_DIR}/paddle/fluid/dialect/pd_op.yaml)
set(op_yaml_files
${op_forward_yaml_file1},${op_forward_yaml_file2},${op_backward_yaml_file1},${op_backward_yaml_file2}
${op_forward_yaml_file1},${op_forward_yaml_file2},${op_backward_yaml_file1},${op_backward_yaml_file2},${op_yaml_file3}
)
set(op_namespace paddle,dialect)
set(dialect_name pd)
Expand Down
97 changes: 0 additions & 97 deletions paddle/fluid/dialect/legacy_pd_op.h

This file was deleted.

Loading

0 comments on commit 14425c0

Please sign in to comment.