mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-06 07:11:42 +00:00
Move classes into anonymous namespaces. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
65e2795281
commit
ddc7b9f8e1
lib/Target
@ -674,6 +674,7 @@ unsigned HexagonInstrInfo::insertBranch(MachineBasicBlock &MBB,
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
class HexagonPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
class HexagonPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
||||||
MachineInstr *Loop, *EndLoop;
|
MachineInstr *Loop, *EndLoop;
|
||||||
MachineFunction *MF;
|
MachineFunction *MF;
|
||||||
@ -748,6 +749,7 @@ public:
|
|||||||
|
|
||||||
void disposed() override { Loop->eraseFromParent(); }
|
void disposed() override { Loop->eraseFromParent(); }
|
||||||
};
|
};
|
||||||
|
} // namespace
|
||||||
|
|
||||||
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
||||||
HexagonInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
HexagonInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
||||||
|
@ -8187,7 +8187,7 @@ SDValue PPCTargetLowering::LowerBITCAST(SDValue Op, SelectionDAG &DAG) const {
|
|||||||
Op0.getOperand(1));
|
Op0.getOperand(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
const SDValue *getNormalLoadInput(const SDValue &Op) {
|
static const SDValue *getNormalLoadInput(const SDValue &Op) {
|
||||||
const SDValue *InputLoad = &Op;
|
const SDValue *InputLoad = &Op;
|
||||||
if (InputLoad->getOpcode() == ISD::BITCAST)
|
if (InputLoad->getOpcode() == ISD::BITCAST)
|
||||||
InputLoad = &InputLoad->getOperand(0);
|
InputLoad = &InputLoad->getOperand(0);
|
||||||
|
@ -3930,6 +3930,7 @@ bool PPCInstrInfo::isBDNZ(unsigned Opcode) const {
|
|||||||
return (Opcode == (Subtarget.isPPC64() ? PPC::BDNZ8 : PPC::BDNZ));
|
return (Opcode == (Subtarget.isPPC64() ? PPC::BDNZ8 : PPC::BDNZ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
class PPCPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
class PPCPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
||||||
MachineInstr *Loop, *EndLoop, *LoopCount;
|
MachineInstr *Loop, *EndLoop, *LoopCount;
|
||||||
MachineFunction *MF;
|
MachineFunction *MF;
|
||||||
@ -3996,6 +3997,7 @@ public:
|
|||||||
LoopCount->eraseFromParent();
|
LoopCount->eraseFromParent();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} // namespace
|
||||||
|
|
||||||
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
||||||
PPCInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
PPCInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user