This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Add OpenMP Conversion patterns
ClosedPublic

Authored by kiranchandramohan on Mar 16 2022, 5:39 AM.

Details

Summary

This patch adds the OpenMP conversion patterns to the FIR to LLVM
dialect lowering pass in Codegen. Appropriate legalization
conditions are also added. This ensures that a mix of FIR and OpenMP
dialects can be lowered to LLVM and OpenMP dialects. Also adds two
tests.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Co-authored-by: Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 16 2022, 5:39 AM
kiranchandramohan requested review of this revision.Mar 16 2022, 5:39 AM
This revision is now accepted and ready to land.Mar 16 2022, 5:41 AM
peixin accepted this revision.Mar 16 2022, 6:33 PM

Tested simple barrier construct. It works for tco with this patch now.

This revision was automatically updated to reflect the committed changes.