Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mlir][arith] Allow to specify
constFoldBinaryOp
result type
This enables us to use the common fold helpers on elementwise ops that produce different result type than operand types, e.g., `arith.cmpi` or `arith.addui_extended`. Use the updated helper to teach `arith.cmpi` to fold constant vectors. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D143779
- Loading branch information
Showing
4 changed files
with
130 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters