mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-31 12:30:06 +00:00
Test commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133174 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0aef2de81
commit
12af5ff720
@ -61,7 +61,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineBasicBlock &MBB) {
|
|||||||
return OS;
|
return OS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// addNodeToList (MBB) - When an MBB is added to an MF, we need to update the
|
/// addNodeToList (MBB) - When an MBB is added to an MF, we need to update the
|
||||||
/// parent pointer of the MBB, the MBB numbering, and any instructions in the
|
/// parent pointer of the MBB, the MBB numbering, and any instructions in the
|
||||||
/// MBB to be on the right operand list for registers.
|
/// MBB to be on the right operand list for registers.
|
||||||
///
|
///
|
||||||
@ -93,7 +93,7 @@ void ilist_traits<MachineBasicBlock>::removeNodeFromList(MachineBasicBlock *N) {
|
|||||||
void ilist_traits<MachineInstr>::addNodeToList(MachineInstr *N) {
|
void ilist_traits<MachineInstr>::addNodeToList(MachineInstr *N) {
|
||||||
assert(N->getParent() == 0 && "machine instruction already in a basic block");
|
assert(N->getParent() == 0 && "machine instruction already in a basic block");
|
||||||
N->setParent(Parent);
|
N->setParent(Parent);
|
||||||
|
|
||||||
// Add the instruction's register operands to their corresponding
|
// Add the instruction's register operands to their corresponding
|
||||||
// use/def lists.
|
// use/def lists.
|
||||||
MachineFunction *MF = Parent->getParent();
|
MachineFunction *MF = Parent->getParent();
|
||||||
@ -110,7 +110,7 @@ void ilist_traits<MachineInstr>::removeNodeFromList(MachineInstr *N) {
|
|||||||
|
|
||||||
// Remove from the use/def lists.
|
// Remove from the use/def lists.
|
||||||
N->RemoveRegOperandsFromUseLists();
|
N->RemoveRegOperandsFromUseLists();
|
||||||
|
|
||||||
N->setParent(0);
|
N->setParent(0);
|
||||||
|
|
||||||
LeakDetector::addGarbageObject(N);
|
LeakDetector::addGarbageObject(N);
|
||||||
@ -351,7 +351,7 @@ void MachineBasicBlock::removeSuccessor(MachineBasicBlock *succ) {
|
|||||||
Successors.erase(I);
|
Successors.erase(I);
|
||||||
}
|
}
|
||||||
|
|
||||||
MachineBasicBlock::succ_iterator
|
MachineBasicBlock::succ_iterator
|
||||||
MachineBasicBlock::removeSuccessor(succ_iterator I) {
|
MachineBasicBlock::removeSuccessor(succ_iterator I) {
|
||||||
assert(I != Successors.end() && "Not a current successor!");
|
assert(I != Successors.end() && "Not a current successor!");
|
||||||
(*I)->removePredecessor(this);
|
(*I)->removePredecessor(this);
|
||||||
@ -371,7 +371,7 @@ void MachineBasicBlock::removePredecessor(MachineBasicBlock *pred) {
|
|||||||
void MachineBasicBlock::transferSuccessors(MachineBasicBlock *fromMBB) {
|
void MachineBasicBlock::transferSuccessors(MachineBasicBlock *fromMBB) {
|
||||||
if (this == fromMBB)
|
if (this == fromMBB)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (!fromMBB->succ_empty()) {
|
while (!fromMBB->succ_empty()) {
|
||||||
MachineBasicBlock *Succ = *fromMBB->succ_begin();
|
MachineBasicBlock *Succ = *fromMBB->succ_begin();
|
||||||
addSuccessor(Succ);
|
addSuccessor(Succ);
|
||||||
@ -383,7 +383,7 @@ void
|
|||||||
MachineBasicBlock::transferSuccessorsAndUpdatePHIs(MachineBasicBlock *fromMBB) {
|
MachineBasicBlock::transferSuccessorsAndUpdatePHIs(MachineBasicBlock *fromMBB) {
|
||||||
if (this == fromMBB)
|
if (this == fromMBB)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (!fromMBB->succ_empty()) {
|
while (!fromMBB->succ_empty()) {
|
||||||
MachineBasicBlock *Succ = *fromMBB->succ_begin();
|
MachineBasicBlock *Succ = *fromMBB->succ_begin();
|
||||||
addSuccessor(Succ);
|
addSuccessor(Succ);
|
||||||
@ -645,7 +645,7 @@ void MachineBasicBlock::ReplaceUsesOfBlockWith(MachineBasicBlock *Old,
|
|||||||
/// CFG to be inserted. If we have proven that MBB can only branch to DestA and
|
/// CFG to be inserted. If we have proven that MBB can only branch to DestA and
|
||||||
/// DestB, remove any other MBB successors from the CFG. DestA and DestB can be
|
/// DestB, remove any other MBB successors from the CFG. DestA and DestB can be
|
||||||
/// null.
|
/// null.
|
||||||
///
|
///
|
||||||
/// Besides DestA and DestB, retain other edges leading to LandingPads
|
/// Besides DestA and DestB, retain other edges leading to LandingPads
|
||||||
/// (currently there can be only one; we don't check or require that here).
|
/// (currently there can be only one; we don't check or require that here).
|
||||||
/// Note it is possible that DestA and/or DestB are LandingPads.
|
/// Note it is possible that DestA and/or DestB are LandingPads.
|
||||||
|
Loading…
Reference in New Issue
Block a user