mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Code refactoring: pull SchedPreference enum from TargetLowering.h to TargetMachine.h and put it in its own namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -97,11 +97,6 @@ public:
|
||||
ZeroOrNegativeOneBooleanContent // All bits equal to bit 0.
|
||||
};
|
||||
|
||||
enum SchedPreference {
|
||||
SchedulingForLatency, // Scheduling for shortest total latency.
|
||||
SchedulingForRegPressure // Scheduling for lowest register pressure.
|
||||
};
|
||||
|
||||
/// NOTE: The constructor takes ownership of TLOF.
|
||||
explicit TargetLowering(const TargetMachine &TM,
|
||||
const TargetLoweringObjectFile *TLOF);
|
||||
@@ -150,7 +145,7 @@ public:
|
||||
BooleanContent getBooleanContents() const { return BooleanContents;}
|
||||
|
||||
/// getSchedulingPreference - Return target scheduling preference.
|
||||
SchedPreference getSchedulingPreference() const {
|
||||
Sched::Preference getSchedulingPreference() const {
|
||||
return SchedPreferenceInfo;
|
||||
}
|
||||
|
||||
@@ -906,7 +901,7 @@ protected:
|
||||
void setBooleanContents(BooleanContent Ty) { BooleanContents = Ty; }
|
||||
|
||||
/// setSchedulingPreference - Specify the target scheduling preference.
|
||||
void setSchedulingPreference(SchedPreference Pref) {
|
||||
void setSchedulingPreference(Sched::Preference Pref) {
|
||||
SchedPreferenceInfo = Pref;
|
||||
}
|
||||
|
||||
@@ -1521,7 +1516,7 @@ private:
|
||||
|
||||
/// SchedPreferenceInfo - The target scheduling preference: shortest possible
|
||||
/// total cycles or lowest register usage.
|
||||
SchedPreference SchedPreferenceInfo;
|
||||
Sched::Preference SchedPreferenceInfo;
|
||||
|
||||
/// JumpBufSize - The size, in bytes, of the target's jmp_buf buffers
|
||||
unsigned JumpBufSize;
|
||||
|
@@ -70,6 +70,13 @@ namespace CodeGenOpt {
|
||||
};
|
||||
}
|
||||
|
||||
namespace Sched {
|
||||
enum Preference {
|
||||
Latency, // Scheduling for shortest total latency.
|
||||
RegPressure // Scheduling for lowest register pressure.
|
||||
};
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
///
|
||||
/// TargetMachine - Primary interface to the complete machine description for
|
||||
|
Reference in New Issue
Block a user