[PATCH] D74211: [mlir] use unpacked memref descriptors at function boundaries

Nagy Mostafa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 11:31:00 PST 2020


nmostafa added inline comments.


================
Comment at: mlir/docs/ConversionToLLVMDialect.md:268
+```mlir
+func @foo(%arg0: memref<?xf32>) -> () {
+  "use"(%arg0) : (memref<?xf32>) -> ()
----------------
Can you add an example for how UnrankedMemRef gets unpacked as well ? 

Also, IIUC, if we are passing UnrankedMemRefDescriptor arguments in a loop, we still might exhaust the stack, since we still alloca, copy the MemRefDescriptor and pack the rank and alloca ptr into the UnrankedMemRef struct. Correct ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74211/new/

https://reviews.llvm.org/D74211





More information about the llvm-commits mailing list