[PATCH] D29673: [DebugInfo] Append extended dereferencing mechanism to variables' DIExpression for targets that support more than one address space
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 12:45:17 PST 2017
aprantl added inline comments.
================
Comment at: lib/CodeGen/CGDebugInfo.cpp:3187
+ unsigned AddressSpace,
+ SmallVector<int64_t, 9> &Expr) const {
+ Expr.push_back(llvm::dwarf::DW_OP_constu);
----------------
MutableArrayRef?
================
Comment at: test/CodeGenOpenCL/debugger-amdgpu-variable-locations.cl:49
+// CHECK-DAG: call void @llvm.dbg.declare(metadata i32 addrspace(2)** %KernelArg1.addr, metadata !{{[0-9]+}}, metadata ![[ADDRSPACE0]])
+// CHECK-DAG: call void @llvm.dbg.declare(metadata i32 addrspace(3)** %KernelArg2.addr, metadata !{{[0-9]+}}, metadata ![[ADDRSPACE0]])
+kernel void kernel1(global int *KernelArg0,
----------------
Does this work in a noasserts build where most names are stripped from IR?
https://reviews.llvm.org/D29673
More information about the llvm-commits
mailing list