Displaying 14 results from an estimated 14 matches for "dbgdeclareinst".
2016 May 29
1
How to find variable names from LLVM IR?
...)
name = V->getName();
else
{
const DILocalVariable* Var = NULL;
for (const_inst_iterator Iter = inst_begin(Func), End =
inst_end(Func); Iter != End; ++Iter)
{
if (const DbgDeclareInst* DbgDeclare =
dyn_cast<DbgDeclareInst>(&*Iter))
{
if (DbgDeclare->getAddress() == V) Var =
DbgDeclare->getVariable();
}
else if (const DbgValueInst* DbgValue =
dyn_cast<DbgValueInst>(&*Iter))...
2006 Apr 07
3
[LLVMdev] CVS Broken?
...classof
(const llvm::IntrinsicInst*)':
/Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77:
error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
/Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In
static member function 'static bool llvm::DbgDeclareInst::classof
(const llvm::IntrinsicInst*)':
/Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172:
error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
make[1]: *** [/Users/bocchino/llvm-checkin/obj/lib/VMCore/Debug/
Function.o] Error 1
Rob
Robert L. Bocchino...
2006 Apr 07
0
[LLVMdev] CVS Broken?
...vm::IntrinsicInst*)':
> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77: error:
> 'dbg_declare' is not a member of 'llvm::Intrinsic'
> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In static
> member function 'static bool llvm::DbgDeclareInst::classof(const
> llvm::IntrinsicInst*)':
> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172: error:
> 'dbg_declare' is not a member of 'llvm::Intrinsic'
> make[1]: *** [/Users/bocchino/llvm-checkin/obj/lib/VMCore/Debug/Function.o]
> Error 1
>...
2006 Apr 07
2
[LLVMdev] CVS Broken?
...)':
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77:
>> error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In
>> static member function 'static bool llvm::DbgDeclareInst::classof
>> (const llvm::IntrinsicInst*)':
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172:
>> error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
>> make[1]: *** [/Users/bocchino/llvm-checkin/obj/lib/VMCore/Debug/
>>...
2011 Jan 06
0
[LLVMdev] Null address pointer in llvm.dbg.declare
Hi,
I'm encountering a problem with llvm.dbg.declare. My code looks
basically like this:
if(DbgDeclareInst *dbg = dyn_cast<DbgDeclareInst>(&inst)) {
const Value* addr = dbg->getAddress();
const MDNode* mvar = dbg->getVariable();
...
}
While the MDNode (mvar) contains the correct information (name of the
variable, etc...), getAddress always returns NULL. Am I missing
something,...
2006 Apr 07
2
[LLVMdev] CVS Broken?
...occhino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77: error:
> >>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
> >>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In static
> >>> member function 'static bool llvm::DbgDeclareInst::classof(const
> >>> llvm::IntrinsicInst*)':
> >>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172: error:
> >>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
> >>> make[1]: *** [/Users/bocchino/llvm-checki...
2006 Apr 07
0
[LLVMdev] CVS Broken?
...t;> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77: error:
>>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
>>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In static
>>> member function 'static bool llvm::DbgDeclareInst::classof(const
>>> llvm::IntrinsicInst*)':
>>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172: error:
>>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
>>> make[1]: *** [/Users/bocchino/llvm-checkin/obj/lib/VMCore/Deb...
2011 Oct 17
0
[LLVMdev] Variable name from metadata
Closing this, found below links to get variable name.
http://groups.google.com/group/llvm-dev/browse_thread/thread/1a239f0d24db2b5c
http://markmail.org/message/fj5qg44vyjsdde7k#query:+page:1+mid:5zhmyncisenomcga+state:results
I could do following, to get the required information.
const CallInst *CI = dyn_cast<CallInst>(Insn);
int numoperands =
2006 Apr 07
0
[LLVMdev] CVS Broken?
...:
>>>>> 77: error:
>>>>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
>>>>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:
>>>>> In static
>>>>> member function 'static bool llvm::DbgDeclareInst::classof(const
>>>>> llvm::IntrinsicInst*)':
>>>>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:
>>>>> 172: error:
>>>>> 'dbg_declare' is not a member of 'llvm::Intrinsic'
>>>>> make[1]:...
2011 Oct 17
2
[LLVMdev] Variable name from metadata
Hi All,
Can we extract name of variable name from "MDNode" ?
1. Neither temp_MDNode->getName() nor temp_MDNode->getValueName() give me "global_int" which is name of a variable.
2. I tried below ways as well.
DIVariable DV(mdnode1);
Value *v = mdnode1->getOperand(0);//gives add 0x69
3. I have written below code to reach till variable name.
LLVMIname is
2019 Sep 20
2
Extra questions about HWASAN
Hi,
On Fri, Sep 20, 2019 at 6:48 AM Matthew Malcomson
<Matthew.Malcomson at arm.com> wrote:
>
> Hello again,
>
> I have been thinking more about the GCC implementation of hwasan and
> found a few more questions that I would really appreciate help with.
>
> ---
> I've noticed a match-all condition in the compiler inline
> instrumentation, but can't see
2006 Apr 07
2
[LLVMdev] CVS Broken?
...)':
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:77:
>> error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h: In
>> static member function 'static bool llvm::DbgDeclareInst::classof
>> (const llvm::IntrinsicInst*)':
>> /Users/bocchino/llvm-checkin/src/include/llvm/IntrinsicInst.h:172:
>> error: 'dbg_declare' is not a member of 'llvm::Intrinsic'
>> make[1]: *** [/Users/bocchino/llvm-checkin/obj/lib/VMCore/Debug/
>>...
2007 Dec 25
0
[LLVMdev] Using debug info in static analysis
On Dec 25, 2007, at 5:56 AM, Török Edwin wrote:
> I was looking at how to use debug info to find out original
> source:line
> for a certain function/variable in the llvm bytecode.
>
> I read http://llvm.org/docs/SourceLevelDebugging.html, and then I have
> looked in lib/Debugger/ProgramInfo.cpp.
> getFunction() looks useful, however I am not sure how to call it. I
>
2007 Dec 25
3
[LLVMdev] Using debug info in static analysis
Hi,
I was looking at how to use debug info to find out original source:line
for a certain function/variable in the llvm bytecode.
I read http://llvm.org/docs/SourceLevelDebugging.html, and then I have
looked in lib/Debugger/ProgramInfo.cpp.
getFunction() looks useful, however I am not sure how to call it. I have
a reference to a Function, however getFunction() takes
a GlobalVariable. I tried