aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLowering.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-16 20:11:05 +0000
committerDan Gohman <gohman@apple.com>2010-04-16 20:11:05 +0000
commit73ef7117b326c96f9e8b841d07e497ae68baf604 (patch)
tree11aa66baa54d47a00c69fd98aa2ada1947275fcb /include/llvm/Target/TargetLowering.h
parent1f76cfe7cbc4deb9cf136f2083ffccdc44b245df (diff)
downloadexternal_llvm-73ef7117b326c96f9e8b841d07e497ae68baf604.zip
external_llvm-73ef7117b326c96f9e8b841d07e497ae68baf604.tar.gz
external_llvm-73ef7117b326c96f9e8b841d07e497ae68baf604.tar.bz2
Eliminate an unnecessary SelectionDAG dependency in getOptimalMemOpType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r--include/llvm/Target/TargetLowering.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 1272c60..811f173 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -632,12 +632,12 @@ public:
/// non-scalar-integer type, e.g. empty string source, constant, or loaded
/// from memory. 'MemcpyStrSrc' indicates whether the memcpy source is
/// constant so it does not need to be loaded.
- /// It returns EVT::Other if SelectionDAG should be responsible for
- /// determining the type.
+ /// It returns EVT::Other if the type should be determined using generic
+ /// target-independent logic.
virtual EVT getOptimalMemOpType(uint64_t Size,
unsigned DstAlign, unsigned SrcAlign,
bool NonScalarIntSafe, bool MemcpyStrSrc,
- SelectionDAG &DAG) const {
+ MachineFunction &MF) const {
return MVT::Other;
}