aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2023-02-07 09:22:47 +0100
committerJean Perier <jperier@nvidia.com>2023-02-07 09:23:09 +0100
commitab9c4e9fff272dd88c92a2d2f3a2e5c66e07e6e2 (patch)
tree42216a7518adfdfa7798fc4ce74a63d8dd1df895 /flang/lib/Frontend/CompilerInvocation.cpp
parentdda01632db12d3b11d8e2e21d73d438626cb0436 (diff)
downloadllvm-ab9c4e9fff272dd88c92a2d2f3a2e5c66e07e6e2.zip
llvm-ab9c4e9fff272dd88c92a2d2f3a2e5c66e07e6e2.tar.gz
llvm-ab9c4e9fff272dd88c92a2d2f3a2e5c66e07e6e2.tar.bz2
[flang][NFC] addSymbol/lookupSymbol clean-up
HLFIR requires mapping symbol to a single mlir::Value (produced by a fir::FortranVariableOpInterface), while the current lowering maps the value to a fir::ExtdendedValue. So far, the HLFIR symbol query was a special one. Hence, all the code directly using symMap.lookupSymbol and symMap.addSymbol did not work with the lowering to HLFIR. Refactor the code so that symbol lookup and add symbol go through the converter in a centralize place that handles the HLFIR case (translate fir::FortranVariableOpInterface to fir::ExtdendedValue in lookups, and generate hlfir.declare when adding symbols). In the refactoring, fir::FortranVariableOpInterface is added as a symbolBox variant to avoid special casing all lookups (shallowLookup...). Remove some unused SymbolBox member function instead of updating them. Differential Revision: https://reviews.llvm.org/D143395
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions