[Mlir-commits] [mlir] 72686d6 - [mlir] Explicitly mark dialect prefixing
Jacques Pienaar
llvmlistbot at llvm.org
Thu Jul 21 12:58:26 PDT 2022
Author: Jacques Pienaar
Date: 2022-07-21T12:58:19-07:00
New Revision: 72686d68c137551cce816416190a18d45b4d4e2a
URL: https://github.com/llvm/llvm-project/commit/72686d68c137551cce816416190a18d45b4d4e2a
DIFF: https://github.com/llvm/llvm-project/commit/72686d68c137551cce816416190a18d45b4d4e2a.diff
LOG: [mlir] Explicitly mark dialect prefixing
Missed previously and needed to flip the default. Most of these just
flipped to _Raw to retain existing state/keep this small except for TOSA
dialect which got flipped to _Both as no further change was needed..
Added:
Modified:
mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
mlir/test/mlir-tblgen/interfaces-as-constraints.td
mlir/test/mlir-tblgen/op-attribute.td
mlir/test/mlir-tblgen/op-operand.td
mlir/test/mlir-tblgen/op-result.td
mlir/test/mlir-tblgen/op-side-effects.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
index 70cd3153d039..2337e382a123 100644
--- a/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
+++ b/mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
@@ -27,6 +27,9 @@ def OpenACC_Dialect : Dialect {
let useDefaultAttributePrinterParser = 1;
let cppNamespace = "::mlir::acc";
+
+ // TODO: Flip to _Prefixed.
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
// AccCommon requires definition of OpenACC_Dialect.
diff --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
index 3ee3aa1363e9..d2a232b08019 100644
--- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
@@ -28,6 +28,9 @@ def OpenMP_Dialect : Dialect {
let cppNamespace = "::mlir::omp";
let dependentDialects = ["::mlir::LLVM::LLVMDialect"];
let useDefaultAttributePrinterParser = 1;
+
+ // TODO: Flip to _Prefixed.
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
// OmpCommon requires definition of OpenACC_Dialect.
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
index 0f0898321a32..6695d179ef1a 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOpBase.td
@@ -45,6 +45,9 @@ def Tosa_Dialect : Dialect {
let cppNamespace = "mlir::tosa";
let hasConstantMaterializer = 1;
let useDefaultAttributePrinterParser = 1;
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Both;
}
//===----------------------------------------------------------------------===//
diff --git a/mlir/test/mlir-tblgen/interfaces-as-constraints.td b/mlir/test/mlir-tblgen/interfaces-as-constraints.td
index 5963dd8bb8ac..34c42d2dc41b 100644
--- a/mlir/test/mlir-tblgen/interfaces-as-constraints.td
+++ b/mlir/test/mlir-tblgen/interfaces-as-constraints.td
@@ -4,6 +4,9 @@ include "mlir/IR/OpBase.td"
def Test_Dialect : Dialect {
let name = "test";
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
def TopLevelTypeInterface : TypeInterface<"TopLevelTypeInterface">;
diff --git a/mlir/test/mlir-tblgen/op-attribute.td b/mlir/test/mlir-tblgen/op-attribute.td
index 354e0d79a4ea..91476f545580 100644
--- a/mlir/test/mlir-tblgen/op-attribute.td
+++ b/mlir/test/mlir-tblgen/op-attribute.td
@@ -9,6 +9,9 @@ include "mlir/IR/OpBase.td"
def Test_Dialect : Dialect {
let name = "test";
let cppNamespace = "foobar";
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
class NS_Op<string mnemonic, list<Trait> traits> :
Op<Test_Dialect, mnemonic, traits>;
diff --git a/mlir/test/mlir-tblgen/op-operand.td b/mlir/test/mlir-tblgen/op-operand.td
index ff98146755af..7e2c2c55e0a4 100644
--- a/mlir/test/mlir-tblgen/op-operand.td
+++ b/mlir/test/mlir-tblgen/op-operand.td
@@ -4,6 +4,9 @@ include "mlir/IR/OpBase.td"
def Test_Dialect : Dialect {
let name = "test";
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
class NS_Op<string mnemonic, list<Trait> traits> :
Op<Test_Dialect, mnemonic, traits>;
diff --git a/mlir/test/mlir-tblgen/op-result.td b/mlir/test/mlir-tblgen/op-result.td
index 5955dcd0c418..3791d82257f3 100644
--- a/mlir/test/mlir-tblgen/op-result.td
+++ b/mlir/test/mlir-tblgen/op-result.td
@@ -5,6 +5,9 @@ include "mlir/Interfaces/InferTypeOpInterface.td"
def Test_Dialect : Dialect {
let name = "test";
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
class NS_Op<string mnemonic, list<Trait> traits> :
Op<Test_Dialect, mnemonic, traits>;
diff --git a/mlir/test/mlir-tblgen/op-side-effects.td b/mlir/test/mlir-tblgen/op-side-effects.td
index fd354e22284d..574b7be61735 100644
--- a/mlir/test/mlir-tblgen/op-side-effects.td
+++ b/mlir/test/mlir-tblgen/op-side-effects.td
@@ -4,6 +4,9 @@ include "mlir/Interfaces/SideEffectInterfaces.td"
def TEST_Dialect : Dialect {
let name = "test";
+
+ // TODO: Flip to _Prefixed
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
class TEST_Op<string mnemonic, list<Trait> traits = []> :
Op<TEST_Dialect, mnemonic, traits>;
More information about the Mlir-commits
mailing list