[X86][BMI] Pull out schedule classes from bmi_andn<> and bmi_bls<>
[llvm-core.git] / lib / Target / Lanai / Lanai.h
blob2f06ea91ab03c32279a9feb9c816603a3a4e5fd6
1 //===-- Lanai.h - Top-level interface for Lanai representation --*- 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 //
9 // This file contains the entry points for global functions defined in the LLVM
10 // Lanai back-end.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_LANAI_LANAI_H
15 #define LLVM_LIB_TARGET_LANAI_LANAI_H
17 #include "llvm/Pass.h"
19 namespace llvm {
20 class FunctionPass;
21 class LanaiTargetMachine;
22 class MachineFunctionPass;
23 class TargetMachine;
24 class formatted_raw_ostream;
26 // createLanaiISelDag - This pass converts a legalized DAG into a
27 // Lanai-specific DAG, ready for instruction scheduling.
28 FunctionPass *createLanaiISelDag(LanaiTargetMachine &TM);
30 // createLanaiDelaySlotFillerPass - This pass fills delay slots
31 // with useful instructions or nop's
32 FunctionPass *createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM);
34 // createLanaiMemAluCombinerPass - This pass combines loads/stores and
35 // arithmetic operations.
36 FunctionPass *createLanaiMemAluCombinerPass();
38 // createLanaiSetflagAluCombinerPass - This pass combines SET_FLAG and ALU
39 // operations.
40 FunctionPass *createLanaiSetflagAluCombinerPass();
42 } // namespace llvm
44 #endif // LLVM_LIB_TARGET_LANAI_LANAI_H