OpenMP standard (section 3.3 for OpenMP 5.2) requires that _OPENMP macro contains release date of given OpenMP standard version.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1003–1038 | Can this code be shared with bbc? I am assuming it is not possible to share the code with the clang driver. |
Scope of changes:
- Create one function common for bbc and Flang frontend to set _OPENMP macro
- Use setOpenMPmacro function inside Flang frontend and bbc source code.
Function is placed in flang/include/flang/Common/OpenMP-features.h header file. flang/include/flang/Common is directory which is shared between bbc and flang frontend.
flang/lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1003–1038 | Hi Kiran, You are right, that the possibility of code sharing between bbc and clang driver is limited. I observed that both tools use header files from directory`flang/include/flang/Common`. That's why I decided to create another header and place there function for setting _OPENMP macro. |
Can this code be shared with bbc?
I am assuming it is not possible to share the code with the clang driver.