[Mlir-commits] [flang] [mlir] [flang][debug] generate llvm.fake.use for arguments at -g and O0 (PR #187044)

Abid Qadeer llvmlistbot at llvm.org
Thu Mar 19 08:39:20 PDT 2026


https://github.com/abidh approved this pull request.

I will do some testing with this as time allows but it looks good to me. Regarding adding alloca for argument, you may notice that OpenMP target function already get an alloca for arguments on device during mapping [here](https://github.com/llvm/llvm-project/blob/201d3547cce18d0bbd90a73df142d11ad52ea116/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp#L6400). Although this was not done for the debugging sake, but I have found this improves the debugging experience on the device.

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


More information about the Mlir-commits mailing list