Displaying 5 results from an estimated 5 matches for "insertinto".
Did you mean:
inserting
2015 Feb 13
2
[LLVMdev] module functions
...hod.
It worked. But there is a problem: I can't see body of function (basic
blocks). In other words, function basic blocks don't move.
To solve, I store function basic blocks before remove it. and after
function insertion, I want to insert them to function. But when I want to
add them with insertInto() method, this error appears:
no member named 'insertInto' in 'llvm::BasicBlock'.
I'm confused. I sure this method exists in BasicBlock class.
Any help? Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/ll...
2009 Jun 04
1
[LLVMdev] assertion in LeakDetector
...unsigned DestReg)
I do the following :
void createInstrs(std::vector<MachineInstr *>& ilist)
{
Machine Instr *mi;
mi = BuildMI(MF, someTID, somereg);
ilist.push_back(mi);
mi = BuildMI(MF, someotherTID, someotherreg);
ilist.push_back(mi);
}
viud insertInto(MachineBasicBlock *BB, MachineBasicBlock::iterator II)
{
std::vector<MachineInstr *> temp;
createInstrs(temp);
for(unsigned i=0, e=temp.size(); i!=e; ++i)
BB->insert(II, temp[i]);
}
I am getting the assertion during BB->insert()
Manjunath
On Wed, Jun 3, 2009 at 5:26 PM,...
2009 Jun 04
2
[LLVMdev] assertion in LeakDetector
I am seeing the following assertion in leak detector.
/llvm/lib/VMCore/LeakDetector.cpp:43:
void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
failed.
I am creating a list of instructions using BuildMI() and adding them
to a basic block using BB->insert(). I am seeing this
2009 Jun 04
0
[LLVMdev] assertion in LeakDetector
On Wed, Jun 3, 2009 at 5:10 PM, Manjunath Kudlur <keveman at gmail.com> wrote:
> I am seeing the following assertion in leak detector.
>
> /llvm/lib/VMCore/LeakDetector.cpp:43:
> void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
> void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
> failed.
>
> I am
2016 Oct 26
0
How does one reduce a function CFG to its entry block?
...>getTerminator()->eraseFromParent(); FEntryBlock->removeFromParent(); for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) I->dropAllReferences(); while (!F->getBasicBlockList().empty()) F->getBasicBlockList().begin()->eraseFromParent(); FEntryBlock->insertInto(F); // ...subsequent provision of a terminator, etc.
This does have the desired effect, but since I have no prior experience modifying LLVM, I am not sure if this is safe/legitimate or if my approach is flawed.
[ I am also able to achieve this by substituting the original terminator to the en...