Skip to content

Commit 99228e3

Browse files
committed
rm addition in cufops.td
1 parent 7c380e1 commit 99228e3

File tree

1 file changed

+1
-6
lines changed
  • flang/include/flang/Optimizer/Dialect/CUF

1 file changed

+1
-6
lines changed

flang/include/flang/Optimizer/Dialect/CUF/CUFOps.td

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class cuf_Op<string mnemonic, list<Trait> traits>
2828
: Op<CUFDialect, mnemonic, traits>;
2929

3030
def cuf_AllocOp : cuf_Op<"alloc", [AttrSizedOperandSegments,
31-
MemoryEffectsOpInterface]> {
31+
MemoryEffects<[MemAlloc]>]> {
3232
let summary = "Allocate an object on device";
3333

3434
let description = [{
@@ -63,11 +63,6 @@ def cuf_AllocOp : cuf_Op<"alloc", [AttrSizedOperandSegments,
6363
CArg<"mlir::ValueRange", "{}">:$shape,
6464
CArg<"llvm::ArrayRef<mlir::NamedAttribute>", "{}">:$attributes)>];
6565

66-
let extraClassDeclaration = [{
67-
void getEffects(
68-
llvm::SmallVectorImpl<mlir::MemoryEffects::EffectInstance> &effects);
69-
}];
70-
7166
let hasVerifier = 1;
7267
}
7368

0 commit comments

Comments
 (0)