[all-commits] [llvm/llvm-project] 3b3b55: [mlir][NVVM] Add managed attribute for global vari...

Zhen Wang via All-commits all-commits at lists.llvm.org
Wed Apr 1 11:18:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b3b556a12a79109785394233779d89982068705
      https://github.com/llvm/llvm-project/commit/3b3b556a12a79109785394233779d89982068705
  Author: Zhen Wang <zhenw at nvidia.com>
  Date:   2026-04-01 (Wed, 01 Apr 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
    M mlir/lib/Target/LLVMIR/Dialect/NVVM/NVVMToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/nvvmir.mlir

  Log Message:
  -----------
  [mlir][NVVM] Add managed attribute for global variables (#189751)

Add support for the `nvvm.managed` attribute on `llvm.mlir.global` ops.
When present, the LLVM IR translation emits `!nvvm.annotations` metadata
with `!"managed"` for the global variable, which the NVPTX backend uses
to generate `.attribute(.managed)` in PTX output.

This enables CUDA managed memory support for frontends that lower
through MLIR.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list