LLVM  9.0.0svn
Lanai.h
Go to the documentation of this file.
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.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_LANAI_LANAI_H
15 #define LLVM_LIB_TARGET_LANAI_LANAI_H
16 
17 #include "LanaiAluCode.h"
18 #include "LanaiCondCode.h"
23 
24 namespace llvm {
25 class FunctionPass;
26 class LanaiTargetMachine;
27 class MachineFunctionPass;
28 class TargetMachine;
29 class formatted_raw_ostream;
30 
31 // createLanaiISelDag - This pass converts a legalized DAG into a
32 // Lanai-specific DAG, ready for instruction scheduling.
33 FunctionPass *createLanaiISelDag(LanaiTargetMachine &TM);
34 
35 // createLanaiDelaySlotFillerPass - This pass fills delay slots
36 // with useful instructions or nop's
37 FunctionPass *createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM);
38 
39 // createLanaiMemAluCombinerPass - This pass combines loads/stores and
40 // arithmetic operations.
41 FunctionPass *createLanaiMemAluCombinerPass();
42 
43 // createLanaiSetflagAluCombinerPass - This pass combines SET_FLAG and ALU
44 // operations.
45 FunctionPass *createLanaiSetflagAluCombinerPass();
46 
47 Target &getTheLanaiTarget();
48 } // namespace llvm
49 
50 #endif // LLVM_LIB_TARGET_LANAI_LANAI_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
Target & getTheLanaiTarget()
FunctionPass * createLanaiMemAluCombinerPass()
FunctionPass * createLanaiDelaySlotFillerPass(const LanaiTargetMachine &TM)
FunctionPass * createLanaiSetflagAluCombinerPass()
FunctionPass * createLanaiISelDag(LanaiTargetMachine &TM)