diff options
author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2024-02-12 19:15:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 19:15:55 -0600 |
commit | 1af073a11cb2ae5a52205e66f33d0ec9bbcbb5e0 (patch) | |
tree | b5b0e5f878121770dba41aee957aa72079ecdf85 /flang/lib/Lower/Bridge.cpp | |
parent | bc66e0cf9feb8f3c38fa2e33850b6c6e5477fb21 (diff) | |
download | llvm-1af073a11cb2ae5a52205e66f33d0ec9bbcbb5e0.zip llvm-1af073a11cb2ae5a52205e66f33d0ec9bbcbb5e0.tar.gz llvm-1af073a11cb2ae5a52205e66f33d0ec9bbcbb5e0.tar.bz2 |
[flang][OpenMP] Pass semantics context to all generating functions in… (#81269)
… lower
The convention is to pass it after "symTable" if present, otherwise
after "converter":
- converter, symTable, semaCtx
- converter, semaCtx
This makes the interfaces more uniform---some of these functions were
already taking the semantics context, while others were not.
The context will be used in future patches.
Diffstat (limited to 'flang/lib/Lower/Bridge.cpp')
-rw-r--r-- | flang/lib/Lower/Bridge.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp index 7577c49..76e1272 100644 --- a/flang/lib/Lower/Bridge.cpp +++ b/flang/lib/Lower/Bridge.cpp @@ -2470,7 +2470,8 @@ private: // found ompDeviceCodeFound = ompDeviceCodeFound || - Fortran::lower::isOpenMPDeviceDeclareTarget(*this, getEval(), ompDecl); + Fortran::lower::isOpenMPDeviceDeclareTarget( + *this, bridge.getSemanticsContext(), getEval(), ompDecl); genOpenMPDeclarativeConstruct( *this, localSymbols, bridge.getSemanticsContext(), getEval(), ompDecl); builder->restoreInsertionPoint(insertPt); |