[mlir] Flip Complex & SCF dialects to _Both (NFC)
authorJacques Pienaar <jpienaar@google.com>
Wed, 15 Dec 2021 16:21:38 +0000 (08:21 -0800)
committerJacques Pienaar <jpienaar@google.com>
Wed, 15 Dec 2021 16:21:38 +0000 (08:21 -0800)
Following
https://llvm.discourse.group/t/psa-ods-generated-accessors-will-change-to-have-a-get-prefix-update-you-apis/4476

mlir/include/mlir/Dialect/Complex/IR/ComplexBase.td
mlir/include/mlir/Dialect/SCF/SCFOps.td

index 3d14532..9981f69 100644 (file)
@@ -21,6 +21,7 @@ def Complex_Dialect : Dialect {
 
   let dependentDialects = ["arith::ArithmeticDialect", "StandardOpsDialect"];
   let hasConstantMaterializer = 1;
+  let emitAccessorPrefix = kEmitAccessorPrefix_Both;
 }
 
 #endif // COMPLEX_BASE
index 29e36cb..508d2aa 100644 (file)
@@ -21,6 +21,7 @@ def SCF_Dialect : Dialect {
   let name = "scf";
   let cppNamespace = "::mlir::scf";
   let dependentDialects = ["arith::ArithmeticDialect"];
+  let emitAccessorPrefix = kEmitAccessorPrefix_Both;
 }
 
 // Base class for SCF dialect ops.