From 8c93efccc80c9e214b1220e44c19d2fa250233c5 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Thu, 22 Aug 2024 13:36:32 +0100 Subject: [PATCH] Add `mlir-translate` as an MLIR compiler (#6355) This is already installed and provides a convenient way to convert MLIR to LLVM IR. --------- Co-authored-by: Patrick Quist --- etc/config/mlir.amazon.properties | 18 ++++++++---------- etc/config/mlir.defaults.properties | 12 +++++++++++- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/etc/config/mlir.amazon.properties b/etc/config/mlir.amazon.properties index 928613194..3436de66f 100644 --- a/etc/config/mlir.amazon.properties +++ b/etc/config/mlir.amazon.properties @@ -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) @@ -23,13 +28,6 @@ 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 -group.mlirtranslate.compilers=mlirtranslate1400:mlirtranslate1405:mlirtranslate1600:mlirtranslatetrunk -group.mlirtranslate.isSemVer=true -group.mlirtranslate.baseName=MLIR Translate -group.mlirtranslate.licenseName=LLVM Apache 2 -group.mlirtranslate.licenseLink=https://github.com/llvm/llvm-project/blob/main/mlir/LICENSE.TXT -group.mlirtranslate.licensePreamble=The LLVM Project is under the Apache License v2.0 with LLVM Exceptions - compiler.mlirtranslatetrunk.exe=/opt/compiler-explorer/mlir-trunk/bin/mlir-translate compiler.mlirtranslatetrunk.semver=(trunk) compiler.mlirtranslatetrunk.isNightly=true diff --git a/etc/config/mlir.defaults.properties b/etc/config/mlir.defaults.properties index 30122f89b..c9b74df82 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,15 @@ group.mliropt.compilers=mliropt14 group.mliropt.isSemVer=true group.mliropt.baseName=MLIR opt +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