Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Function Argument in LLVM"
2009 Jul 13
2
[LLVMdev] Aliasing on bitcode.
Dear All,
I am working on a LLVM bitcode based project in which we do static lockset analysis. I need to get Aliasing information statically given the .bc file of the application. Is there any library in LLVM which already implements the aliasing? (does it support multi-threaded apps?) What is the best way of doing it (I want to extract aliasing information in runOnModule() function in the pass I
2009 Jul 09
0
[LLVMdev] Source file information.
Thanks for your reply. Is it not possible to do with llvm-g++ -g?
and furthermore, where are SDNode and DebugLoc fields stored? are they in a
file which I have to parse myself? if so, is there any way that I use a
library to get the file/line information for each instruction? since, I am
writing a pass for opt tool that manipulates the callgraph and want to get
the line number information in
2009 Jul 09
5
[LLVMdev] Source file information.
Hi,
I am new to LLVM, and need to find the line number and cpp source file name
for each instruction in a .bc file. I suppose llvm debugger might have that
feature but there is no documentation on it. Would you please give me some
help how to do it?
Thanks,
::Saman Zonouz
University of Illinois
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 Jul 23
0
[LLVMdev] LLVM Module Pass problem!
Saman Zonouz wrote:
> Dear All,
>
> I am new to LLVM and try to write a Module pass. In the same .cpp file
> I am defining a class.
> The problem is that whenever I instantiate an object from the class I
> get the following error while running the pass:
>
> opt: symbol lookup error: ../llvm/Debug/lib/MyPass.so: undefined
> symbol: _ZN10Thread_MyPassC1Ev
>
> The
2009 Jul 09
0
[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 and cpp source file
> name for each
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 Jun 18
2
[LLVMdev] Referring to an argument in another function
I would like to instrument certain function calls with a function call
of my own that takes some of the same arguments. For example, I would
like to instrument calls to free with some function foo, so the C code
would look like:
foo(myarg1, myarg2, ptr);
free(ptr);
The problem occurs when I grab the arg from the free function and try
to pass it to foo...
if (isCallToFree(&I)) {
Value*
2009 Nov 11
4
[LLVMdev] Adding function call in LLVM IR using IRBuilder causes assertion error
Hi,
I'm trying to add function calls in the LLVM IR using the IRBuilder
class. I've read both tutorials about functions but I still get
assertion errors. I allocate memory for all function arguments and pass
them as explained in the tutorial.
My code is (this function is supposed to add a call to f in bb at pos):
void addCallSite(Function *f, BasicBlock *bb, BasicBlock::iterator pos)
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
Hi all,
Sorry for the inconvenient about the previous post. The files were not
attached. So I put them here again.
I am a newbie in LLVM and I am trying to replace the function like:
old function || new function
==============================
=========
int haha(int a) { int haha(int a, char* ID) {
===>
}
2009 Jul 23
2
[LLVMdev] LLVM Module Pass problem!
Dear All,
I am new to LLVM and try to write a Module pass. In the same .cpp file I am defining a class.
The problem is that whenever I instantiate an object from the class I get the following error while running the pass:
opt: symbol lookup error: ../llvm/Debug/lib/MyPass.so: undefined symbol: _ZN10Thread_MyPassC1Ev
The pass is compiled correctly but does not run. Could you someone please let
2009 Jul 09
1
[LLVMdev] Source file information.
Thanks for your reply. Is it not possible to do with llvm-g++ -g?
Yes
and furthermore, where are SDNode and DebugLoc fields stored?
They are probably classes in the Clang API
are they in a file which I have to parse myself? if so, is there any way that I use a library to get the file/line information for each instruction?
Yes Clang API :-
http://clang.llvm.org/doxygen/classes.html
2008 Sep 13
3
[LLVMdev] Duplicate Function with duplicated Arguments
I'm now writing a pass and I wanna ask a question about how to
duplicate the function and add duplicated arguments in llvm, for
example:
func(int a, char *b) -> func(int a, char *b, int a1, char *b1)
I'm now stuck at using "getOrInsertFunction" and how to handle
"getArgumentList", please share your opinion, thanks a lot!
James
2009 Apr 16
2
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi Anton
>
> > The interesting for me part of the CallInst is printf(i8* noalias %0, i32
> > 123).
> > I was diging in doxygen documentation but I really can't see the easy way
> to
> > compare those instructions and again finish with reinvented (but working)
> > wheel ;).
> Ah, sorry. I missed that you're doing variadic calls, not casting
>
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
2009 Jul 13
0
[LLVMdev] Aliasing on bitcode.
On Mon, Jul 13, 2009 at 3:28 PM, saman aliari<samy_442 at yahoo.com> wrote:
> I am working on a LLVM bitcode based project in which we do static lockset
> analysis. I need to get Aliasing information statically given the .bc file
> of the application. Is there any library in LLVM which already implements
> the aliasing?
There's an alias analysis interface that comes standard
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 Jun 18
0
[LLVMdev] Referring to an argument in another function
Scott Ricketts wrote:
> I would like to instrument certain function calls with a function call
> of my own that takes some of the same arguments. For example, I would
> like to instrument calls to free with some function foo, so the C code
> would look like:
>
> foo(myarg1, myarg2, ptr);
> free(ptr);
>
> The problem occurs when I grab the arg from the free function and
2009 Jul 07
1
[LLVMdev] LLVM Question.
Hi,
I am Saman, a UIUC PhD student working with LLVM. Would you please let me
know how I can extract CG and CFG for a given application?
Thanks a lot,
::Saman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090707/951958b6/attachment.html>
2009 Jul 09
3
[LLVMdev] Source file information.
Aaron Gray wrote:
> 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