This is an archive of the discontinued LLVM Phabricator instance.

[mlir][OpenMP] Added omp.atomic.read lowering
ClosedPublic

Authored by shraiysh on Dec 5 2021, 11:48 PM.

Details

Summary

This patch adds lowering from omp.atomic.read to LLVM IR along with the
memory ordering clause. Tests for the same are also added.

Diff Detail

Event Timeline

shraiysh created this revision.Dec 5 2021, 11:48 PM
shraiysh requested review of this revision.Dec 5 2021, 11:48 PM
shraiysh updated this revision to Diff 391975.Dec 5 2021, 11:49 PM

Added new line at EOF

ftynse accepted this revision.Dec 6 2021, 4:33 AM
ftynse added inline comments.
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
795

There's llvm::StringSwitch for this purpose.

826

Nit: please terminate comments with a full stop.

This revision is now accepted and ready to land.Dec 6 2021, 4:33 AM
shraiysh updated this revision to Diff 392278.Dec 6 2021, 9:19 PM

Addressed comments

shraiysh marked 2 inline comments as done.Dec 6 2021, 9:19 PM
This revision was automatically updated to reflect the committed changes.