|
Revision tags: llvmorg-20.1.0, llvmorg-20.1.0-rc3, llvmorg-20.1.0-rc2, llvmorg-20.1.0-rc1, llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init |
|
| #
894641e9 |
| 25-Jul-2022 |
Christopher Bate <[email protected]> |
Revert "[mlir][Arithmetic] Add `arith.delinearize_index` operation"
This reverts commit 535b507ba58e8b5f604d53ffc961be1456d229a7.
|
| #
1ef32e78 |
| 25-Jul-2022 |
Marius Hillenbrand <[email protected]> |
[mlir][Arithmetic] Fix printing larger integer attributes in arith.const
For arith.constant operations of integer type, the operation generates result names that include the value of the constant (i
[mlir][Arithmetic] Fix printing larger integer attributes in arith.const
For arith.constant operations of integer type, the operation generates result names that include the value of the constant (i.e., the IntegerAttr that defines the constant's value). That code currently assumes integer widths of 64 bits or less and hits an assert with wider constants or would create truncated and potentially ambiguous names when built with assertions disabled.
To enable printing arith.constant ops for arbitrarily wide integer types, change to use the IntegerAttr's function getValue() when generating result names.
Also, add a regression test.
Reviewed By: bondhugula
Differential Revision: https://reviews.llvm.org/D129930
show more ...
|
| #
6fa6901b |
| 23-Jul-2022 |
Kazu Hirata <[email protected]> |
Use has_value instead of hasValue (NFC)
|
| #
535b507b |
| 20-Jul-2022 |
Christopher Bate <[email protected]> |
[mlir][Arithmetic] Add `arith.delinearize_index` operation
This change adds a new DelinearizeIndexOp to the `arith` dialect. The operation accepts an `index` type as well as a basis (array of index
[mlir][Arithmetic] Add `arith.delinearize_index` operation
This change adds a new DelinearizeIndexOp to the `arith` dialect. The operation accepts an `index` type as well as a basis (array of index values) representing how the index should be decomposed into a multi-index. The decomposition obeys a canonical semantic that treats the final basis element as "fastest varying" and the first basis element as "slowest varying". A naive lowering of the operation using a sequence of `arith.divui` and `arith.remui` operations is also given.
Differential Revision: https://reviews.llvm.org/D129697
show more ...
|
| #
917e4519 |
| 16-Jul-2022 |
Ivan Butygin <[email protected]> |
[mlir][arith] cmpi: move constant to the right side
Convert arith.cmpi to the canonical form with constants on the right side to simplify further optimizations and open more opportunities for CSE.
[mlir][arith] cmpi: move constant to the right side
Convert arith.cmpi to the canonical form with constants on the right side to simplify further optimizations and open more opportunities for CSE.
Differential Revision: https://reviews.llvm.org/D129929
show more ...
|
| #
b7f93c28 |
| 14-Jul-2022 |
Jeff Niu <[email protected]> |
[mlir] (NFC) run clang-format on all files
|
|
Revision tags: llvmorg-14.0.6 |
|
| #
c2828b63 |
| 12-Jun-2022 |
Mehdi Amini <[email protected]> |
Apply clang-tidy fixes for readability-identifier-naming in ArithmeticOps.cpp (NFC)
|
|
Revision tags: llvmorg-14.0.5, llvmorg-14.0.4 |
|
| #
5179f885 |
| 20-May-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Fold NegF in MulF and DivF.
This patch adds the following combination:
mulf(negf(x), negf(y)) -> mulf(x, y) divf(negf(x), negf(y)) -> divf(x, y)
Differential Revision: https://r
[mlir][Arithmetic] Fold NegF in MulF and DivF.
This patch adds the following combination:
mulf(negf(x), negf(y)) -> mulf(x, y) divf(negf(x), negf(y)) -> divf(x, y)
Differential Revision: https://reviews.llvm.org/D126044
show more ...
|
| #
19e28547 |
| 20-May-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Add constant folder for RemF.
This patch adds the constant folder for RemF.
Differential Revision: https://reviews.llvm.org/D126045
|
| #
10c9ecce |
| 20-May-2022 |
jacquesguan <[email protected]> |
[mlir][NFC] Replace some nested if with logical and.
This patch replaces some nested if statement with logical and to reduce the nesting depth.
Differential Revision: https://reviews.llvm.org/D1260
[mlir][NFC] Replace some nested if with logical and.
This patch replaces some nested if statement with logical and to reduce the nesting depth.
Differential Revision: https://reviews.llvm.org/D126050
show more ...
|
| #
0e02bf63 |
| 19-May-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] fold overlapping negf.
This patch folds negf(negf(x)) to x.
Differential Revision: https://reviews.llvm.org/D125955
|
|
Revision tags: llvmorg-14.0.3, llvmorg-14.0.2 |
|
| #
9b32886e |
| 22-Apr-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Use common constant fold function in RemSI and RemUI to cover splat.
This patch replaces current fold function with the common constant fold funtion in order to cover the situatio
[mlir][Arithmetic] Use common constant fold function in RemSI and RemUI to cover splat.
This patch replaces current fold function with the common constant fold funtion in order to cover the situation of constant splat.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D124236
show more ...
|
| #
abc17a67 |
| 22-Apr-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Use matchPattern to simplify code.
This patch replaces some code with matchPattern and move them before the constant folder function in order to avoid redundant invoking.
Differe
[mlir][Arithmetic] Use matchPattern to simplify code.
This patch replaces some code with matchPattern and move them before the constant folder function in order to avoid redundant invoking.
Differential Revision: https://reviews.llvm.org/D124235
show more ...
|
|
Revision tags: llvmorg-14.0.1 |
|
| #
605fc89a |
| 11-Apr-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Add common constant folder function for type cast ops.
This revision replaces current type cast constant folder with a new common type cast constant folder function template. It w
[mlir][Arithmetic] Add common constant folder function for type cast ops.
This revision replaces current type cast constant folder with a new common type cast constant folder function template. It will cover all former folder and support fold the constant splat and vector.
Differential Revision: https://reviews.llvm.org/D123489
show more ...
|
| #
bf62a4b9 |
| 03-Apr-2022 |
Mehdi Amini <[email protected]> |
Apply clang-tidy fixes for performance-move-const-arg in ArithmeticOps.cpp (NFC)
|
| #
920527f4 |
| 11-Apr-2022 |
jacquesguan <[email protected]> |
[mlir][NFC] Remove some redundant code.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D123487
|
| #
088d3889 |
| 08-Apr-2022 |
jacquesguan <[email protected]> |
[mlir][Arithmetic] Add constant folder for negf.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D123293
|
| #
e13d23bc |
| 21-Mar-2022 |
Markus Böck <[email protected]> |
[mlir] Rename `OpAsmParser::OperandType` to `OpAsmParser::UnresolvedOperand`
I am not sure about the meaning of Type in the name (was it meant be interpreted as Kind?), and given the importance and
[mlir] Rename `OpAsmParser::OperandType` to `OpAsmParser::UnresolvedOperand`
I am not sure about the meaning of Type in the name (was it meant be interpreted as Kind?), and given the importance and meaning of Type in the context of MLIR, its probably better to rename it. Given the comment in the source code, the suggestion in the GitHub issue and the final discussions in the review, this patch renames the OperandType to UnresolvedOperand.
Fixes https://github.com/llvm/llvm-project/issues/54446
Differential Revision: https://reviews.llvm.org/D122142
show more ...
|
| #
55053205 |
| 18-Mar-2022 |
jacquesguan <[email protected]> |
[mlir][Arith] Add constant folder for right shift
Differential Revision: https://reviews.llvm.org/D121985
|
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3 |
|
| #
06057248 |
| 08-Mar-2022 |
River Riddle <[email protected]> |
[mlir][NFC] Add various includes currently transitively found in BuiltinOps.h
These includes are going to be removed from BuiltinOps.h in a followup when FuncOp is moved out of the Builtin dialect.
[mlir][NFC] Add various includes currently transitively found in BuiltinOps.h
These includes are going to be removed from BuiltinOps.h in a followup when FuncOp is moved out of the Builtin dialect. This commit pre-emptively adds those includes to simplify the patch moving FuncOp.
show more ...
|
| #
51894cbb |
| 07-Mar-2022 |
Mehdi Amini <[email protected]> |
Apply clang-tidy fixes for performance-unnecessary-value-param to MLIR (NFC)
|
|
Revision tags: llvmorg-14.0.0-rc2 |
|
| #
2af81c69 |
| 26-Feb-2022 |
William S. Moses <[email protected]> |
[MLIR][Arith] Canonicalize cmpi of extui/extsi
Canonicalize cmpi(eq, ext a, ext b) and cmpi(ne, ext a, ext b)
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D120620
|
| #
db31da27 |
| 28-Feb-2022 |
William S. Moses <[email protected]> |
[MLIR][Arith] Add constant folder for left shift
Add constant folder for left shift
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D120661
|
| #
c26fcd1a |
| 01-Mar-2022 |
Max Kudryavtsev <[email protected]> |
[MLIR] [Arith] [NFC] Remove switch statement default label due to warning
We are getting compiler warning because default label is excessive. Removing it for now.
[[ http://lab.llvm.org:8011/#/buil
[MLIR] [Arith] [NFC] Remove switch statement default label due to warning
We are getting compiler warning because default label is excessive. Removing it for now.
[[ http://lab.llvm.org:8011/#/builders/61/builds/22782/steps/5/logs/warnings__2_ | view on buildbot ]]
``` /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp:1597:9: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default] ```
Related to: [[ https://reviews.llvm.org/D117257 | D117257 ]]
Reviewed By: stella.stamenova
Differential Revision: https://reviews.llvm.org/D120730
show more ...
|
| #
1b2a1f84 |
| 16-Feb-2022 |
William S. Moses <[email protected]> |
[MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi
Given a cmpf of either uitofp or sitofp and a constant, attempt to canonicalize it to a cmpi.
This PR rewrites equivalent code within LLVM to now
[MLIR][Arith] Canonicalize cmpf(int to fp) to cmpi
Given a cmpf of either uitofp or sitofp and a constant, attempt to canonicalize it to a cmpi.
This PR rewrites equivalent code within LLVM to now apply to MLIR arith.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D117257
show more ...
|