[flang-commits] [flang] [Flang][OpenMP] Run Flang-specific OpenMP MLIR passes in bbc (PR #66633)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Sep 18 04:44:18 PDT 2023


================
@@ -254,6 +254,24 @@ inline void createHLFIRToFIRPassPipeline(
   pm.addPass(hlfir::createConvertHLFIRtoFIRPass());
 }
 
+/// Create a pass pipeline for handling certain OpenMP transformations needed
+/// prior to FIR lowering.
+///
+/// WARNING: These passes must be run immediately after the lowering to ensure
+/// that the FIR is correct with respect to OpenMP operations/attributes.
----------------
kiranchandramohan wrote:

Can you add the WARNING also to the places where they are called so that it is more visible and others might not add a pass before it?

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


More information about the flang-commits mailing list