[Mlir-commits] [mlir] [MLIR][LLVM] add dwarfAddressSpace to DIDerivedType (PR #92043)

Christian Ulmann llvmlistbot at llvm.org
Tue May 14 22:39:37 PDT 2024


Dinistro wrote:

The roundtrip testing is meant a simple LLVM dialect roundtrip, in this specific case: https://github.com/llvm/llvm-project/blob/main/mlir/test/Dialect/LLVMIR/debuginfo.mlir

> I think using a signed integer to allow -1 to represent nullopt is the best choice, so I've implemented and tested that. I defined #define MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL -1 for the C API, please let me know if there is something better or more idiomatic.

I guess this is fine for the CAPI.

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


More information about the Mlir-commits mailing list