mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Make helpers static. NFC.
This commit is contained in:
parent
c9528722ad
commit
1ba25f1bd7
@ -84,9 +84,8 @@ private:
|
||||
|
||||
} // namespace
|
||||
|
||||
llvm::Optional<llvm::InlineCost>
|
||||
getDefaultInlineAdvice(CallBase &CB, FunctionAnalysisManager &FAM,
|
||||
const InlineParams &Params) {
|
||||
llvm::Optional<llvm::InlineCost> static getDefaultInlineAdvice(
|
||||
CallBase &CB, FunctionAnalysisManager &FAM, const InlineParams &Params) {
|
||||
Function &Caller = *CB.getCaller();
|
||||
ProfileSummaryInfo *PSI =
|
||||
FAM.getResult<ModuleAnalysisManagerFunctionProxy>(Caller)
|
||||
|
@ -23,6 +23,7 @@ using namespace llvm;
|
||||
using namespace llvm::jitlink;
|
||||
using namespace llvm::jitlink::ELF_x86_64_Edges;
|
||||
|
||||
namespace {
|
||||
class ELF_x86_64_GOTAndStubsBuilder
|
||||
: public BasicGOTAndStubsBuilder<ELF_x86_64_GOTAndStubsBuilder> {
|
||||
public:
|
||||
@ -110,6 +111,7 @@ private:
|
||||
Section *GOTSection = nullptr;
|
||||
Section *StubsSection = nullptr;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
const uint8_t ELF_x86_64_GOTAndStubsBuilder::NullGOTEntryContent[8] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
|
@ -1010,6 +1010,7 @@ bool LoopIdiomRecognize::processLoopStridedStore(
|
||||
return true;
|
||||
}
|
||||
|
||||
namespace {
|
||||
class ExpandedValuesCleaner {
|
||||
SCEVExpander &Expander;
|
||||
TargetLibraryInfo *TLI;
|
||||
@ -1032,6 +1033,7 @@ public:
|
||||
}
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
/// If the stored value is a strided load in the same loop with the same stride
|
||||
/// this may be transformable into a memcpy. This kicks in for stuff like
|
||||
|
Loading…
Reference in New Issue
Block a user