search for: global_variable_begin

Displaying 4 results from an estimated 4 matches for "global_variable_begin".

2010 Mar 16
4
[LLVMdev] Replacement for findStopPoint() in LLVM 2.7
...s! This appears to work. I also have code that looks up debug information for GlobalVariables and regular LLVM Value *'s. For the former, I think I can look up their debug information by using the DebugInfoFinder class and iterating through all the MDNodes for global variables (using the global_variable_begin()/global_variable_end() methods). Is this the best way to do it, or is there a better way? For LLVM Value *s, I'm not sure how to get the debug information if they come from alloca instructions. Is the best option to look for a use of the Value in a llvm.dbg.declare() call and then grab t...
2010 Mar 16
0
[LLVMdev] Replacement for findStopPoint() in LLVM 2.7
...> > I also have code that looks up debug information for GlobalVariables and > regular LLVM Value *'s. For the former, I think I can look up their > debug information by using the DebugInfoFinder class and iterating > through all the MDNodes for global variables (using the > global_variable_begin()/global_variable_end() methods). Is this the > best way to do it, or is there a better way? > > For LLVM Value *s, I'm not sure how to get the debug information if they > come from alloca instructions. Is the best option to look for a use of > the Value in a llvm.dbg.declare(...
2010 Mar 16
2
[LLVMdev] Replacement for findStopPoint() in LLVM 2.7
Török Edwin wrote: > [snip] >>> Something like this (you can of course cache TheMetadata and MDDbgKind) >>> >>> llvm::MetadataContext *TheMetadata = M->getContext().getMetadata(); >>> MDDbgKind = TheMetadata->getMDKind("dbg"); >>> if (MDDbgKind) { >>> if (MDNode *Dbg = TheMetadata->getMD(MDDbgKind, I)) { >>>
2010 Mar 16
0
[LLVMdev] Replacement for findStopPoint() in LLVM 2.7
On 03/16/2010 05:30 PM, John Criswell wrote: > Török Edwin wrote: >> [snip] >>>> Something like this (you can of course cache TheMetadata and MDDbgKind) >>>> >>>> llvm::MetadataContext *TheMetadata = M->getContext().getMetadata(); >>>> MDDbgKind = TheMetadata->getMDKind("dbg"); >>>> if (MDDbgKind) {