diff options
author | Thomas Lively <tlively@google.com> | 2019-02-05 20:57:40 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-02-05 20:57:40 +0000 |
commit | 315056692d67792221810af0adea146a674af151 (patch) | |
tree | 9a1dcac5b2078ac2a12498d602f02516b74b941c /llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h | |
parent | a53eb79be683120402e7e57aebb47b36fc259066 (diff) | |
download | bcm5719-llvm-315056692d67792221810af0adea146a674af151.tar.gz bcm5719-llvm-315056692d67792221810af0adea146a674af151.zip |
[WebAssembly] Lower memmove to memory.copy
Summary: The lowering is identical to the memcpy lowering.
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57727
llvm-svn: 353216
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h index 349a7c94621..29e23e96aeb 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h @@ -28,6 +28,11 @@ public: bool AlwaysInline, MachinePointerInfo DstPtrInfo, MachinePointerInfo SrcPtrInfo) const override; + SDValue EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, + SDValue Chain, SDValue Op1, SDValue Op2, + SDValue Op3, unsigned Align, bool isVolatile, + MachinePointerInfo DstPtrInfo, + MachinePointerInfo SrcPtrInfo) const override; }; } // end namespace llvm |