1 //===-- Lanai.h - Top-level interface for Lanai representation --*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains the entry points for global functions defined in the LLVM
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_LANAI_LANAI_H
15 #define LLVM_LIB_TARGET_LANAI_LANAI_H
17 #include "llvm/Pass.h"
21 class LanaiTargetMachine
;
24 // createLanaiISelDag - This pass converts a legalized DAG into a
25 // Lanai-specific DAG, ready for instruction scheduling.
26 FunctionPass
*createLanaiISelDag(LanaiTargetMachine
&TM
);
28 // createLanaiDelaySlotFillerPass - This pass fills delay slots
29 // with useful instructions or nop's
30 FunctionPass
*createLanaiDelaySlotFillerPass(const LanaiTargetMachine
&TM
);
32 // createLanaiMemAluCombinerPass - This pass combines loads/stores and
33 // arithmetic operations.
34 FunctionPass
*createLanaiMemAluCombinerPass();
36 // createLanaiSetflagAluCombinerPass - This pass combines SET_FLAG and ALU
38 FunctionPass
*createLanaiSetflagAluCombinerPass();
40 void initializeLanaiDAGToDAGISelLegacyPass(PassRegistry
&);
44 #endif // LLVM_LIB_TARGET_LANAI_LANAI_H