skc7 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?

https://github.com/llvm/llvm-project/pull/244116
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to