llvm.org GIT mirror llvm / 79223c3
Remove tabs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160476 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
3 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
132132 }
133133
134134 bool Process::FileDescriptorIsDisplayed(int fd) {
135 DWORD Mode; // Unused
135 DWORD Mode; // Unused
136136 return (GetConsoleMode((HANDLE)_get_osfhandle(fd), &Mode) != 0);
137137 }
138138
6666 "ReleaseSRWLockShared");
6767 ::FreeLibrary(hLib);
6868
69 if (fpInitializeSRWLock != NULL) {
70 sHasSRW = true;
71 }
69 if (fpInitializeSRWLock != NULL) {
70 sHasSRW = true;
71 }
7272 }
7373 }
7474 return sHasSRW;
335335 static MachineBasicBlock::iterator findHBRPosition(MachineBasicBlock &MBB)
336336 {
337337 MachineBasicBlock::iterator J = MBB.end();
338 for( int i=0; i<8; i++) {
339 if( J == MBB.begin() ) return J;
340 J--;
341 }
342 return J;
338 for( int i=0; i<8; i++) {
339 if( J == MBB.begin() ) return J;
340 J--;
341 }
342 return J;
343343 }
344344
345345 unsigned
355355 MachineInstrBuilder MIB;
356356 //TODO: make a more accurate algorithm.
357357 bool haveHBR = MBB.size()>8;
358
358
359359 removeHBR(MBB);
360360 MCSymbol *branchLabel = MBB.getParent()->getContext().CreateTempSymbol();
361361 // Add a label just before the branch
377377 MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
378378 MIB.addSym(branchLabel);
379379 MIB.addMBB(TBB);
380 }
380 }
381381 } else {
382382 // Conditional branch
383383 MIB = BuildMI(&MBB, DL, get(Cond[0].getImm()));
387387 MIB = BuildMI(MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
388388 MIB.addSym(branchLabel);
389389 MIB.addMBB(TBB);
390 }
390 }
391391
392392 DEBUG(errs() << "Inserted one-way cond branch: ");
393393 DEBUG((*MIB).dump());
405405 MIB = BuildMI( MBB, findHBRPosition(MBB), DL, get(SPU::HBRA));
406406 MIB.addSym(branchLabel);
407407 MIB.addMBB(FBB);
408 }
408 }
409409
410410 DEBUG(errs() << "Inserted conditional branch: ");
411411 DEBUG((*MIB).dump());