aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-08-24 18:44:37 +0000
committerDan Gohman <dan433584@gmail.com>2015-08-24 18:44:37 +0000
commit7b63484b997e08f98e29f9b50acab85e1a64adf3 (patch)
tree7c6f2ac530d119397d028f7128f950785164ecfb /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent896e53fae806150d7eea7f11efe3738ca924dcd0 (diff)
downloadllvm-7b63484b997e08f98e29f9b50acab85e1a64adf3.zip
llvm-7b63484b997e08f98e29f9b50acab85e1a64adf3.tar.gz
llvm-7b63484b997e08f98e29f9b50acab85e1a64adf3.tar.bz2
[WebAssembly] Skeleton FastISel support
llvm-svn: 245860
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index 4cb3a31..dfeec77 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -151,6 +151,11 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand);
}
+FastISel *WebAssemblyTargetLowering::createFastISel(
+ FunctionLoweringInfo &FuncInfo, const TargetLibraryInfo *LibInfo) const {
+ return WebAssembly::createFastISel(FuncInfo, LibInfo);
+}
+
MVT WebAssemblyTargetLowering::getScalarShiftAmountTy(const DataLayout &DL,
EVT VT) const {
return VT.getSimpleVT();