diff options
| author | Dan Gohman <gohman@apple.com> | 2010-05-11 17:31:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-05-11 17:31:57 +0000 |
| commit | cfbb32346a7eca19d4dc00fd2c1a0248537b3497 (patch) | |
| tree | 20b7a3cacb1caf30c5a01d5aada920582459763e /include/llvm/CodeGen | |
| parent | b136be81a362af36d7bf3411670061e722037e59 (diff) | |
| download | external_llvm-cfbb32346a7eca19d4dc00fd2c1a0248537b3497.zip external_llvm-cfbb32346a7eca19d4dc00fd2c1a0248537b3497.tar.gz external_llvm-cfbb32346a7eca19d4dc00fd2c1a0248537b3497.tar.bz2 | |
Implement a bunch more TargetSelectionDAGInfo infrastructure.
Move EmitTargetCodeForMemcpy, EmitTargetCodeForMemset, and
EmitTargetCodeForMemmove out of TargetLowering and into
SelectionDAGInfo to exercise this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index b1af0ab..97202bd 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -36,6 +36,7 @@ class MDNode; class SDNodeOrdering; class SDDbgValue; class TargetLowering; +class TargetSelectionDAGInfo; template<> struct ilist_traits<SDNode> : public ilist_default_traits<SDNode> { private: @@ -131,6 +132,7 @@ void checkForCycles(const SelectionDAG *DAG); class SelectionDAG { const TargetMachine &TM; const TargetLowering &TLI; + const TargetSelectionDAGInfo &TSI; MachineFunction *MF; FunctionLoweringInfo &FLI; LLVMContext *Context; @@ -201,6 +203,7 @@ public: MachineFunction &getMachineFunction() const { return *MF; } const TargetMachine &getTarget() const { return TM; } const TargetLowering &getTargetLoweringInfo() const { return TLI; } + const TargetSelectionDAGInfo &getSelectionDAGInfo() const { return TSI; } FunctionLoweringInfo &getFunctionLoweringInfo() const { return FLI; } LLVMContext *getContext() const {return Context; } |
