Displaying 8 results from an estimated 8 matches for "hijk".
Did you mean:
dijk
2010 Nov 17
1
[LLVMdev] L->isLoopInvariant giving wrong results?
...;
LI = &getAnalysis<LoopInfo>();
DT = &getAnalysis<DominatorTree>();
errs() <<"Loop Pre-Header:" << *pre;
errs() <<"Loop Latch:" << *lat;
for (BasicBlock::iterator i = lat->begin(), e = lat->end(); i != e; ++i){
Instruction* hijk= i;
// find out if the statement is a branch or whatever.
if(hijk->isSafeToSpeculativelyExecute()){
if(isLoopInvariantInst(*hijk)){
errs() << " " << *hijk << " is loop invariant\n";
errs() << " hoisting to " << pre->...
2010 Jul 19
1
Help with replacing a substring in a string
Dear R Users,
I am trying to replace a substring in a string with something else.
For example:
if we have "abc.degg.hijk"
I would like to replace all the "." with a SPACE to become
"abc degg hijk"
I have tried the replace.substring.wild function in the Hmisc package but get this error:
> replace.substring.wild("abc.degg.hijk","*.*"," ")
Error in replace.subs...
2010 Nov 17
2
[LLVMdev] L->isLoopInvariant giving wrong results?
...n. 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 = lat->end(); i != e; ++i){
Instruction* hijk= i;
if(L->isLoopInvariant(hijk))
errs() << "hurray " << *hijk << " is loop invariant\n";
else
errs() << "bad luck\n";
}
return false;
}
the loop latch prints as:
bb: ; preds = %bb1...
2010 Nov 17
0
[LLVMdev] L->isLoopInvariant giving wrong results?
...est of the loop). Please see the LICM pass to see how to do this.
-Chris
>
> bool MyLoopPass::runOnLoop(Loop * L, LPPassManager &lpm){
> BasicBlock* lat=L->getLoopLatch();
> for (BasicBlock::iterator i = lat->begin(), e = lat->end(); i != e; ++i){
> Instruction* hijk= i;
> if(L->isLoopInvariant(hijk))
> errs() << "hurray " << *hijk << " is loop invariant\n";
> else
> errs() << "bad luck\n";
> }
> return false;
> }
>
> the loop latch prints as:
> bb:...
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
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
2
[LLVMdev] L->isLoopInvariant giving wrong results?
...do this.
>
> -Chris
>
> >
> > bool MyLoopPass::runOnLoop(Loop * L, LPPassManager &lpm){
> > BasicBlock* lat=L->getLoopLatch();
> > for (BasicBlock::iterator i = lat->begin(), e = lat->end(); i != e;
> ++i){
> > Instruction* hijk= i;
> > if(L->isLoopInvariant(hijk))
> > errs() << "hurray " << *hijk << " is loop invariant\n";
> > else
> > errs() << "bad luck\n";
> > }
> > return false...
2008 Jan 18
1
Regex magic anyone?
Hi again,
how to elegantly split
s <- "ABCDEFGT(P)HIJK"
into
"A" "B" "C" "D" "E" "F" "G" "T(P)" "H" "I" "J" "K"
(independently of which letters 'T' or 'P' actually represent ...).
Please jumstart my regexing,...