Displaying 20 results from an estimated 9000 matches similar to: "[LLVMdev] DEBUG INFO at the bytecode level"
2010 May 18
4
[LLVMdev] DEBUG INFO at the bytecode level
Thanks Edwin.
I found DebugInfo.cpp may be useful. Could you tell me which function
I should call inorder to know the source file name and the line number
for a particular instruction?
Cheers,
Zheng
2010/5/18 Török Edwin <edwintorok at gmail.com>:
> On 05/18/2010 01:26 PM, Zheng Wang wrote:
>> Hello,
>>
>> Could I get some debug info at the byte code level? I am
2010 May 18
0
[LLVMdev] DEBUG INFO at the bytecode level
On 05/18/2010 01:26 PM, Zheng Wang wrote:
> Hello,
>
> Could I get some debug info at the byte code level? I am writing a
> passer and if will be nice if I can know which line in the source an
> instruction (or value) corresponds to.
>
> I found a document online:
> http://llvm.org/docs/SourceLevelDebugging.html, but I can't find an
> example of doing it at the
2010 May 18
0
[LLVMdev] DEBUG INFO at the bytecode level
Thanks Edwin, I will check it out.
Cheers,
Zheng
2010/5/18 Török Edwin <edwintorok at gmail.com>:
> On 05/18/2010 02:13 PM, Zheng Wang wrote:
>> Got it.
>>
>> I am using LLVM 2.6. I guess bool getLocationInfo(const Value *V,
>> std::string &DisplayName,...) has everything I need.\
>
> Yes, for variables.
> For instructions see what printStopPoint()
2010 May 25
1
[LLVMdev] DEBUG INFO at the bytecode level
Devang Patel <devang.patel <at> gmail.com> writes:
>
> 2010/5/18 Zheng Wang <jason.wangz <at> gmail.com>:
> >
> > I found DebugInfo.cpp may be useful. Could you tell me which function
> > I should call inorder to know the source file name and the line number
> > for a particular instruction?
> >
>
> See
2010 May 18
0
[LLVMdev] DEBUG INFO at the bytecode level
2010/5/18 Zheng Wang <jason.wangz at gmail.com>:
>
> I found DebugInfo.cpp may be useful. Could you tell me which function
> I should call inorder to know the source file name and the line number
> for a particular instruction?
>
See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
At the end of "C/C++ source file information" section, there is a
small
2010 May 17
3
[LLVMdev] Is this value an integer type?
Hello,
I have a problem of dumping a value. Here is the llvm assembly code:
---
%322 = getelementptr inbounds [76 x [4 x i8]]* @i_tc0_table, i32 0,
i32 %305, i32 %321 ; <i8*> [#uses=1]
%323 = load i8* %322, align 1 ; <i8> [#uses=1]
store i8 %323, i8* %89, align 1
--
I want to dump %323 to a library function whose prototype is:
recordStore(const char*, unsigned
2010 Apr 06
1
[LLVMdev] Get the loop trip count variable
Hi Eli,
Could you tell me how to extract the variable name?
The reason I want to do it at the IR level is because I have more
information at this stage, such as, constant propagation and back
edges.
Cheers,
Zheng
On 5 April 2010 21:51, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Mon, Apr 5, 2010 at 1:19 PM, Zheng Wang <jason.wangz at gmail.com> wrote:
>> Hello,
2009 Jul 09
3
[LLVMdev] Source file information.
>> -----Original Message-----
>> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On
>> Behalf Of Saman Aliari Zonouz
>> Sent: Thursday, July 09, 2009 11:44 AM
>> To: llvmdev at cs.uiuc.edu
>> Subject: [LLVMdev] Source file information.
>>
>> Hi,
>>
>> I am new to LLVM, and need to find the line number
2009 Jul 09
0
[LLVMdev] Source file information.
On 2009-07-09 11:17, Aaron Gray wrote:
>>> -----Original Message-----
>>> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
>>>
>> On
>>
>>> Behalf Of Saman Aliari Zonouz
>>> Sent: Thursday, July 09, 2009 11:44 AM
>>> To: llvmdev at cs.uiuc.edu
>>> Subject: [LLVMdev] Source file
2009 Jul 09
5
[LLVMdev] Source file information.
Dear All,
To add to this, what you want to do is find the appropriate debug stop
point intrinsic and then use it to look up the information for that
instruction.
Here is some sample code from SAFECode that finds the debug information
associated with a CallInst (LLVM call instruction) held in the variable
CI. It uses the findStopPoint() function in llvm/Analyis/DebugInfo.h:
//
// Get the
2009 Jul 09
0
[LLVMdev] Source file information.
Dear All,
To add to this, what you want to do is find the appropriate debug stop
point intrinsic and then use it to look up the information for that
instruction.
Here is some sample code from SAFECode that finds the debug information
associated with a CallInst (LLVM call instruction) held in the variable
CI. It uses the findStopPoint() function in llvm/Analyis/DebugInfo.h:
//
// Get the
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
2011 May 20
3
[LLVMdev] convert a char * to a value
Hi all,
Please i need help, I have a method that takes 2 arguments with type char *:
void branchPredict(char *b1, char *b2){
---
--
}
i'm supposed to add this method, in an IR basic bloc:
to add it into a basic bloc i do:
//i: is the basic bloc
std::vector<Value*> void_43_params;
Constant* tbname = ConstantArray::get(M.getContext(),i->getNameStr() ,
true);
Constant* pbname =
2010 Dec 07
2
[LLVMdev] own source transformation
Hi,
I'm a student who is going to make a countermeasure for dangling pointers in c for his thesis.
I need to make my source transformation using llvm. Nobody in my university already used LLVM.
I already read a some documentation about llvm but i'm still lost.
Do there exist some " examples/Tutorials" for making small source transformations.
Or is there somebody who can help
2010 May 17
0
[LLVMdev] Is this value an integer type?
On 05/17/2010 05:02 PM, Zheng Wang wrote:
> Hello,
>
> I have a problem of dumping a value. Here is the llvm assembly code:
>
> ---
> %322 = getelementptr inbounds [76 x [4 x i8]]* @i_tc0_table, i32 0,
> i32 %305, i32 %321 ; <i8*> [#uses=1]
> %323 = load i8* %322, align 1 ; <i8> [#uses=1]
> store i8 %323, i8* %89, align 1
> --
>
2011 May 20
0
[LLVMdev] convert a char * to a value
On 5/20/11 5:46 PM, Nabila ABDESSAIED wrote:
> Hi all,
>
> Please i need help, I have a method that takes 2 arguments with type
> char *:
> void branchPredict(char *b1, char *b2){
> ---
> --
> }
> i'm supposed to add this method, in an IR basic bloc:
> to add it into a basic bloc i do:
The problem is that you are passing arrays to the function instead of
2010 Apr 06
2
[LLVMdev] Get the loop trip count variable
Thanks a lot for your guys' help!!!
I guess once I am able to get *V* (which probably is a pointer to a
Value object), then, I can instrument some code at the IR level to
dump V. As long as I maintain V at this pass stage, I should be able
to dump the loop trip count. This is true, isn't it?
Basically, what I am going to do is to add a function call before the
loop body, such as:
2010 Apr 05
3
[LLVMdev] Get the loop trip count variable
Hello,
I am wondering whether I can get the variable name of loop trip count in LLVM?
For example,
int NUM;
NUM=atoi(argv[i]);
for (int i=0; i<NUM; i++)
{
...
}
How can I get the corresponding variable name for "NUM"? Then, I can
instrument something in the source code to record the loop trip count
for a given input data set.
BasicBlock* b = L->getHeader();
returns the
2010 Apr 08
1
[LLVMdev] Declaring constant global variables
Can I do this in my own pass module?
Because the string is actually depended on the type of a value object.
On 8 April 2010 20:29, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Thu, Apr 8, 2010 at 12:18 PM, Zheng Wang <jason.wangz at gmail.com> wrote:
>> Hiya,
>>
>> I want to declare a constant global variable as:
>>
>> @.str = private constant
2010 Apr 05
0
[LLVMdev] Get the loop trip count variable
On Mon, Apr 5, 2010 at 1:19 PM, Zheng Wang <jason.wangz at gmail.com> wrote:
> Hello,
>
> I am wondering whether I can get the variable name of loop trip count in LLVM?
>
> For example,
>
> int NUM;
>
> NUM=atoi(argv[i]);
>
> for (int i=0; i<NUM; i++)
> {
> ...
> }
>
> How can I get the corresponding variable name for "NUM"?