Index: mlir/include/mlir/Interfaces/SideEffectInterfaces.td =================================================================== --- mlir/include/mlir/Interfaces/SideEffectInterfaces.td +++ mlir/include/mlir/Interfaces/SideEffectInterfaces.td @@ -49,28 +49,28 @@ // resource. An 'allocate' effect implies only allocation of the resource, and // not any visible mutation or dereference. class MemAlloc - : MemoryEffect<"MemoryEffects::Allocate", resource>; + : MemoryEffect<"::mlir::MemoryEffects::Allocate", resource>; def MemAlloc : MemAlloc; // The following effect indicates that the operation frees some resource that // has been allocated. A 'free' effect implies only de-allocation of the // resource, and not any visible allocation, mutation or dereference. class MemFree - : MemoryEffect<"MemoryEffects::Free", resource>; + : MemoryEffect<"::mlir::MemoryEffects::Free", resource>; def MemFree : MemFree; // The following effect indicates that the operation reads from some // resource. A 'read' effect implies only dereferencing of the resource, and // not any visible mutation. class MemRead - : MemoryEffect<"MemoryEffects::Read", resource>; + : MemoryEffect<"::mlir::MemoryEffects::Read", resource>; def MemRead : MemRead; // The following effect indicates that the operation writes to some // resource. A 'write' effect implies only mutating a resource, and not any // visible dereference or read. class MemWrite - : MemoryEffect<"MemoryEffects::Write", resource>; + : MemoryEffect<"::mlir::MemoryEffects::Write", resource>; def MemWrite : MemWrite; //===----------------------------------------------------------------------===// Index: mlir/test/mlir-tblgen/op-side-effects.td =================================================================== --- mlir/test/mlir-tblgen/op-side-effects.td +++ mlir/test/mlir-tblgen/op-side-effects.td @@ -25,13 +25,13 @@ // CHECK: void SideEffectOpA::getEffects // CHECK: for (::mlir::Value value : getODSOperands(0)) -// CHECK: effects.emplace_back(MemoryEffects::Read::get(), value, ::mlir::SideEffects::DefaultResource::get()); -// CHECK: effects.emplace_back(MemoryEffects::Read::get(), symbol(), ::mlir::SideEffects::DefaultResource::get()); -// CHECK: effects.emplace_back(MemoryEffects::Write::get(), flat_symbol(), ::mlir::SideEffects::DefaultResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Read::get(), value, ::mlir::SideEffects::DefaultResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Read::get(), symbol(), ::mlir::SideEffects::DefaultResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Write::get(), flat_symbol(), ::mlir::SideEffects::DefaultResource::get()); // CHECK: if (auto symbolRef = optional_symbolAttr()) -// CHECK: effects.emplace_back(MemoryEffects::Read::get(), symbolRef, ::mlir::SideEffects::DefaultResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Read::get(), symbolRef, ::mlir::SideEffects::DefaultResource::get()); // CHECK: for (::mlir::Value value : getODSResults(0)) -// CHECK: effects.emplace_back(MemoryEffects::Allocate::get(), value, CustomResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Allocate::get(), value, CustomResource::get()); // CHECK: void SideEffectOpB::getEffects -// CHECK: effects.emplace_back(MemoryEffects::Write::get(), CustomResource::get()); +// CHECK: effects.emplace_back(::mlir::MemoryEffects::Write::get(), CustomResource::get());