2006-05-15 06:18:28 +08:00
|
|
|
//===-- ARM.h - Top-level interface for ARM representation---- --*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
2006-05-15 06:18:28 +08:00
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the entry points for global functions defined in the LLVM
|
|
|
|
// ARM back-end.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef TARGET_ARM_H
|
|
|
|
#define TARGET_ARM_H
|
|
|
|
|
2010-09-16 03:26:06 +08:00
|
|
|
#include "ARMBaseInfo.h"
|
2011-07-15 04:59:42 +08:00
|
|
|
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
2011-06-23 04:40:30 +08:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2009-07-12 04:10:48 +08:00
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
2009-04-30 07:29:43 +08:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2006-05-15 06:18:28 +08:00
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
namespace llvm {
|
2007-01-19 15:51:42 +08:00
|
|
|
|
2011-07-11 11:57:24 +08:00
|
|
|
class ARMAsmPrinter;
|
2009-06-27 05:28:53 +08:00
|
|
|
class ARMBaseTargetMachine;
|
2007-01-19 15:51:42 +08:00
|
|
|
class FunctionPass;
|
2009-05-31 04:51:52 +08:00
|
|
|
class JITCodeEmitter;
|
2011-07-11 11:57:24 +08:00
|
|
|
class MachineInstr;
|
2010-09-18 02:46:17 +08:00
|
|
|
class MCCodeEmitter;
|
2011-07-11 11:57:24 +08:00
|
|
|
class MCInst;
|
|
|
|
class MCInstrInfo;
|
2011-06-23 04:14:52 +08:00
|
|
|
class MCObjectWriter;
|
2011-07-11 11:57:24 +08:00
|
|
|
class MCSubtargetInfo;
|
2010-09-30 10:17:26 +08:00
|
|
|
class TargetAsmBackend;
|
2011-07-11 11:57:24 +08:00
|
|
|
class formatted_raw_ostream;
|
2010-09-18 02:46:17 +08:00
|
|
|
|
2011-07-11 11:57:24 +08:00
|
|
|
MCCodeEmitter *createARMMCCodeEmitter(const MCInstrInfo &MCII,
|
|
|
|
const MCSubtargetInfo &STI,
|
2010-09-18 02:46:17 +08:00
|
|
|
MCContext &Ctx);
|
2007-01-19 15:51:42 +08:00
|
|
|
|
2010-09-30 10:17:26 +08:00
|
|
|
TargetAsmBackend *createARMAsmBackend(const Target &, const std::string &);
|
|
|
|
|
2009-09-28 22:30:20 +08:00
|
|
|
FunctionPass *createARMISelDag(ARMBaseTargetMachine &TM,
|
|
|
|
CodeGenOpt::Level OptLevel);
|
2009-05-31 04:51:52 +08:00
|
|
|
|
2009-06-27 05:28:53 +08:00
|
|
|
FunctionPass *createARMJITCodeEmitterPass(ARMBaseTargetMachine &TM,
|
2009-06-13 17:12:55 +08:00
|
|
|
JITCodeEmitter &JCE);
|
2009-05-31 04:51:52 +08:00
|
|
|
|
2009-06-13 17:12:55 +08:00
|
|
|
FunctionPass *createARMLoadStoreOptimizationPass(bool PreAlloc = false);
|
2009-11-07 07:52:48 +08:00
|
|
|
FunctionPass *createARMExpandPseudoPass();
|
2010-07-25 05:52:08 +08:00
|
|
|
FunctionPass *createARMGlobalMergePass(const TargetLowering* tli);
|
2007-01-19 15:51:42 +08:00
|
|
|
FunctionPass *createARMConstantIslandPass();
|
2009-11-03 09:04:26 +08:00
|
|
|
FunctionPass *createNEONMoveFixPass();
|
2010-12-06 06:04:16 +08:00
|
|
|
FunctionPass *createMLxExpansionPass();
|
2010-07-03 05:07:09 +08:00
|
|
|
FunctionPass *createThumb2ITBlockPass();
|
2009-08-08 11:20:32 +08:00
|
|
|
FunctionPass *createThumb2SizeReductionPass();
|
2009-07-10 09:54:42 +08:00
|
|
|
|
2010-11-15 05:00:02 +08:00
|
|
|
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
2010-12-01 11:45:07 +08:00
|
|
|
ARMAsmPrinter &AP);
|
|
|
|
|
2011-06-23 04:14:52 +08:00
|
|
|
/// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
|
|
|
|
MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS,
|
|
|
|
bool Is64Bit,
|
|
|
|
uint32_t CPUType,
|
|
|
|
uint32_t CPUSubtype);
|
|
|
|
|
2006-05-15 06:18:28 +08:00
|
|
|
} // end namespace llvm;
|
|
|
|
|
|
|
|
#endif
|