[Mlir-commits] [flang] [mlir] [mlir][acc] Add OffloadLiveInValueCanonicalization pass (PR #174671)
Razvan Lupusoru
llvmlistbot at llvm.org
Wed Jan 7 09:28:36 PST 2026
================
@@ -84,6 +86,11 @@ void registerOpenACCExtensions(mlir::DialectRegistry ®istry) {
PartialEntityAccessModel<hlfir::DeclareOp>>(*ctx);
});
+ // Register CUF operation interfaces
+ registry.addExtension(+[](mlir::MLIRContext *ctx, cuf::CUFDialect *dialect) {
+ cuf::KernelOp::attachInterface<OffloadRegionModel<cuf::KernelOp>>(*ctx);
----------------
razvanlupusoru wrote:
To move this to the cuf dialect (with the current implementation), it would require inclusion and dependency on acc dialect from CUF. I find the inclusion in the "extension" as a cleaner solution for now while this interface is in acc. What do you think?
https://github.com/llvm/llvm-project/pull/174671
More information about the Mlir-commits
mailing list