blob: 270c7a747b268487aefcddc47069f78a1d768561 [file] [log] [blame]
Tony Linthicumb4b54152011-12-12 21:14:40 +00001//=-- Hexagon.h - Top-level interface for Hexagon representation --*- C++ -*-=//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the entry points for global functions defined in the LLVM
11// Hexagon back-end.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef TARGET_Hexagon_H
16#define TARGET_Hexagon_H
17
Tony Linthicumd239ff62011-12-15 22:29:08 +000018#include "MCTargetDesc/HexagonMCTargetDesc.h"
Tony Linthicumb4b54152011-12-12 21:14:40 +000019#include "llvm/Target/TargetLowering.h"
20
21namespace llvm {
22 class FunctionPass;
23 class TargetMachine;
24 class HexagonTargetMachine;
25 class raw_ostream;
26
27 FunctionPass *createHexagonISelDag(HexagonTargetMachine &TM);
28 FunctionPass *createHexagonDelaySlotFillerPass(TargetMachine &TM);
29 FunctionPass *createHexagonFPMoverPass(TargetMachine &TM);
30 FunctionPass *createHexagonRemoveExtendOps(HexagonTargetMachine &TM);
31 FunctionPass *createHexagonCFGOptimizer(HexagonTargetMachine &TM);
32
33 FunctionPass* createHexagonSplitTFRCondSets(HexagonTargetMachine &TM);
34 FunctionPass* createHexagonExpandPredSpillCode(HexagonTargetMachine &TM);
35
36 FunctionPass *createHexagonHardwareLoops();
Sirish Pandeab7955b2012-02-15 18:52:27 +000037 FunctionPass *createHexagonPeephole();
Tony Linthicumb4b54152011-12-12 21:14:40 +000038 FunctionPass *createHexagonFixupHwLoops();
39
Tony Linthicumb4b54152011-12-12 21:14:40 +000040} // end namespace llvm;
41
Tony Linthicumb4b54152011-12-12 21:14:40 +000042#define Hexagon_POINTER_SIZE 4
43
44#define Hexagon_PointerSize (Hexagon_POINTER_SIZE)
45#define Hexagon_PointerSize_Bits (Hexagon_POINTER_SIZE * 8)
46#define Hexagon_WordSize Hexagon_PointerSize
47#define Hexagon_WordSize_Bits Hexagon_PointerSize_Bits
48
49// allocframe saves LR and FP on stack before allocating
50// a new stack frame. This takes 8 bytes.
51#define HEXAGON_LRFP_SIZE 8
52
53#endif