[flang-commits] [flang] 1d30036 - Adopt MLIR properties for attribute storage in Flang (NFC)
Mehdi Amini via flang-commits
flang-commits at lists.llvm.org
Tue Aug 22 11:04:09 PDT 2023
Author: Mehdi Amini
Date: 2023-08-22T11:03:36-07:00
New Revision: 1d3003668a513a078d483245bab0500976a849dc
URL: https://github.com/llvm/llvm-project/commit/1d3003668a513a078d483245bab0500976a849dc
DIFF: https://github.com/llvm/llvm-project/commit/1d3003668a513a078d483245bab0500976a849dc.diff
LOG: Adopt MLIR properties for attribute storage in Flang (NFC)
MLIR is deprecating the old behavior in LLVM 18.
Differential Revision: https://reviews.llvm.org/D158533
Added:
Modified:
flang/include/flang/Optimizer/CodeGen/CGOps.td
flang/include/flang/Optimizer/Dialect/FIRDialect.td
flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/CodeGen/CGOps.td b/flang/include/flang/Optimizer/CodeGen/CGOps.td
index 196d842613d1e0..35e70fa2ffa3fb 100644
--- a/flang/include/flang/Optimizer/CodeGen/CGOps.td
+++ b/flang/include/flang/Optimizer/CodeGen/CGOps.td
@@ -20,6 +20,7 @@ include "flang/Optimizer/Dialect/FIRTypes.td"
def fircg_Dialect : Dialect {
let name = "fircg";
let cppNamespace = "::fir::cg";
+ let usePropertiesForAttributes = 1;
}
// Base class for FIR CG operations.
diff --git a/flang/include/flang/Optimizer/Dialect/FIRDialect.td b/flang/include/flang/Optimizer/Dialect/FIRDialect.td
index 40501176a4683b..d0735bbeb2d3d8 100644
--- a/flang/include/flang/Optimizer/Dialect/FIRDialect.td
+++ b/flang/include/flang/Optimizer/Dialect/FIRDialect.td
@@ -26,6 +26,7 @@ def fir_Dialect : Dialect {
let cppNamespace = "::fir";
let useDefaultTypePrinterParser = 0;
let useDefaultAttributePrinterParser = 0;
+ let usePropertiesForAttributes = 1;
let dependentDialects = [
// Arith dialect provides FastMathFlagsAttr
// supported by some FIR operations.
diff --git a/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td b/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
index 018e187ed46e69..492e3337137cfa 100644
--- a/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
+++ b/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
@@ -39,6 +39,7 @@ def hlfir_Dialect : Dialect {
}];
let useDefaultTypePrinterParser = 1;
+ let usePropertiesForAttributes = 1;
let cppNamespace = "hlfir";
let dependentDialects = ["fir::FIROpsDialect"];
}
More information about the flang-commits
mailing list