This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][OpenMP][OMPIRBuilder] Lower OpenMP version attributes to LLVM IR
ClosedPublic

Authored by domada on May 15 2023, 7:32 AM.

Details

Diff Detail

Event Timeline

domada created this revision.May 15 2023, 7:32 AM
Herald added a project: Restricted Project. · View Herald Transcript
domada requested review of this revision.May 15 2023, 7:32 AM
This revision is now accepted and ready to land.May 16 2023, 11:04 PM

OpenMP standard mentions that if implementation of OpenMP supports preprocessor then macro _OPENMP is defined to have value yyyymm, where yyyy denotes the year and mm denotes the month of OpenMP version release. (OpenMP standard 5.2 section 3.3).
Currently Flang has hard coded value of OpenMP 4.5 (see line: https://github.com/llvm/llvm-project/blob/main/flang/lib/Frontend/CompilerInvocation.cpp#L994 )
Shall I add information about other versions?

This revision was landed with ongoing or failed builds.May 19 2023, 4:50 AM
This revision was automatically updated to reflect the committed changes.