Displaying 20 results from an estimated 300 matches similar to: "[LLVMdev] Segmentation fault on Instruction.moveBefore()"
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
The funny thing is that i am manually able to hoist the Loop invariant
instruction to the basicBlock terminator, by editing the human readable form
and then using llvm-as to convert it into bytecode.
On Thu, Nov 18, 2010 at 4:01 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 17, 2010, at 1:38 PM, Sreeraj a wrote:
>
> > Thanks Chris,
> >
> > I was
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
i am getting seg fault on functions like I->eraseFromParent also.
I'm assuming that the problem comes when i change the loop structure.
On Thu, Nov 18, 2010 at 4:05 AM, Sreeraj a <writetosrj at gmail.com> wrote:
> The funny thing is that i am manually able to hoist the Loop invariant
> instruction to the basicBlock terminator, by editing the human readable form
> and then
2010 Nov 17
1
[LLVMdev] L->isLoopInvariant giving wrong results?
my changed code.
namespace {
class MyLoopPass:public LoopPass {
bool changed;
public:
static char ID;
Loop* curLoop;
// AnalysisType* AA;
DominatorTree* DT;
LoopInfo* LI;
MyLoopPass() : LoopPass(ID){}
bool isLoopInvariantInst(Instruction &I) ;
bool runOnLoop(Loop * L, LPPassManager &lpm);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
Thanks Chris,
I was able to weed out loop invariant arithmetic instructions using
isLoopInvariant function.
when i try to do an instruction->moveBefore(bb->getTerminator()) i'm
getting a seg fault.
any obvious reasons that i'm missing out on?
Thanks in advance
On Wed, Nov 17, 2010 at 10:41 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 17, 2010, at 2:20
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
On Nov 17, 2010, at 1:38 PM, Sreeraj a wrote:
> Thanks Chris,
>
> I was able to weed out loop invariant arithmetic instructions using isLoopInvariant function.
> when i try to do an instruction->moveBefore(bb->getTerminator()) i'm getting a seg fault.
> any obvious reasons that i'm missing out on?
No idea, sorry.
-Chris
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
On Nov 17, 2010, at 2:20 AM, Sreeraj a wrote:
> Hi,
> I'm trying to write a simple pass to print out Loop invariant instructions, using the
> Loop::isLoopInvariant(Instruction *I)
> function. it is giving me false value on instructions which should be loop invariant.
>
> the code i am using is:
The isLoopInvariant method just works for scalar operations like
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
Hi,
I'm trying to write a simple pass to print out Loop invariant instructions,
using the
Loop::isLoopInvariant(Instruction *I)
function. it is giving me false value on instructions which should be loop
invariant.
the code i am using is:
bool MyLoopPass::runOnLoop(Loop * L, LPPassManager &lpm){
BasicBlock* lat=L->getLoopLatch();
for (BasicBlock::iterator i = lat->begin(), e =
2010 Jun 13
2
[LLVMdev] Block management
Hi,
In my code generator, I need to prepare a block and add instructions to it, then insert this block in a function defined later (that is I cannot create the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(), "init"), fill it, but how to link it with the created
2010 Dec 02
1
[LLVMdev] Size of instructions
Hi i am trying to write an optimization wherein i need to get the size of
each instruction in the loop.
is there any framework that allows me to find out the size of an Instruction
I ?
thanks.
sreeraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101202/94736d3f/attachment.html>
2007 Oct 01
1
[nls] singular gradient
Hi, I am new to R. I don't have strong background of statistics. I am
a student of Geotechnical Engineering. I tried to run a nonlinear
regression for a three-variable function, that is
N = f(CSR, ev) # N is a function of CSR and ev, and N = CSR/(A
+B*CSR), wherer (A,B) are function of ev.
N, CSR and ev are observed in the experiments.
Following is my R script.
rm(list=ls())
2010 Jun 13
0
[LLVMdev] Block management
On Jun 13, 2010, at 2:12 AM, Stéphane Letz wrote:
> Hi,
>
> In my code generator, I need to prepare a block and add instructions to it, then insert this block in a function defined later (that is I cannot create the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(),
2010 Jun 14
1
[LLVMdev] Block management
Hi Chris,
>> In my code generator, I need to prepare a block and add instructions to it, then insert this block in a function defined later (that is I cannot create the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(), "init"), fill it, but how to link it with
2012 Feb 03
1
[LLVMdev] Issues with the llvm.stackrestore intrinsic - now LoopRotation handling of alloca
2012/2/3 Patrik Hägglund <patrik.h.hagglund at ericsson.com>:
> Hi,
>
> I've tracked the first problem (mentioned in my previous email, quoted
> below) down further, ending up in the handling of alloca in
> LoopRotation.cpp (from trunk):
>
> // If the instruction's operands are invariant and it doesn't read
> or write
> // memory, then it is
2018 Aug 27
3
Replacing a function from one module into another one
Hello LLVM Developers,
I'm trying to replace a function defined in one module into another module
(different files). The first issue I ran into was that llvm::Function does
not have a method "moveBefore" or "moveAfter" as the llvm::BasicBlock or
llvm::Instruction do, so I figured I would just move the BasicBlocks of the
replacing function into the function that was being
2009 Nov 01
19
will_paginate vs mislav-will_paginate
I''ve just reinstalled linux (9.10) and am trying to match my gem
environment to our server''s. I''m having a problem with will_paginate.
On the server, under gem list, i have "mislav-will_paginate (2.3.6)".
So, i''m trying to install that locally. Following the instructions on
the will_paginate page, http://wiki.github.com/mislav/will_paginate,
2012 Feb 03
0
[LLVMdev] Issues with the llvm.stackrestore intrinsic - now LoopRotation handling of alloca
Hi,
I've tracked the first problem (mentioned in my previous email, quoted
below) down further, ending up in the handling of alloca in
LoopRotation.cpp (from trunk):
// If the instruction's operands are invariant and it doesn't read
or write
// memory, then it is safe to hoist. Doing this doesn't change the
order of
// execution in the preheader, but does
2018 Sep 02
2
Replacing a function from one module into another one
Hello and thanks for the answer,
I'm still facing issues, I'll do my best to explain my situation, as I
explained, I have two modules, each one with its own main and functions, I
would like to replace in the *oldModule* a function call that is calling
*foo2* (defined in *oldModule*) to instead call *foo3*, which is defined in
the *refModule. *So in summary, I have:
1. The original
2008 Dec 09
2
[LLVMdev] AliasAnalysis tutorial
Hi !
I'm writting an AliasAnalysis using the online tutorial
(http://www.llvm.org/docs/AliasAnalysis.html).
My problem is to chain this pass (function Pass in my case) with the
basicAA ...
I know that my pass is running (runOnFunction) but the virtual methods
derived from AliasAnalysis
(alias, getModRefInfo, etc ... ) are never called (even in the case
wherer the basicAA reaches the end
2018 Sep 02
2
Replacing a function from one module into another one
Hi Ahmad,
What does that tool does besides what LLVM linker already does? I don't
think my problem is in linking both modules, I think LLVM linker does the
job for me, the issue is when changing the called function to call another
function (in the example previously provided, to change it from foo2 to
foo3, and adjusting the function parameter's references).
Regards,
Daniel Moya
El
2012 Feb 01
3
[LLVMdev] Issues with the llvm.stackrestore intrinsic
Hi,
I have two problems regarding the llvm.stackrestore intrinsic. I'm
running on 3.0, but a quick test on trunk also showed the same behavior.
First problem:
---------------
I have code like:
tmp1 = call llvm.stacksave()
tmp2 = alloca
[do some stuff with tmp2]
call llvm.stackrestore(tmp1)
[some other stuff]
tmp3 = call llvm.stacksave()
tmp4 = alloca
[do some stuff