llvm-project
ca38db79 - [CIR] Dispatch va_arg lowering via target CIRABIRewriteContext subclasses (#244977)

Commit
5 days ago
[CIR] Dispatch va_arg lowering via target CIRABIRewriteContext subclasses (#244977) #244116 included `clang/CIR/Dialect/Passes.h` from `TargetLowering/CIRABIRewriteContext.h` for `cir::CallConvTarget`, pulling in the generated `Passes.h.inc` (`MLIRCIRPassIncGen`) from a higher-level library and breaking builds when `CIRABIRewriteContext.cpp` compiles first. Keep `CallConvTarget` out of `TargetLowering` by dispatching non-ignored `cir.va_arg` lowering through a virtual `expandVAArg` hook on `CIRABIRewriteContext`, implemented by X86_64 and AMDGPU subclasses selected in `CallConvLoweringPass` (matching the structure of #244729). Fixes build failure on https://lab.llvm.org/buildbot/#/builders/sanitizer-windows. Assisted-by: Gemini
Author
Parents
Loading