diff --git a/flang/include/flang/Optimizer/CodeGen/CGOps.td b/flang/include/flang/Optimizer/CodeGen/CGOps.td --- a/flang/include/flang/Optimizer/CodeGen/CGOps.td +++ b/flang/include/flang/Optimizer/CodeGen/CGOps.td @@ -20,6 +20,7 @@ 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 --- a/flang/include/flang/Optimizer/Dialect/FIRDialect.td +++ b/flang/include/flang/Optimizer/Dialect/FIRDialect.td @@ -26,6 +26,7 @@ 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 --- a/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td +++ b/flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td @@ -39,6 +39,7 @@ }]; let useDefaultTypePrinterParser = 1; + let usePropertiesForAttributes = 1; let cppNamespace = "hlfir"; let dependentDialects = ["fir::FIROpsDialect"]; }