[clang] [mlir] [CIR][OpenMP] Add host op filtering pass to CIR pipeline (PR #209592)

Jan Leyonberg via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 15 07:47:21 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:

We still need to get the information passed through. We could bundle things in a struct but I think having an extra parameter might be more clear since it has OpenMP in the parameter name instead of having to look inside a struct. I'm open to either solution if you have a preference. 

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


More information about the cfe-commits mailing list