aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-04 23:22:35 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-04 23:22:35 +0000
commit35bfb24c28c2e54afa9a346a12216d5f52742f09 (patch)
tree67806d068a66cce67cce187f544ed4153bedf850 /llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
parentb6761c2e1e1b914dc695780792ffe86c29ce296f (diff)
downloadllvm-35bfb24c28c2e54afa9a346a12216d5f52742f09.zip
llvm-35bfb24c28c2e54afa9a346a12216d5f52742f09.tar.gz
llvm-35bfb24c28c2e54afa9a346a12216d5f52742f09.tar.bz2
[WebAssembly] Initial varargs support.
Full varargs support will depend on prologue/epilogue support, but this patch gets us started with most of the basic infrastructure. Differential Revision: http://reviews.llvm.org/D15231 llvm-svn: 254799
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
index 82296b3..bd06bc39 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
@@ -28,7 +28,9 @@ using namespace llvm;
#include "WebAssemblyGenInstrInfo.inc"
WebAssemblyInstrInfo::WebAssemblyInstrInfo(const WebAssemblySubtarget &STI)
- : RI(STI.getTargetTriple()) {}
+ : WebAssemblyGenInstrInfo(WebAssembly::ADJCALLSTACKDOWN,
+ WebAssembly::ADJCALLSTACKUP),
+ RI(STI.getTargetTriple()) {}
void WebAssemblyInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I,