[flang-commits] [flang] [flang][hlfir] Alias analysis for host associated accesses. (PR #65919)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Mon Sep 11 08:24:10 PDT 2023
================
@@ -73,13 +73,11 @@ static void bindCapturedSymbol(const Fortran::semantics::Symbol &sym,
fir::ExtendedValue val,
Fortran::lower::AbstractConverter &converter,
Fortran::lower::SymMap &symMap) {
- if (converter.getLoweringOptions().getLowerToHighLevelFIR()) {
- // TODO: add an indication that this is a host variable in the declare to
- // allow alias analysis to detect this case.
+ converter.addHostAssocSymbol(&sym);
+ if (converter.getLoweringOptions().getLowerToHighLevelFIR())
Fortran::lower::genDeclareSymbol(converter, symMap, sym, val);
----------------
vzakhari wrote:
I just wanted to keep all the attributes computation in `translateSymbolAttributes`, but I can achieve the same by threading the extra flags to it. I will do it. Thank you!
https://github.com/llvm/llvm-project/pull/65919
More information about the flang-commits
mailing list