Displaying 4 results from an estimated 4 matches for "dbgvalueinst".
2017 Nov 22
2
Retrieving DbgInfoIntrinsics for a given value
Hi LLVM,
If I have an llvm value "<16 x float> addrspace(1)* %in", and in the LLVM
IR, there is a @llvm.dbg.value like:
call void @llvm.dbg.value(metadata <16 x float> addrspace(1)* %in, i64 0,
metadata !216, metadata !28), !dbg !217
How I can retrieve this @llvm.dbg.value when I have "%in"?
Since Metadata is not a part of the uselist anymore, is there some way
2016 May 29
1
How to find variable names from LLVM IR?
...)
{
if (const DbgDeclareInst* DbgDeclare =
dyn_cast<DbgDeclareInst>(&*Iter))
{
if (DbgDeclare->getAddress() == V) Var =
DbgDeclare->getVariable();
}
else if (const DbgValueInst* DbgValue =
dyn_cast<DbgValueInst>(&*Iter))
{
if (DbgValue->getValue() == V) Var =
DbgValue->getVariable();
}
}
name = Var->getName();
}
errs() <&...
2013 Jul 22
0
[LLVMdev] [RFC] Add warning capabilities in LLVM.
...a DIVariable).
- The structure is this:
struct Msg {
const char *Message;
Function *F; // If nothing else, we can extract a useful name from here, hopefully.
SmallVector<DIDescriptor, 2> DIs; // Should be DIDescriptor* ?
};
Then, in the backend, we can look for a DbgValueInst associated with the variable that we want (similar for scopes), and push a DIScope, DIVariable, etc. onto the array, one for every <debug/> in the message string. The frontend can then render these references in whatever way seems most appropriate (which may include things like making them in...
2013 Jul 22
4
[LLVMdev] [RFC] Add warning capabilities in LLVM.
On Sat, Jul 20, 2013 at 9:15 PM, Chris Lattner <clattner at apple.com> wrote:
> Sorry, just getting caught up on an old thread. I haven't been involved in discussions of this.
>
> On Jul 17, 2013, at 8:53 AM, Bob Wilson <bob.wilson at apple.com> wrote:
>> First, let me try to clarify my proposal, in case there was any confusion about that. LLVMContext already has a