[Mlir-commits] [mlir] [mlir][LLVM] Improve lowering of `llvm.byval` function arguments (PR #100028)

Diego Caballero llvmlistbot at llvm.org
Tue Jul 23 09:21:59 PDT 2024


dcaballe wrote:

Good point! I see how that is automatically handled for my case... but that's may not be the cases in general.
We can address this by introducing a load (e.g., `%0 = llvm.load %arg0 : !llvm.ptr -> !llvm.struct<(...)>`) and replacing all the uses of the argument with it. IIRC, there was an easy way to do that for function arguments... Let me look into it. Thanks!

https://github.com/llvm/llvm-project/pull/100028


More information about the Mlir-commits mailing list