diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-09-18 21:02:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-09-18 21:02:19 +0000 |
commit | fb2e752e4175920d0531f2afc93a23d0cdf4db14 (patch) | |
tree | c6166fa63d13ce47ec36ccde2eb8600d49e49c0d /lib/CodeGen/ScheduleDAGInstrs.h | |
parent | 558b79a399b0b6642e193d4fe59ac01e1f9cbba4 (diff) | |
download | llvm-fb2e752e4175920d0531f2afc93a23d0cdf4db14.tar.gz llvm-fb2e752e4175920d0531f2afc93a23d0cdf4db14.tar.bz2 llvm-fb2e752e4175920d0531f2afc93a23d0cdf4db14.tar.xz |
Enhance EmitInstrWithCustomInserter() so target can specify CFG changes that sdisel will use to properly complete phi nodes.
Not functionality change yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.h')
-rw-r--r-- | lib/CodeGen/ScheduleDAGInstrs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.h b/lib/CodeGen/ScheduleDAGInstrs.h index 929bdaa4b1..e928ca1202 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.h +++ b/lib/CodeGen/ScheduleDAGInstrs.h @@ -15,12 +15,13 @@ #ifndef SCHEDULEDAGINSTRS_H #define SCHEDULEDAGINSTRS_H -#include "llvm/ADT/SmallSet.h" #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/CodeGen/ScheduleDAG.h" #include "llvm/Support/Compiler.h" #include "llvm/Target/TargetRegisterInfo.h" +#include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SmallSet.h" #include <map> namespace llvm { @@ -166,7 +167,8 @@ namespace llvm { virtual void ComputeOperandLatency(SUnit *Def, SUnit *Use, SDep& dep) const; - virtual MachineBasicBlock *EmitSchedule(); + virtual MachineBasicBlock* + EmitSchedule(DenseMap<MachineBasicBlock*, MachineBasicBlock*>*); /// StartBlock - Prepare to perform scheduling in the given block. /// |