From 139495287cc1f47ec5bda6acab8797df89170420 Mon Sep 17 00:00:00 2001 From: MacDue Date: Sun, 14 Apr 2024 23:09:55 +0100 Subject: [PATCH 1/2] Add `mlir-translate` as an MLIR compiler This is already installed and provides a convenient way to convert MLIR to LLVM IR. --- etc/config/mlir.amazon.properties | 23 +++++++++++++++++++---- etc/config/mlir.defaults.properties | 9 ++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/etc/config/mlir.amazon.properties b/etc/config/mlir.amazon.properties index ddf432b4eb2..3436de66f49 100644 --- a/etc/config/mlir.amazon.properties +++ b/etc/config/mlir.amazon.properties @@ -1,4 +1,4 @@ -compilers=&mliropt +compilers=&mliropt:&mlirtranslate defaultCompiler=mliropt1600 compilerType=mlir @@ -6,12 +6,17 @@ supportsBinary=false supportsExecute=false supportsAsmDocs=false +licenseName=LLVM Apache 2 +licenseLink=https://github.com/llvm/llvm-project/blob/main/mlir/LICENSE.TXT +licensePreamble=The LLVM Project is under the Apache License v2.0 with LLVM Exceptions + group.mliropt.compilers=mliropt1400:mliropt1405:mliropt1600:mliropttrunk 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 + +group.mlirtranslate.compilers=mlirtranslate1400:mlirtranslate1405:mlirtranslate1600:mlirtranslatetrunk +group.mlirtranslate.isSemVer=true +group.mlirtranslate.baseName=MLIR translate compiler.mliropttrunk.exe=/opt/compiler-explorer/mlir-trunk/bin/mlir-opt compiler.mliropttrunk.semver=(trunk) @@ -22,3 +27,13 @@ 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 compiler.mliropt1400.semver=14.0.0 + +compiler.mlirtranslatetrunk.exe=/opt/compiler-explorer/mlir-trunk/bin/mlir-translate +compiler.mlirtranslatetrunk.semver=(trunk) +compiler.mlirtranslatetrunk.isNightly=true +compiler.mlirtranslate1600.exe=/opt/compiler-explorer/mlir-16.0.0/bin/mlir-translate +compiler.mlirtranslate1600.semver=16.0.0 +compiler.mlirtranslate1405.exe=/opt/compiler-explorer/mlir-14.0.5/bin/mlir-translate +compiler.mlirtranslate1405.semver=14.0.5 +compiler.mlirtranslate1400.exe=/opt/compiler-explorer/mlir-14.0.0/bin/mlir-translate +compiler.mlirtranslate1400.semver=14.0.0 diff --git a/etc/config/mlir.defaults.properties b/etc/config/mlir.defaults.properties index 30122f89ba8..c74a7a15b3c 100644 --- a/etc/config/mlir.defaults.properties +++ b/etc/config/mlir.defaults.properties @@ -1,4 +1,4 @@ -compilers=&mliropt +compilers=&mliropt:&mlirtranslate defaultCompiler=mliropt14 compilerType=mlir @@ -10,5 +10,12 @@ group.mliropt.compilers=mliropt14 group.mliropt.isSemVer=true group.mliropt.baseName=MLIR opt +group.mlirtranslate.compilers=mlirtranslate14 +group.mlirtranslate.isSemVer=true +group.mlirtranslate.baseName=MLIR translate + compiler.mliropt14.exe=/usr/bin/mlir-opt-14 compiler.mliropt14.semver=14.0.0 + +compiler.mlirtranslate14.exe=/usr/bin/mlir-translate-14 +compiler.mlirtranslate14.semver=14.0.0 From 3bdd08632da7318cf9dda6f46d4f3999c7573a8e Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Thu, 16 May 2024 09:43:41 +0100 Subject: [PATCH 2/2] Add trunk to local mlir-translate config --- etc/config/mlir.defaults.properties | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/config/mlir.defaults.properties b/etc/config/mlir.defaults.properties index c74a7a15b3c..c9b74df823c 100644 --- a/etc/config/mlir.defaults.properties +++ b/etc/config/mlir.defaults.properties @@ -10,12 +10,15 @@ group.mliropt.compilers=mliropt14 group.mliropt.isSemVer=true group.mliropt.baseName=MLIR opt -group.mlirtranslate.compilers=mlirtranslate14 +group.mlirtranslate.compilers=mlirtranslate14:mlirtranslatetrunk group.mlirtranslate.isSemVer=true group.mlirtranslate.baseName=MLIR translate compiler.mliropt14.exe=/usr/bin/mlir-opt-14 compiler.mliropt14.semver=14.0.0 +compiler.mlirtranslatetrunk.exe=/usr/bin/mlir-translate +compiler.mlirtranslatetrunk.semver=(trunk) +compiler.mlirtranslatetrunk.isNightly=true compiler.mlirtranslate14.exe=/usr/bin/mlir-translate-14 compiler.mlirtranslate14.semver=14.0.0