2016-03-28 21:09:54 +08:00
|
|
|
//===-- Lanai.h - Top-level interface for Lanai representation --*- 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
|
2016-03-28 21:09:54 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the entry points for global functions defined in the LLVM
|
|
|
|
// Lanai back-end.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_LANAI_LANAI_H
|
|
|
|
#define LLVM_LIB_TARGET_LANAI_LANAI_H
|
|
|
|
|
2019-06-04 01:02:15 +08:00
|
|
|
#include "llvm/Pass.h"
|
2016-03-28 21:09:54 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class FunctionPass;
|
|
|
|
class LanaiTargetMachine;
|
|
|
|
class MachineFunctionPass;
|
|
|
|
class TargetMachine;
|
|
|
|
class formatted_raw_ostream;
|
|
|
|
|
|
|
|
// createLanaiISelDag - This pass converts a legalized DAG into a
|
|
|
|
// Lanai-specific DAG, ready for instruction scheduling.
|
|
|
|
FunctionPass *createLanaiISelDag(LanaiTargetMachine &TM);
|
|
|
|
|
|
|
|
// createLanaiDelaySlotFillerPass - This pass fills delay slots
|
|
|
|
// with useful instructions or nop's
|
|
|
|
FunctionPass *createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM);
|
|
|
|
|
|
|
|
// createLanaiMemAluCombinerPass - This pass combines loads/stores and
|
|
|
|
// arithmetic operations.
|
|
|
|
FunctionPass *createLanaiMemAluCombinerPass();
|
|
|
|
|
|
|
|
// createLanaiSetflagAluCombinerPass - This pass combines SET_FLAG and ALU
|
|
|
|
// operations.
|
|
|
|
FunctionPass *createLanaiSetflagAluCombinerPass();
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif // LLVM_LIB_TARGET_LANAI_LANAI_H
|