summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-02-05 20:57:40 +0000
committerThomas Lively <tlively@google.com>2019-02-05 20:57:40 +0000
commit315056692d67792221810af0adea146a674af151 (patch)
tree9a1dcac5b2078ac2a12498d602f02516b74b941c /llvm/lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h
parenta53eb79be683120402e7e57aebb47b36fc259066 (diff)
downloadbcm5719-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.h5
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
OpenPOWER on IntegriCloud