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

William G Hatch llvmlistbot at llvm.org
Wed May 15 06:51:09 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));
----------------
willghatch wrote:

Thanks, I wrote the test before I decided to add the constant and forgot to circle back.

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


More information about the Mlir-commits mailing list