[clang] [CIR][OpenMP] Add host op filtering pass to CIR pipeline (PR #209592)
Jan Leyonberg via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 13:45:55 PDT 2026
================
@@ -5134,6 +5134,7 @@ void populateCIRToLLVMPasses(mlir::OpPassManager &pm) {
mlir::populateCIRPreLoweringPasses(pm);
pm.addPass(mlir::omp::createMarkDeclareTargetPass());
pm.addPass(createConvertCIRToLLVMPass());
+ pm.addPass(mlir::omp::createHostOpFilteringPass());
----------------
jsjodin wrote:
I turns out this is more complicated than expected since we don't have access to langOpts, and cir-opt would need a flag to enable OpenMP (maybe we want this?) to handle the guards. I will add it to the PR and then we can decide if it is better than just adding the passes.
https://github.com/llvm/llvm-project/pull/209592
More information about the cfe-commits
mailing list