| 1 | //===-- WebAssemblyRegisterBankInfo.cpp -------------------------*- C++ -*-===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// \file |
| 9 | /// This file implements the targeting of the RegisterBankInfo class for |
| 10 | /// WebAssembly. |
| 11 | /// \todo This should be generated by TableGen. |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #include "WebAssemblyRegisterBankInfo.h" |
| 15 | #include "MCTargetDesc/WebAssemblyMCTargetDesc.h" |
| 16 | #include "llvm/CodeGen/TargetRegisterInfo.h" |
| 17 | |
| 18 | #define GET_TARGET_REGBANK_IMPL |
| 19 | |
| 20 | #include "WebAssemblyGenRegisterBank.inc" |
| 21 | |
| 22 | namespace llvm { |
| 23 | namespace WebAssembly {} // namespace WebAssembly |
| 24 | } // namespace llvm |
| 25 | |
| 26 | using namespace llvm; |
| 27 | |
| 28 | WebAssemblyRegisterBankInfo::WebAssemblyRegisterBankInfo( |
| 29 | const TargetRegisterInfo &TRI) {} |
| 30 | |
| 31 | const RegisterBankInfo::InstructionMapping & |
| 32 | WebAssemblyRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { |
| 33 | return getInvalidInstructionMapping(); |
| 34 | } |
| 35 |