mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Remove tabs.
llvm-svn: 160476
This commit is contained in:
parent
343eebdbe4
commit
b1bd365dfc
@ -133,7 +133,7 @@ bool Process::StandardErrIsDisplayed() {
|
||||
}
|
||||
|
||||
bool Process::FileDescriptorIsDisplayed(int fd) {
|
||||
DWORD Mode; // Unused
|
||||
DWORD Mode; // Unused
|
||||
return (GetConsoleMode((HANDLE)_get_osfhandle(fd), &Mode) != 0);
|
||||
}
|
||||
|
||||
|
@ -67,9 +67,9 @@ static bool loadSRW() {
|
||||
"ReleaseSRWLockShared");
|
||||
::FreeLibrary(hLib);
|
||||
|
||||
if (fpInitializeSRWLock != NULL) {
|
||||
sHasSRW = true;
|
||||
}
|
||||
if (fpInitializeSRWLock != NULL) {
|
||||
sHasSRW = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return sHasSRW;
|
||||
|
@ -336,11 +336,11 @@ SPUInstrInfo::RemoveBranch(MachineBasicBlock &MBB) const {
|
||||
static MachineBasicBlock::iterator findHBRPosition(MachineBasicBlock &MBB)
|
||||
{
|
||||
MachineBasicBlock::iterator J = MBB.end();
|
||||
for( int i=0; i<8; i++) {
|
||||
if( J == MBB.begin() ) return J;
|
||||
J--;
|
||||
}
|
||||
return J;
|
||||
for( int i=0; i<8; i++) {
|
||||
if( J == MBB.begin() ) return J;
|
||||
J--;
|
||||
}
|
||||
return J;
|
||||
}
|
||||
|
||||
unsigned
|
||||
@ -356,7 +356,7 @@ SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
MachineInstrBuilder MIB;
|
||||
//TODO: make a more accurate algorithm.
|
||||
bool haveHBR = MBB.size()>8;
|
||||
|
||||
|
||||
removeHBR(MBB);
|
||||
MCSymbol *branchLabel = MBB.getParent()->getContext().CreateTempSymbol();
|
||||
// Add a label just before the branch
|
||||
@ -378,7 +378,7 @@ SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
|
||||
MIB.addSym(branchLabel);
|
||||
MIB.addMBB(TBB);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Conditional branch
|
||||
MIB = BuildMI(&MBB, DL, get(Cond[0].getImm()));
|
||||
@ -388,7 +388,7 @@ SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
MIB = BuildMI(MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
|
||||
MIB.addSym(branchLabel);
|
||||
MIB.addMBB(TBB);
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Inserted one-way cond branch: ");
|
||||
DEBUG((*MIB).dump());
|
||||
@ -406,7 +406,7 @@ SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
|
||||
MIB.addSym(branchLabel);
|
||||
MIB.addMBB(FBB);
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Inserted conditional branch: ");
|
||||
DEBUG((*MIB).dump());
|
||||
|
Loading…
Reference in New Issue
Block a user