LLVM  3.7.0
WebAssemblyInstrInfo.h
Go to the documentation of this file.
1 //=- WebAssemblyInstrInfo.h - WebAssembly Instruction Information -*- C++ -*-=//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief This file contains the WebAssembly implementation of the
12 /// TargetInstrInfo class.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYINSTRINFO_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYINSTRINFO_H
18 
21 
22 namespace llvm {
23 
24 class WebAssemblySubtarget;
25 
26 class WebAssemblyInstrInfo final {
27  const WebAssemblyRegisterInfo RI;
28 
29 public:
30  explicit WebAssemblyInstrInfo(const WebAssemblySubtarget &STI);
31 
32  const WebAssemblyRegisterInfo &getRegisterInfo() const { return RI; }
33 };
34 
35 } // end namespace llvm
36 
37 #endif
This file contains the WebAssembly implementation of the WebAssemblyRegisterInfo class.
const WebAssemblyRegisterInfo & getRegisterInfo() const
WebAssemblyInstrInfo(const WebAssemblySubtarget &STI)