mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
VLIW specific scheduler framework that utilizes deterministic finite automaton (DFA).
This new scheduler plugs into the existing selection DAG scheduling framework. It is a top-down critical path scheduler that tracks register pressure and uses a DFA for pipeline modeling. Patch by Sergei Larin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define LLVM_TARGET_TARGETINSTRINFO_H
|
||||
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/CodeGen/DFAPacketizer.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
|
||||
namespace llvm {
|
||||
@@ -811,6 +812,12 @@ public:
|
||||
breakPartialRegDependency(MachineBasicBlock::iterator MI, unsigned OpNum,
|
||||
const TargetRegisterInfo *TRI) const {}
|
||||
|
||||
/// Create machine specific model for scheduling.
|
||||
virtual DFAPacketizer*
|
||||
CreateTargetScheduleState(const TargetMachine*, const ScheduleDAG*) const {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
private:
|
||||
int CallFrameSetupOpcode, CallFrameDestroyOpcode;
|
||||
};
|
||||
|
||||
@@ -59,7 +59,8 @@ namespace llvm {
|
||||
Source, // Follow source order.
|
||||
RegPressure, // Scheduling for lowest register pressure.
|
||||
Hybrid, // Scheduling for both latency and register pressure.
|
||||
ILP // Scheduling for ILP in low register pressure mode.
|
||||
ILP, // Scheduling for ILP in low register pressure mode.
|
||||
VLIW // Scheduling for VLIW targets.
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user