llvm/mlir
Mogball e7c7b16a84 [mlir] Region/BranchOpInterface: Allow implicit type conversions along control-flow edges
RegionBranchOpInterface and BranchOpInterface are allowed to make implicit type conversions along control-flow edges. In effect, this adds an interface method, `areTypesCompatible`, to both interfaces, which should return whether the types of corresponding successor operands and block arguments are compatible. Users of the interfaces, here on forth, must be aware that types may mismatch, although current users (in MLIR core), are not affected by this change. By default, type equality is used.

`async.execute` already has unequal types along control-flow edges (`!async.value<f32>` vs. `f32`), but it opted out of calling `RegionBranchOpInterface::verifyTypes` in its verifier. That method has now been removed and `RegionBranchOpInterface` will verify types along control edges by default in its verifier.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D120790
2022-03-04 20:33:14 +00:00
..
benchmark/python [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
cmake/modules [mlir] Add option to control python search priming 2022-03-01 14:52:56 -08:00
docs Revert "[mlir] Add extensible dialects" 2022-03-03 10:30:50 +00:00
examples [mlir][NFC] Remove several dead references to the old standard dialect 2022-03-01 14:02:24 -08:00
include [mlir] Region/BranchOpInterface: Allow implicit type conversions along control-flow edges 2022-03-04 20:33:14 +00:00
lib [mlir] Region/BranchOpInterface: Allow implicit type conversions along control-flow edges 2022-03-04 20:33:14 +00:00
python [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
test [mlir] Region/BranchOpInterface: Allow implicit type conversions along control-flow edges 2022-03-04 20:33:14 +00:00
tools [PDLL] Add support for tablegen includes and importing ODS information 2022-03-03 16:14:03 -08:00
unittests [mlir] Region/BranchOpInterface: Allow implicit type conversions along control-flow edges 2022-03-04 20:33:14 +00:00
utils [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
.clang-format
.clang-tidy
CMakeLists.txt [mlir] Add option to control python search priming 2022-03-01 14:52:56 -08:00
LICENSE.TXT
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.