You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Migrate CUDA-Q compiler and runtime from LLVM/MLIR 16 to LLVM/MLIR 22.1.
This encompasses 154 files with ~7,300 lines of changes across the
entire codebase, including op creation APIs, opaque pointer adoption,
interface refactors, Python binding migration, and build system updates.
Major Changes:
- Op Creation API: `builder.create<Op>(loc, ...)` → `Op::create(builder,
loc, ...)`
- Opaque Pointers: Migrate typed LLVM pointers to opaque pointers
(`!llvm.ptr`); remove element-type info from
LLVMPointerType::get()
- Rewrite Infrastructure: `PatternRewriter::updateRootInPlace` →
`modifyOpInPlace`; `applyPatternsAndFoldGreedily →
applyPatternsGreedily`
- Pass Macros: Update pass definition macros from `GEN_PASS_CLASSES` to
`GEN_PASS_DEF_*`
- Python Bindings: Fix cross-DSO registration, return value policies,
and type coercion
- Runtime: Update JIT compilation infrastructure, LLVM target APIs, and
argument conversion for opaque pointers
- Tests: Update FileCheck patterns, QIR CHECK directives, and clang
diagnostic verification for MLIR 22 output format changes
- Toolchains: Replace `gcc11`, `gcc12`, and `clang16`, with bootstrapped
`llvm` toolchain for CI testing. Follow up will work on re-enabling
cross-compiler `gcc12` toolchain (still used for wheel builds).
---------
Signed-off-by: boschmitt <7152025+boschmitt@users.noreply.github.com>
Signed-off-by: Renaud Kauffmann <rkauffmann@nvidia.com>
Signed-off-by: Sachin Pisal <spisal@nvidia.com>
Signed-off-by: Eric Schweitz <eschweitz@nvidia.com>
Signed-off-by: Adam Geller <adgeller@nvidia.com>
Signed-off-by: Adam T. Geller <adgeller@nvidia.com>
Co-authored-by: boschmitt <7152025+boschmitt@users.noreply.github.com>
Co-authored-by: Renaud Kauffmann <rkauffmann@nvidia.com>
Co-authored-by: Sachin Pisal <spisal@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
0 commit comments