Displaying 10 results from an estimated 10 matches for "tewari".
2011 May 21
4
[LLVMdev] getCanonicalInductionVariable
Hi
I have the followed code for which I am writing a loop pass.
int main() {
int i = 0;
for (i=0; i<20; i++) {
printf ("hello world %d\n", i);
}
return 0;
}
In the function runOnLoop, I have the following instruction
PHINode *indv = NULL;
indv = L->getCanonicalInductionVariable();
However, when I check indv is always set to NULL.
Since the code has a canonical
2011 May 22
0
[LLVMdev] getCanonicalInductionVariable
Hi,
What does your LLVM IR look like. Are you sure the loop hasnt been optimized
away?
Arushi
On Sat, May 21, 2011 at 5:52 PM, Malveeka Tewari <mtewari at eng.ucsd.edu>wrote:
> Hi
>
> I have the followed code for which I am writing a loop pass.
>
> int main() {
> int i = 0;
> for (i=0; i<20; i++) {
> printf ("hello world %d\n", i);
> }
> return 0;
> }
>
> In the functi...
2011 May 23
0
[LLVMdev] Fwd: getCanonicalInductionVariable
Forwarding to list :)
~Will
---------- Forwarded message ----------
From: Malveeka Tewari <mtewari at eng.ucsd.edu>
Date: Sun, May 22, 2011 at 12:38 AM
Subject: Re: [LLVMdev] getCanonicalInductionVariable
To: willdtz at gmail.com
Adding -mem2reg fixed the problem !
Thanks a lot!
Malveeka
On Sat, May 21, 2011 at 9:47 PM, Will Dietz <willdtz at gmail.com> wrote:
>
> A...
2011 Jun 04
0
[LLVMdev] Function name changes in .bc on running llvm-g++
On 6/3/11 9:55 PM, Malveeka Tewari wrote:
> Hi
>
> I am running llvm-g++ on a .cpp file to generate the llvm bitcode.
>
> The function definition in the .cpp file is:
>
> float pFL(Points *points, int *feasible, int numfeasible, float z, long *k,
> double cost, long iter, float e, int pid, pthread_ba...
2011 Jun 04
2
[LLVMdev] Function name changes in .bc on running llvm-g++
Hi
I am running llvm-g++ on a .cpp file to generate the llvm bitcode.
The function definition in the .cpp file is:
float pFL(Points *points, int *feasible, int numfeasible, float z, long *k,
double cost, long iter, float e, int pid, pthread_barrier_t* barrier)
{
However, in the bit code I see that the function name has been modified to
the following
define float
2011 May 05
0
[LLVMdev] Loop transformations using LLVM
Malveeka,
You can use the LoopInfo analysis to find the induction variable.
http://llvm.org/docs/doxygen/html/classllvm_1_1Loop.html#a72bbf45d2e00971f56bf8cfe4e1df01c
Cheers,
Nadav
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Malveeka Tewari
Sent: Thursday, May 05, 2011 14:51
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Loop transformations using LLVM
Hi
I am trying to write up a transformation for the following code where instead of incrementing the loop variable by 1, I increment it by 2 ie.
for (i=0; i < THRES; i++) {
//do...
2011 May 05
2
[LLVMdev] Loop transformations using LLVM
Hi
I am trying to write up a transformation for the following code where
instead of incrementing the loop variable by 1, I increment it by 2 ie.
for (i=0; i < THRES; *i++*) {
//do something
}
gets transformed to
for (i=0; i < THRES; *i+=2*) {
//do something
}
I am thinking of transforming the llvm bit-code in the following way.
Iterate over the function for the original code till I
2011 May 07
1
[LLVMdev] Loop transformations using LLVM
...new IV by replacing the "step" with SCEVAddExpr(1 + OrigStep). To materialize it in IR, you need to use a SCEVExpander. ...probably more complicated than you need.
-Andy
>
>
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Malveeka Tewari
> Sent: Thursday, May 05, 2011 14:51
> To: llvmdev at cs.uiuc.edu
> Subject: [LLVMdev] Loop transformations using LLVM
>
> Hi
>
> I am trying to write up a transformation for the following code where instead of incrementing the loop variable by 1, I increment it by 2 ie.
>...
2011 May 25
1
[LLVMdev] Running both Function and Loop passes together
Hi
I want to write a LLVM pass that transforms loops only if they belong to
certain special functions.
Right now I have a pass that can transform loops as I intend, but I do not
know how to check if the loop is actually contained in one of the special
functions.
Is there a way to identify the function to which a particular loop belongs
?
I am not sure if my pass should implement both runOnLoop
2009 Feb 11
0
Job Opportunity - Linux System Administrator - SFO;CA
Duration: 3months +
Location: SFO; CA
The primary skills are:
* Over all Red Hat Linux system admin
- Patches using our own patch center
- Spinning up approved version of the Linux
- Migration of Red Hat 4.0 to 5.0 release in all our environment
- Network trouble shooting & Design (mainly for our qa and dev environment)
- Backup setup and Strategies
- General scripting skills using bash,