[Mlir-commits] [mlir] [MLIR] Add DIExpression to LLVM dialect (PR #72462)

Jeff Niu llvmlistbot at llvm.org
Wed Nov 15 18:29:32 PST 2023


================
@@ -36,17 +36,17 @@ llvm.func @block_argument_value(%arg0: i64, %arg1: i1) -> i64 {
   // CHECK-NOT: = llvm.alloca
   %1 = llvm.alloca %0 x i64 {alignment = 8 : i64} : (i32) -> !llvm.ptr
   // CHECK-NOT: llvm.intr.dbg.declare
-  llvm.intr.dbg.declare #di_local_variable = %1 : !llvm.ptr
+  llvm.intr.dbg.declare #di_local_variable #llvm.di_expr<[]> = %1 : !llvm.ptr
----------------
Mogball wrote:

suggestion: can you omit the exprs if they're empty?

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


More information about the Mlir-commits mailing list