2018-02-23 19:06:40 +08:00
|
|
|
//===- MipsLegalizerInfo ----------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-02-23 19:06:40 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// \file
|
|
|
|
/// This file declares the targeting of the Machinelegalizer class for Mips.
|
|
|
|
/// \todo This should be generated by TableGen.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_MIPS_MIPSMACHINELEGALIZER_H
|
|
|
|
#define LLVM_LIB_TARGET_MIPS_MIPSMACHINELEGALIZER_H
|
|
|
|
|
2018-12-06 04:14:52 +08:00
|
|
|
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
|
2018-02-23 19:06:40 +08:00
|
|
|
#include "llvm/CodeGen/GlobalISel/LegalizerInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MipsSubtarget;
|
|
|
|
|
|
|
|
/// This class provides legalization strategies.
|
|
|
|
class MipsLegalizerInfo : public LegalizerInfo {
|
|
|
|
public:
|
|
|
|
MipsLegalizerInfo(const MipsSubtarget &ST);
|
2018-10-09 07:59:37 +08:00
|
|
|
|
2020-06-10 05:02:12 +08:00
|
|
|
bool legalizeCustom(LegalizerHelper &Helper, MachineInstr &MI) const override;
|
2019-07-19 08:24:45 +08:00
|
|
|
|
2020-06-10 05:02:12 +08:00
|
|
|
bool legalizeIntrinsic(LegalizerHelper &Helper,
|
|
|
|
MachineInstr &MI) const override;
|
2018-02-23 19:06:40 +08:00
|
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif
|