mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +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
@ -674,6 +674,7 @@ unsigned HexagonInstrInfo::insertBranch(MachineBasicBlock &MBB,
|
||||
return 2;
|
||||
}
|
||||
|
||||
namespace {
|
||||
class HexagonPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
||||
MachineInstr *Loop, *EndLoop;
|
||||
MachineFunction *MF;
|
||||
@ -748,6 +749,7 @@ public:
|
||||
|
||||
void disposed() override { Loop->eraseFromParent(); }
|
||||
};
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
||||
HexagonInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
||||
|
@ -8187,7 +8187,7 @@ SDValue PPCTargetLowering::LowerBITCAST(SDValue Op, SelectionDAG &DAG) const {
|
||||
Op0.getOperand(1));
|
||||
}
|
||||
|
||||
const SDValue *getNormalLoadInput(const SDValue &Op) {
|
||||
static const SDValue *getNormalLoadInput(const SDValue &Op) {
|
||||
const SDValue *InputLoad = &Op;
|
||||
if (InputLoad->getOpcode() == ISD::BITCAST)
|
||||
InputLoad = &InputLoad->getOperand(0);
|
||||
|
@ -3930,6 +3930,7 @@ bool PPCInstrInfo::isBDNZ(unsigned Opcode) const {
|
||||
return (Opcode == (Subtarget.isPPC64() ? PPC::BDNZ8 : PPC::BDNZ));
|
||||
}
|
||||
|
||||
namespace {
|
||||
class PPCPipelinerLoopInfo : public TargetInstrInfo::PipelinerLoopInfo {
|
||||
MachineInstr *Loop, *EndLoop, *LoopCount;
|
||||
MachineFunction *MF;
|
||||
@ -3996,6 +3997,7 @@ public:
|
||||
LoopCount->eraseFromParent();
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
std::unique_ptr<TargetInstrInfo::PipelinerLoopInfo>
|
||||
PPCInstrInfo::analyzeLoopForPipelining(MachineBasicBlock *LoopBB) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user