[Mlir-commits] [flang] [mlir] [Flang][mlir] - Translation of delayed privatization for deferred target-tasks (PR #155348)
Pranav Bhandarkar
llvmlistbot at llvm.org
Wed Oct 15 13:30:51 PDT 2025
================
@@ -411,6 +411,13 @@ void createMLIRToLLVMPassPipeline(mlir::PassManager &pm,
// Add codegen pass pipeline.
fir::createDefaultFIRCodeGenPassPipeline(pm, config, inputFilename);
+
+ // Run a pass to prepare for translation of delayed privatization in the
+ // context of deferred target tasks.
+ addNestedPassConditionally<mlir::LLVM::LLVMFuncOp>(
+ pm, disableFirToLlvmIr, [&]() {
----------------
bhandarkar-pranav wrote:
Unfortunately, this information doesnt seem to be present in `MLIRToLLVMPassPipelineConfig`. At a later stage `OpenMPIRBuilder` picks it out of the attributes of the module. So, the option would be to add this information to `MLIRToLLVMPassPipelineConfig` structure. If you feel strongly about this, may I recommend we do this after this PR is in?
https://github.com/llvm/llvm-project/pull/155348
More information about the Mlir-commits
mailing list