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

Tobias Gysi llvmlistbot at llvm.org
Tue May 14 23:19:46 PDT 2024


================
@@ -296,8 +296,13 @@ static void testDebugInfoAttributes(MlirContext ctx) {
   mlirAttributeDump(mlirLLVMDILocalVariableAttrGet(ctx, compile_unit, foo, file,
                                                    1, 0, 8, di_type));
   // CHECK: #llvm.di_derived_type<{{.*}}>
+  // CHECK-NOT: dwarfAddressSpace
+  mlirAttributeDump(mlirLLVMDIDerivedTypeAttrGet(ctx, 0, bar, di_type, 64, 8, 0,
+                                                 -1, di_type));
----------------
gysit wrote:

```suggestion
                                                 MLIR_CAPI_DWARF_ADDRESS_SPACE_NULL, di_type));
```
nit: Can we use the "constant" here?

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


More information about the Mlir-commits mailing list