@@ -36,10 +36,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
3636 Returns the default memory space as an attribute.
3737 }],
3838 /*returnType=*/ "::mlir::ptr::MemorySpaceAttrInterface",
39- /*methodName=*/ "getDefaultMemorySpace",
40- /*args=*/ (ins),
41- /*methodBody=*/ [{}],
42- /*defaultImpl=*/ [{}]
39+ /*methodName=*/ "getDefaultMemorySpace"
4340 >,
4441 InterfaceMethod<
4542 /*desc=*/ [{
@@ -52,9 +49,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
5249 /*args=*/ (ins "::mlir::Type":$type,
5350 "::mlir::ptr::AtomicOrdering":$ordering,
5451 "::mlir::IntegerAttr":$alignment,
55- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
56- /*methodBody=*/ [{}],
57- /*defaultImpl=*/ [{}]
52+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
5853 >,
5954 InterfaceMethod<
6055 /*desc=*/ [{
@@ -67,9 +62,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
6762 /*args=*/ (ins "::mlir::Type":$type,
6863 "::mlir::ptr::AtomicOrdering":$ordering,
6964 "::mlir::IntegerAttr":$alignment,
70- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
71- /*methodBody=*/ [{}],
72- /*defaultImpl=*/ [{}]
65+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
7366 >,
7467 InterfaceMethod<
7568 /*desc=*/ [{
@@ -83,9 +76,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
8376 "::mlir::Type":$type,
8477 "::mlir::ptr::AtomicOrdering":$ordering,
8578 "::mlir::IntegerAttr":$alignment,
86- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
87- /*methodBody=*/ [{}],
88- /*defaultImpl=*/ [{}]
79+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
8980 >,
9081 InterfaceMethod<
9182 /*desc=*/ [{
@@ -100,9 +91,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
10091 "::mlir::ptr::AtomicOrdering":$successOrdering,
10192 "::mlir::ptr::AtomicOrdering":$failureOrdering,
10293 "::mlir::IntegerAttr":$alignment,
103- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
104- /*methodBody=*/ [{}],
105- /*defaultImpl=*/ [{}]
94+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
10695 >,
10796 InterfaceMethod<
10897 /*desc=*/ [{
@@ -116,16 +105,12 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
116105 /*methodName=*/ "isValidAddrSpaceCast",
117106 /*args=*/ (ins "::mlir::Type":$tgt,
118107 "::mlir::Type":$src,
119- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
120- /*methodBody=*/ [{}],
121- /*defaultImpl=*/ [{}]
108+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
122109 >,
123110 InterfaceMethod<
124111 /*desc=*/ [{
125112 This method checks if it's valid to perform a `ptrtoint` or `inttoptr`
126- op in the memory space. `CastValidity::InvalidSourceType` always refers
127- to the 'ptr-like' type and `CastValidity::InvalidTargetType` always
128- refers to the `int-like` type.
113+ op in the memory space.
129114 The first type is expected to be integer-like, while the second must be a
130115 ptr-like type.
131116 If `emitError` is non-null then the method is allowed to emit errors.
@@ -134,9 +119,7 @@ def MemorySpaceAttrInterface : AttrInterface<"MemorySpaceAttrInterface"> {
134119 /*methodName=*/ "isValidPtrIntCast",
135120 /*args=*/ (ins "::mlir::Type":$intLikeTy,
136121 "::mlir::Type":$ptrLikeTy,
137- "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError),
138- /*methodBody=*/ [{}],
139- /*defaultImpl=*/ [{}]
122+ "::llvm::function_ref<::mlir::InFlightDiagnostic()>":$emitError)
140123 >,
141124 ];
142125}
@@ -152,10 +135,7 @@ def MemorySpaceOpInterface : OpInterface<"MemorySpaceOpInterface"> {
152135 InterfaceMethod<
153136 /*desc=*/ "Returns the memory space of the op.",
154137 /*returnType=*/ "::mlir::ptr::MemorySpaceAttrInterface",
155- /*methodName=*/ "getMemorySpace",
156- /*args=*/ (ins),
157- /*methodBody=*/ [{}],
158- /*defaultImpl=*/ [{}]
138+ /*methodName=*/ "getMemorySpace"
159139 >,
160140 ];
161141}
0 commit comments