[PATCH] D114159: [flang][codegen] Add a conversion for `fir.coordinate_of` - part 1
    Diana Picus via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Nov 29 02:18:01 PST 2021
    
    
  
rovka added inline comments.
================
Comment at: flang/lib/Optimizer/CodeGen/CodeGen.cpp:2323
+        rewriter.create<mlir::LLVM::GEPOp>(
+            loc, mlir::LLVM::LLVMPointerType::get(llvmEleTy), args);
+      }
----------------
This still doesn't seem quite right. How are all these GEPs used? It seems you're just creating them, but then you're replacing the original coor with objectBaseAddr, so you're just going around the GEPs (i.e. the users of the coor will get objectBaseAddr instead of a GEP based on objectBaseAddr).
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D114159/new/
https://reviews.llvm.org/D114159
    
    
More information about the llvm-commits
mailing list