[clang] [CIR] Lower va_arg for AMDGPU in CallConvLowering (PR #244116)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 00:30:41 PST 2026


vitalybuka wrote:

> > `MLIRCIRTargetLowering` is a lower-level library linked into `MLIRCIRTransforms`, whereas `clang/CIR/Dialect/Passes.h` declares pass entrypoints for `MLIRCIRTransforms` and includes the generated `clang/CIR/Dialect/Passes.h.inc` (`MLIRCIRPassIncGen`).
> > Including `clang/CIR/Dialect/Passes.h` from `TargetLowering/CIRABIRewriteContext.h` for `cir::CallConvTarget` breaks that layering and fails the build when `CIRABIRewriteContext.cpp` is compiled before `MLIRCIRPassIncGen` runs:
> > https://lab.llvm.org/buildbot/#/builders/sanitizer-windows
> > Please fix or revert.
> 
> #244729 replaces the target switch in `CIRABIRewriteContext` with per target subclasses, so once it's rebased on main , context no longer needs `CallConvTarget` or the `Passes.h` include. It should land soon.
> 
> @vitalybuka Is it ok to wait for that, or would you prefer a small fix PR now?

Why not revert and reland in proper order?

https://github.com/llvm/llvm-project/pull/244116


More information about the cfe-commits mailing list