1 //===- AArch64LegalizerInfo --------------------------------------*- C++ -*-==//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 /// This file declares the targeting of the Machinelegalizer class for
12 /// \todo This should be generated by TableGen.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACHINELEGALIZER_H
16 #define LLVM_LIB_TARGET_AARCH64_AARCH64MACHINELEGALIZER_H
18 #include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
24 /// This class provides the information for the target register banks.
25 class AArch64LegalizerInfo : public LegalizerInfo {
27 AArch64LegalizerInfo();
29 bool legalizeCustom(MachineInstr &MI, MachineRegisterInfo &MRI,
30 MachineIRBuilder &MIRBuilder) const override;
33 bool legalizeVaArg(MachineInstr &MI, MachineRegisterInfo &MRI,
34 MachineIRBuilder &MIRBuilder) const;
36 } // End llvm namespace.