Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Machine Function Pass"
2011 May 12
2
[LLVMdev] Machine Function Pass
I tried
llc -load /localhome/aggarwa4/llvm27/llvm-obj/projects/poolalloc/Debug/lib/libCodegen.so
--help
But this does not show my pass. It says it is an unknown command line argument.
Arushi
On Thu, May 12, 2011 at 11:21 AM, John Criswell <criswell at illinois.edu> wrote:
> On 5/12/11 11:17 AM, Arushi Aggarwal wrote:
>>
>> What is the correct way to register/run a machine
2011 May 12
0
[LLVMdev] Machine Function Pass
On 5/12/11 11:46 AM, Arushi Aggarwal wrote:
> I tried
> llc -load /localhome/aggarwa4/llvm27/llvm-obj/projects/poolalloc/Debug/lib/libCodegen.so
> --help
>
> But this does not show my pass. It says it is an unknown command line argument.
I'm assuming you've looked at other MachineFunctionPass'es and have
registered yours in the same way that they do. I don't think
2011 May 12
0
[LLVMdev] Machine Function Pass
On 5/12/11 11:17 AM, Arushi Aggarwal wrote:
> What is the correct way to register/run a machine function pass, so
> that it can be dynamically loaded?
Machine function passes are loaded into llc to be used for code
generation, from the looks of it.
Does this answer your question?
-- John T.
> Thanks,
> Arushi
> _______________________________________________
> LLVM
2011 Feb 24
2
[LLVMdev] Get Element Ptr inst
Given 2 GEPs as follows,
%tmp124 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32 5,
!dbg !1051 ; <[2 x i16]*> [#uses=1]
%tmp125 = getelementptr inbounds [2 x i16]* %tmp124, i64 0, i64 0, !dbg
!1051 ; <i16*> [#uses=1]
can I replace the 2nd one with
%tmp126 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0, i32 5,
i64 0, i64 0 ; <i16*>
When I try to
2011 May 23
2
[LLVMdev] Debug llc crash using bugpoint
Hi,
What is the best way to debug an llc crash using bugpoint?
I am getting the following crash that I would like to reduce
llc: /home/vadve/aggarwa4/llvm29/llvm-2.9/lib/MC/MCAsmStreamer.cpp:273:
virtual void<unnamed>::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0 llc
2011 Feb 24
1
[LLVMdev] Get Element Ptr inst
Thanks John. You are right.
Is this also true for constant GEP expressions? Do they also create a
pointer to the calculated type? The language manual does not state so
explicitly.
Arushi
On Thu, Feb 24, 2011 at 10:47 AM, John Criswell <criswell at illinois.edu>wrote:
> On 2/24/11 10:39 AM, Arushi Aggarwal wrote:
>
>> Given 2 GEPs as follows,
>>
>> %tmp124 =
2011 Feb 24
0
[LLVMdev] Get Element Ptr inst
On 2/24/11 10:39 AM, Arushi Aggarwal wrote:
> Given 2 GEPs as follows,
>
> %tmp124 = getelementptr inbounds %struct.termbox* %termptr.1, i32 0,
> i32 5, !dbg !1051 ; <[2 x i16]*> [#uses=1]
> %tmp125 = getelementptr inbounds [2 x i16]* %tmp124, i64 0, i64 0,
> !dbg !1051 ; <i16*> [#uses=1]
>
> can I replace the 2nd one with
>
> %tmp126 = getelementptr
2011 May 23
0
[LLVMdev] Debug llc crash using bugpoint
Do something like this:
bugpoint -run-llc <bitcode file> --tool-args -- <llc arguments>
Cameron
On May 23, 2011, at 1:33 PM, Arushi Aggarwal wrote:
> Hi,
>
> What is the best way to debug an llc crash using bugpoint?
>
> I am getting the following crash that I would like to reduce
>
> llc: /home/vadve/aggarwa4/llvm29/llvm-2.9/lib/MC/MCAsmStreamer.cpp:273:
2011 Feb 22
2
[LLVMdev] Clone a function and change signature
Hi,
I want to clone a given function, and add an argument to it. I then want to
add a call to that new function. I have a callInstruction CI, which I want
to transform to call this new function, and to take a new argument.
The code I added was as follows
CI->getCalledFunction()->dump();
Function* DirectF = CloneFunction(CI->getCalledFunction());
2010 Dec 13
1
[LLVMdev] How can I determine safely if a CallSite is "live" in a DSGraphs context
Hi,
I believe shouldHaveNodeForValue() should return false for
ConstantPointerNullValue.
Fixed in r121707.
Arushi
On Mon, Dec 13, 2010 at 12:10 PM, Kevin Streit
<kevin.streit at googlemail.com>wrote:
> I'm using BUDataStructures... But I tried LocalDatastructures and it didn't
> work either...
> On Dec 13, 2010 6:52 PM, "Arushi Aggarwal" <arushi987 at
2011 Feb 22
0
[LLVMdev] Clone a function and change signature
On 2/22/11 1:31 PM, Arushi Aggarwal wrote:
> Hi,
>
> I want to clone a given function, and add an argument to it. I then
> want to add a call to that new function. I have a callInstruction CI,
> which I want to transform to call this new function, and to take a new
> argument.
If I understand correctly, you're cloning the function first and then
adding a new argument to
2011 Apr 05
3
[LLVMdev] GEP vs IntToPtr/PtrToInt
On Mon, Apr 4, 2011 at 5:02 PM, Arushi Aggarwal <arushi987 at gmail.com> wrote:
>
>
>> Hi,
>> Is it correct to convert,
>> %196 = load i32* %195, align 8 ; <i32> [#uses=1]
>> %197 = zext i32 %196 to i64 ; <i64> [#uses=1]
>> %198 = ptrtoint i8* %193 to i64 ; <i64> [#uses=1]
2011 Apr 04
2
[LLVMdev] GEP vs IntToPtr/PtrToInt
On 4/4/2011 6:45 PM, Eli Friedman wrote:
> On Mon, Apr 4, 2011 at 5:02 PM, Arushi Aggarwal<arushi987 at gmail.com> wrote:
>>
>>> Hi,
>>> Is it correct to convert,
>>> %196 = load i32* %195, align 8 ;<i32> [#uses=1]
>>> %197 = zext i32 %196 to i64 ;<i64> [#uses=1]
>>> %198 =
2011 Aug 17
2
[LLVMdev] Is va_arg deprecated?
FWIW, attached is a similar patch that adds a -falways-use-llvm-vaarg
flag to Clang.
Applies against mainline.
(As discussed, va_arg isn't really supported well so this probably
doesn't work well on anything other than simple code, YMMV, etc)
~Will
On Thu, May 12, 2011 at 12:29 PM, Arushi Aggarwal <arushi987 at gmail.com> wrote:
> Have these changes made it to mainline? Is
2010 Mar 09
3
[LLVMdev] Alignment for Alloca Inst in llvm 2.6
Hi,
1. Does the alignment of the pointer returned by an AllocaInst depend on the
instructions before it in the basic block? The 1st snippet below aligns 'a'
correctly, while the 2nd one doesnt. (the method handle_args, only prints
out the values of arguments, and returns argv unchanged).
define i32 @main(i32 %argc, i8** %argv) nounwind {
entry:
%argc_addr = alloca i32
2011 May 04
1
[LLVMdev] Loop-Unroll optimization
1. You should run the passes in the same opt command, for passes like loops
which is an analysis pass provides results to the following passes.
2. You can pass a -debug flag to opt to see the some debugging info.
3. I tried this
opt -mem2reg -loops -loopsimplify -loop-unroll -unroll-count=3 -debug
loop.o -o tt.bc
and got this message.
Loop Size = 14
Can't unroll; loop not terminated by
2011 Aug 17
0
[LLVMdev] Is va_arg deprecated?
On Aug 17, 2011, at 11:53 AM, Will Dietz wrote:
> FWIW, attached is a similar patch that adds a -falways-use-llvm-vaarg
> flag to Clang.
>
> Applies against mainline.
>
> (As discussed, va_arg isn't really supported well so this probably
> doesn't work well on anything other than simple code, YMMV, etc)
>
> ~Will
>
> On Thu, May 12, 2011 at 12:29 PM,
2011 Aug 17
2
[LLVMdev] Is va_arg deprecated?
To get clang to emit va_arg instructions for va_arg() calls, as
opposed to manually lowering it in the frontend, same as the llvm-gcc
patch sent earlier does.
~Will
On Wed, Aug 17, 2011 at 2:41 PM, Eric Christopher <echristo at apple.com> wrote:
>
> On Aug 17, 2011, at 11:53 AM, Will Dietz wrote:
>
>> FWIW, attached is a similar patch that adds a -falways-use-llvm-vaarg
2010 Apr 21
0
[LLVMdev] Function pointers bitcasted to varargs
Do you compile this as C? In C, unlike in C++, empty parenthesis do
not mean "no arguments", they mean "no prototype", which is typically
treated the same way as varargs in calling conventions. To declare
function with no arguments do typedef void (*FP)(void);
Eugene
On Wed, Apr 21, 2010 at 10:22 PM, Arushi Aggarwal <arushi987 at gmail.com> wrote:
> Hi all,
>
>
2011 Feb 22
1
[LLVMdev] Clone a function and change signature
On Feb 22, 2011, at 11:46 AM, John Criswell wrote:
> On 2/22/11 1:31 PM, Arushi Aggarwal wrote:
>> Hi,
>>
>> I want to clone a given function, and add an argument to it. I then
>> want to add a call to that new function. I have a callInstruction CI,
>> which I want to transform to call this new function, and to take a new
>> argument.
>
> If I