summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-08-11 20:13:18 +0000
committerJF Bastien <jfb@google.com>2015-08-11 20:13:18 +0000
commit480c840896a3f9487877e67e54fe6c814c34fac3 (patch)
treebb43309a7cfdcc0481e475f6214ee76737e0188e /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
parentf7b85e0ce207ba5104a46894e688f65c9210d818 (diff)
downloadbcm5719-llvm-480c840896a3f9487877e67e54fe6c814c34fac3.tar.gz
bcm5719-llvm-480c840896a3f9487877e67e54fe6c814c34fac3.zip
WebAssembly: implement WebAssemblyTargetLowering::getTargetNodeName
Summary: Implementation is the same as in AArch64. Subscribers: aemerson, jfb, llvm-commits, sunfish Differential Revision: http://reviews.llvm.org/D11956 llvm-svn: 244655
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
index 12b4fe62864..9af4e455ad2 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
@@ -22,7 +22,7 @@ namespace llvm {
namespace WebAssemblyISD {
-enum {
+enum NodeType : unsigned {
FIRST_NUMBER = ISD::BUILTIN_OP_END,
RETURN,
ARGUMENT,
@@ -47,6 +47,8 @@ private:
MVT getScalarShiftAmountTy(const DataLayout &DL, EVT) const override;
+ const char *getTargetNodeName(unsigned Opcode) const override;
+
bool CanLowerReturn(CallingConv::ID CallConv, MachineFunction &MF,
bool isVarArg,
const SmallVectorImpl<ISD::OutputArg> &Outs,
OpenPOWER on IntegriCloud