Skip to content

Commit

Permalink
[mlir][shape] DCE unimplemented extra decl (#121275)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Dec 29, 2024
1 parent 08e2c15 commit 8487d24
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,6 @@ def Shape_DimOp : Shape_Op<"dim",
let assemblyFormat = "$value `,` $index attr-dict `:` type($value) `,`"
"type($index) `->` type($extent)";

let builders = [
// Builder that allows passing a constant dimension as a simple integer.
OpBuilder<(ins "Value":$value, "int64_t":$index)>
];

let extraClassDeclaration = [{
/// Get the `index` value as integer if it is constant.
std::optional<int64_t> getConstantIndex();
Expand Down

0 comments on commit 8487d24

Please sign in to comment.