Add MLIR 16.0.0 (#4892)

This commit is contained in:
Patrick Quist
2023-03-30 18:20:56 +02:00
committed by GitHub
parent 2f6902a536
commit 4774334493
2 changed files with 5 additions and 3 deletions

View File

@@ -1,18 +1,20 @@
compilers=&mliropt
defaultCompiler=mliropt1405
defaultCompiler=mliropt1600
compilerType=mlir
supportsBinary=false
supportsExecute=false
supportsAsmDocs=false
group.mliropt.compilers=mliropt1400:mliropt1405
group.mliropt.compilers=mliropt1400:mliropt1405:mliropt1600
group.mliropt.isSemVer=true
group.mliropt.baseName=MLIR opt
group.mliropt.licenseName=LLVM Apache 2
group.mliropt.licenseLink=https://github.com/llvm/llvm-project/blob/main/mlir/LICENSE.TXT
group.mliropt.licensePreamble=The LLVM Project is under the Apache License v2.0 with LLVM Exceptions
compiler.mliropt1600.exe=/opt/compiler-explorer/mlir-16.0.0/bin/mlir-opt
compiler.mliropt1600.semver=16.0.0
compiler.mliropt1405.exe=/opt/compiler-explorer/mlir-14.0.5/bin/mlir-opt
compiler.mliropt1405.semver=14.0.5
compiler.mliropt1400.exe=/opt/compiler-explorer/mlir-14.0.0/bin/mlir-opt

View File

@@ -2,7 +2,7 @@
// MLIR example code may not always work out of the box because the textual MLIR format is not stable.
// The example tries to be compatible with the latest MLIR version, which may not work on previous versions.
func @affine_parallel_with_reductions_i64(%arg0: memref<3x3xi64>, %arg1: memref<3x3xi64>) -> (i64, i64) {
func.func @affine_parallel_with_reductions_i64(%arg0: memref<3x3xi64>, %arg1: memref<3x3xi64>) -> (i64, i64) {
%0:2 = affine.parallel (%kx, %ky) = (0, 0) to (2, 2) reduce ("addi", "muli") -> (i64, i64) {
%1 = affine.load %arg0[%kx, %ky] : memref<3x3xi64>
%2 = affine.load %arg1[%kx, %ky] : memref<3x3xi64>