From eaececf5e0c4c566838cf2bada8599e6346e59e7 Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Wed, 4 Jul 2018 15:37:08 +0000 Subject: [PATCH] [MachineOutliner] Fix typo in getOutliningCandidateInfo function name getOutlininingCandidateInfo -> getOutliningCandidateInfo Differential Revision: https://reviews.llvm.org/D48867 llvm-svn: 336285 --- llvm/include/llvm/CodeGen/TargetInstrInfo.h | 2 +- llvm/lib/CodeGen/MachineOutliner.cpp | 2 +- llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | 2 +- llvm/lib/Target/AArch64/AArch64InstrInfo.h | 2 +- llvm/lib/Target/X86/X86InstrInfo.cpp | 2 +- llvm/lib/Target/X86/X86InstrInfo.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/CodeGen/TargetInstrInfo.h b/llvm/include/llvm/CodeGen/TargetInstrInfo.h index 3dfdcf75fdc0..fea612763c88 100644 --- a/llvm/include/llvm/CodeGen/TargetInstrInfo.h +++ b/llvm/include/llvm/CodeGen/TargetInstrInfo.h @@ -1604,7 +1604,7 @@ public: /// Returns a \p outliner::TargetCostInfo struct containing target-specific /// information for a set of outlining candidates. - virtual outliner::TargetCostInfo getOutlininingCandidateInfo( + virtual outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { llvm_unreachable( "Target didn't implement TargetInstrInfo::getOutliningCandidateInfo!"); diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index da084d961f67..b69a98ccc7dc 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -912,7 +912,7 @@ unsigned MachineOutliner::findCandidates( // Create an OutlinedFunction to store it and check if it'd be beneficial // to outline. TargetCostInfo TCI = - TII.getOutlininingCandidateInfo(CandidatesForRepeatedSeq); + TII.getOutliningCandidateInfo(CandidatesForRepeatedSeq); std::vector Seq; for (unsigned i = Leaf->SuffixIdx; i < Leaf->SuffixIdx + StringLen; i++) Seq.push_back(ST.Str[i]); diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp index 58bd3496d4bb..e60ca72626f6 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp @@ -4928,7 +4928,7 @@ enum MachineOutlinerMBBFlags { }; outliner::TargetCostInfo -AArch64InstrInfo::getOutlininingCandidateInfo( +AArch64InstrInfo::getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { unsigned SequenceSize = std::accumulate( RepeatedSequenceLocs[0].front(), diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h index 80cae6c60711..980f96b12d46 100644 --- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h +++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h @@ -238,7 +238,7 @@ public: bool isFunctionSafeToOutlineFrom(MachineFunction &MF, bool OutlineFromLinkOnceODRs) const override; - outliner::TargetCostInfo getOutlininingCandidateInfo( + outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const override; outliner::InstrType getOutliningType(MachineBasicBlock::iterator &MIT, unsigned Flags) const override; diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 48f21d2abc87..9ba408afe84a 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -7406,7 +7406,7 @@ enum MachineOutlinerClass { }; outliner::TargetCostInfo -X86InstrInfo::getOutlininingCandidateInfo( +X86InstrInfo::getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const { unsigned SequenceSize = std::accumulate( RepeatedSequenceLocs[0].front(), std::next(RepeatedSequenceLocs[0].back()), diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index b38c9ab77ccc..b97acf6054f5 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -544,7 +544,7 @@ public: ArrayRef> getSerializableDirectMachineOperandTargetFlags() const override; - virtual outliner::TargetCostInfo getOutlininingCandidateInfo( + virtual outliner::TargetCostInfo getOutliningCandidateInfo( std::vector &RepeatedSequenceLocs) const override; bool isFunctionSafeToOutlineFrom(MachineFunction &MF,