[Mlir-commits] [flang] [llvm] [mlir] [MLIR][OpenMP] Handle privatization for global values in MLIR->LLVM translation (PR #104407)
Kareem Ergawy
llvmlistbot at llvm.org
Thu Aug 22 21:20:21 PDT 2024
================
@@ -1548,7 +1548,16 @@ IRBuilder<>::InsertPoint OpenMPIRBuilder::createParallel(
BasicBlock *CommonExit = nullptr;
SetVector<Value *> Inputs, Outputs, SinkingCands, HoistingCands;
Extractor.findAllocas(CEAC, SinkingCands, HoistingCands, CommonExit);
- Extractor.findInputsOutputs(Inputs, Outputs, SinkingCands);
+
+ Extractor.findInputsOutputs(Inputs, Outputs, SinkingCands,
+ /*CollectGlobalInputs=*/true);
+
+ Inputs.remove_if([&](Value *I) {
----------------
ergawy wrote:
@Leporacanthicus is it fine with you merging this PR? Let me know if you do not agree with my reply above.
https://github.com/llvm/llvm-project/pull/104407
More information about the Mlir-commits
mailing list