summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/BPFISelLowering.h
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2019-04-30 08:38:12 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2019-04-30 08:38:12 +0000
commit180f1ae57c9dfe7725b0eea1b6e463d933bced86 (patch)
treedc59fb88be8d446a7012d72d59d680a7489eabc2 /llvm/lib/Target/BPF/BPFISelLowering.h
parent06d00afa61eef8f7f501ebdb4e8612ea43ec2d78 (diff)
downloadbcm5719-llvm-180f1ae57c9dfe7725b0eea1b6e463d933bced86.tar.gz
bcm5719-llvm-180f1ae57c9dfe7725b0eea1b6e463d933bced86.zip
[TargetLowering] Change getOptimalMemOpType to take a function attribute list
The MachineFunction wasn't used in getOptimalMemOpType, but more importantly, this allows reuse of findOptimalMemOpLowering that is calling getOptimalMemOpType. This is the groundwork for the changes in D59766 and D59787, that allows implementation of TTI::getMemcpyCost. Differential Revision: https://reviews.llvm.org/D59785 llvm-svn: 359537
Diffstat (limited to 'llvm/lib/Target/BPF/BPFISelLowering.h')
-rw-r--r--llvm/lib/Target/BPF/BPFISelLowering.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.h b/llvm/lib/Target/BPF/BPFISelLowering.h
index 2a44165de69..b81bf4e1320 100644
--- a/llvm/lib/Target/BPF/BPFISelLowering.h
+++ b/llvm/lib/Target/BPF/BPFISelLowering.h
@@ -101,7 +101,7 @@ private:
EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign, unsigned SrcAlign,
bool IsMemset, bool ZeroMemset, bool MemcpyStrSrc,
- MachineFunction &MF) const override {
+ const AttributeList &FuncAttributes) const override {
return Size >= 8 ? MVT::i64 : MVT::i32;
}
OpenPOWER on IntegriCloud