Displaying 7 results from an estimated 7 matches for "bi2".
Did you mean:
bi
2011 Oct 14
0
[LLVMdev] BasicBlock succ iterator
...= dyn_cast<BasicBlock> (termInst->getOperand(i));
if (bb == header) {
termInst->setOperand(i,newBlock);
}
}
}*
* cout << "begin to delete loop" << endl;
for (Loop::block_iterator bi = L->block_begin(), bi2; bi !=
L->block_end(); bi = bi2)
{
bi2 = bi;
bi2++;
BasicBlock * BB = *bi;
for (BasicBlock::iterator ii = BB->begin(), ii2; ii != BB->end();
ii= ii2)
{
ii2 = ii;
ii2++;
Instruction *inst = ii;
inst-...
2011 Oct 06
1
[LLVMdev] replacing a global variable by a constant
I would delete the Loop. I used the following code.
cout << "begin to delete loop" << endl;
for (Loop::block_iterator bi = L->block_begin(), bi2; bi !=
L->block_end(); bi = bi2) {
bi2 = bi;
bi2++;
BasicBlock * BB = *bi;
for (BasicBlock::iterator ii = BB->begin(), ii2; ii != BB->end();
ii= ii2) {
ii2 = ii;
ii2++;
Instruction *inst = ii;
inst->eraseFro...
2011 Oct 05
2
[LLVMdev] replacing a global variable by a constant
hi
i want replacing a global variable by a constant value for erase
instruction. i had seen the code that as follows
for (llvm::GlobalVariable::use_iterator U = gv->use_begin(); U !=
gv->use_end();--U ) {
llvm::Instruction *I = llvm::cast<llvm::Instruction>(U);
I->replaceAllUsesWith(constPtr);
I->eraseFromParent();
}
but i dont know how can declare constptr.
2011 Oct 05
0
[LLVMdev] replacing a global variable by a constant
Hi nada,
> i want replacing a global variable by a constant value for erase instruction.
I'm not sure what you mean exactly. A GlobalVariable has pointer type. Do you
want to replace that pointer by a constant pointer? Or is it rather that you
want to say that the contents of the memory pointed to by the GlobalVariable is
constant, and have all places that load that GlobalVariable
2011 Oct 13
6
[LLVMdev] BasicBlock succ iterator
Hi, All
I want to implement DSWP Which is used for parallelization of loops. For
this purpose, the loop was replaced with a new basic block in main function.
And new functions were created and basic blocks of Loop assigned to them.I
have checked blocks and branches for Succ and Pred relation and I have not
found any problems.
However I get the following error:
*
**opt:
2008 Apr 15
4
trouble streaming images with send_data
...filename = "#{RAILS_ROOT}/public/images/kids.jpg"
imagefile = java.io.File.new(filename)
bi = javax.imageio.ImageIO.read(imagefile)
w = bi.getWidth(nil);
h = bi.getHeight(nil);
if bi.getType != BI.TYPE_INT_RGB
bi2 = BI.new(w, h, BI::TYPE_INT_RGB)
big = bi2.createGraphics()
$stderr.print "after getting graphics"
big.drawImage(biFiltered, 0, 0, nil)
bi = b2
biFiltered = bi...
2011 Oct 06
0
[LLVMdev] MIPS 32bit code generation
...SiWNVhdhxHFbeggHrikw47qWctXfFfBTvbvN158VdXLA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I would delete the Loop. I used the following code.
cout << "begin to delete loop" << endl;
for (Loop::block_iterator bi = L->block_begin(), bi2; bi !=
L->block_end(); bi = bi2) {
bi2 = bi;
bi2++;
BasicBlock * BB = *bi;
for (BasicBlock::iterator ii = BB->begin(), ii2; ii != BB->end();
ii= ii2) {
ii2 = ii;
ii2++;
Instruction *inst = ii;
inst->eraseFro...