aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLowering.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-01 20:10:42 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-01 20:10:42 +0000
commitbd550f62b39902cff3b8437ad50426f924ff7bfa (patch)
tree98de32d8b770b801f66b171fb63b22c96b13d90e /include/llvm/Target/TargetLowering.h
parent6bca06325aadae961ed677f0a77a61d59ca99a8b (diff)
downloadexternal_llvm-bd550f62b39902cff3b8437ad50426f924ff7bfa.zip
external_llvm-bd550f62b39902cff3b8437ad50426f924ff7bfa.tar.gz
external_llvm-bd550f62b39902cff3b8437ad50426f924ff7bfa.tar.bz2
Add comments about DstAlign and SrcAlign.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r--include/llvm/Target/TargetLowering.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index ad6fcef..b0534dd 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -634,8 +634,11 @@ public:
/// getOptimalMemOpType - Returns the target specific optimal type for load
/// and store operations as a result of memset, memcpy, and memmove lowering.
- /// It returns EVT::Other if SelectionDAG should be responsible for
- /// determining it.
+ /// If DstAlign is zero that means it's safe to destination alignment can
+ /// satisfy any constraint. Similarly if SrcAlign is zero it means there isn't
+ /// a need to check it against alignment requirement, probably because the
+ /// source does not need to be loaded. It returns EVT::Other if SelectionDAG
+ /// should be responsible for determining it.
virtual EVT getOptimalMemOpType(uint64_t Size,
unsigned DstAlign, unsigned SrcAlign,
bool SafeToUseFP, SelectionDAG &DAG) const {