xref: /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h (revision 069ac18495ad8fde2748bc94b0f80a50250bb01d)
1 //===-- RISCVLegalizerInfo.h ------------------------------------*- 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 declares the targeting of the Machinelegalizer class for RISC-V.
10 /// \todo This should be generated by TableGen.
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_RISCV_RISCVMACHINELEGALIZER_H
14 #define LLVM_LIB_TARGET_RISCV_RISCVMACHINELEGALIZER_H
15 
16 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
17 
18 namespace llvm {
19 
20 class RISCVSubtarget;
21 
22 /// This class provides the information for the target register banks.
23 class RISCVLegalizerInfo : public LegalizerInfo {
24 public:
25   RISCVLegalizerInfo(const RISCVSubtarget &ST);
26 };
27 } // end namespace llvm
28 #endif
29