Skip to content

Commit c495a9b

Browse files
authored
[mlir] Enable strict properties in assembly formats by default (#225742)
Make strict property assembly formats the default and remove redundant per-dialect settings. Keep legacy test fixtures explicitly opted out and update the documentation. Downstream can opt out for now using `let useStrictPropertiesInAssemblyFormat = 0;` ; This will be removed in a future release. Part of #155475 Assisted-by: Codex
1 parent e9e2743 commit c495a9b

66 files changed

Lines changed: 54 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎clang/include/clang/CIR/Dialect/IR/CIRDialect.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ include "mlir/IR/OpBase.td"
1717

1818
def CIR_Dialect : Dialect {
1919
let name = "cir";
20+
let useStrictPropertiesInAssemblyFormat = 0;
2021

2122
// A short one-line summary of our dialect.
2223
let summary = "A high-level dialect for analyzing and optimizing Clang "

‎flang/include/flang/Optimizer/Dialect/CUF/CUFDialect.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ include "mlir/IR/OpBase.td"
2020

2121
def CUFDialect : Dialect {
2222
let name = "cuf";
23+
let useStrictPropertiesInAssemblyFormat = 0;
2324

2425
let summary = "CUDA Fortran dialect";
2526

‎flang/include/flang/Optimizer/Dialect/FIRCG/CGOps.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ include "mlir/IR/BuiltinAttributes.td"
2222

2323
def fircg_Dialect : Dialect {
2424
let name = "fircg";
25+
let useStrictPropertiesInAssemblyFormat = 0;
2526
let cppNamespace = "::fir::cg";
2627
}
2728

‎flang/include/flang/Optimizer/Dialect/FIRDialect.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ include "mlir/Interfaces/SideEffectInterfaces.td"
2323

2424
def FIROpsDialect : Dialect {
2525
let name = "fir";
26+
let useStrictPropertiesInAssemblyFormat = 0;
2627
let cppNamespace = "::fir";
2728
let useDefaultTypePrinterParser = 0;
2829
let useDefaultAttributePrinterParser = 0;

‎flang/include/flang/Optimizer/Dialect/MIF/MIFDialect.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ include "mlir/IR/OpBase.td"
2020

2121
def MIFDialect : Dialect {
2222
let name = "mif";
23+
let useStrictPropertiesInAssemblyFormat = 0;
2324

2425
let summary = "Multi-Image Fortran dialect";
2526

‎flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ include "flang/Optimizer/Dialect/FIRTypes.td"
2121

2222
def hlfir_Dialect : Dialect {
2323
let name = "hlfir";
24+
let useStrictPropertiesInAssemblyFormat = 0;
2425

2526
let summary = "High Level Fortran IR.";
2627

‎mlir/docs/DefiningDialects/Operations.md‎

Lines changed: 8 additions & 12 deletions

‎mlir/docs/DefiningDialects/_index.md‎

Lines changed: 11 additions & 13 deletions

‎mlir/docs/ReleaseNotes.md‎

Lines changed: 12 additions & 0 deletions

‎mlir/examples/toy/Ch4/include/toy/Ops.td‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ include "toy/ShapeInferenceInterface.td"
2424
// can define our operations.
2525
def Toy_Dialect : Dialect {
2626
let name = "toy";
27+
let useStrictPropertiesInAssemblyFormat = 0;
2728
let cppNamespace = "::mlir::toy";
2829
}
2930

0 commit comments

Comments
 (0)