mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
[C++11] Replace llvm::next and llvm::prior with std::next and std::prev.
Remove the old functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -207,7 +207,7 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
|
||||
case AMDGPU::RAT_WRITE_CACHELESS_32_eg:
|
||||
case AMDGPU::RAT_WRITE_CACHELESS_64_eg:
|
||||
case AMDGPU::RAT_WRITE_CACHELESS_128_eg: {
|
||||
unsigned EOP = (llvm::next(I)->getOpcode() == AMDGPU::RETURN) ? 1 : 0;
|
||||
unsigned EOP = (std::next(I)->getOpcode() == AMDGPU::RETURN) ? 1 : 0;
|
||||
|
||||
BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(MI->getOpcode()))
|
||||
.addOperand(MI->getOperand(0))
|
||||
@@ -457,9 +457,9 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
|
||||
// Instruction is left unmodified if its not the last one of its type
|
||||
bool isLastInstructionOfItsType = true;
|
||||
unsigned InstExportType = MI->getOperand(1).getImm();
|
||||
for (MachineBasicBlock::iterator NextExportInst = llvm::next(I),
|
||||
for (MachineBasicBlock::iterator NextExportInst = std::next(I),
|
||||
EndBlock = BB->end(); NextExportInst != EndBlock;
|
||||
NextExportInst = llvm::next(NextExportInst)) {
|
||||
NextExportInst = std::next(NextExportInst)) {
|
||||
if (NextExportInst->getOpcode() == AMDGPU::EG_ExportSwz ||
|
||||
NextExportInst->getOpcode() == AMDGPU::R600_ExportSwz) {
|
||||
unsigned CurrentInstExportType = NextExportInst->getOperand(1)
|
||||
@@ -470,7 +470,7 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
|
||||
}
|
||||
}
|
||||
}
|
||||
bool EOP = (llvm::next(I)->getOpcode() == AMDGPU::RETURN)? 1 : 0;
|
||||
bool EOP = (std::next(I)->getOpcode() == AMDGPU::RETURN) ? 1 : 0;
|
||||
if (!EOP && !isLastInstructionOfItsType)
|
||||
return BB;
|
||||
unsigned CfInst = (MI->getOpcode() == AMDGPU::EG_ExportSwz)? 84 : 40;
|
||||
|
||||
Reference in New Issue
Block a user