Skip to content

Commit

Permalink
Marked func::CallOp as legal in StableHLOToTTIRPass and in ArithToSta…
Browse files Browse the repository at this point in the history
…bleHLOPass
  • Loading branch information
kmitrovicTT committed Nov 5, 2024
1 parent 3dbf089 commit d425472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Conversion/StableHLOToTTIR/ArithToStableHLOPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ struct ConvertArithToStableHLOPass
target.addLegalOp<mlir::ModuleOp>();
target.addLegalOp<mlir::func::FuncOp>();
target.addLegalOp<mlir::func::ReturnOp>();
target.addLegalOp<mlir::func::CallOp>();

// For now keep the same type assuming StableHLO ops operate on builtin
// tensor.
Expand Down
1 change: 1 addition & 0 deletions lib/Conversion/StableHLOToTTIR/StableHLOToTTIRPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ struct ConvertStableHLOToTTIRPass
target.addLegalOp<mlir::ModuleOp>();
target.addLegalOp<mlir::func::FuncOp>();
target.addLegalOp<mlir::func::ReturnOp>();
target.addLegalOp<mlir::func::CallOp>();

// For now keep the same type assuming StableHLO ops operate on builtin
// tensor.
Expand Down

0 comments on commit d425472

Please sign in to comment.