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"
|
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
|
|
|
|
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;
|
2009-07-15 04:18:05 +08:00
|
|
|
class formatted_raw_ostream;
|
2010-09-18 02:46:17 +08:00
|
|
|
class MCCodeEmitter;
|
2010-09-30 10:17:26 +08:00
|
|
|
class TargetAsmBackend;
|
2010-11-15 04:58:38 +08:00
|
|
|
class MachineInstr;
|
|
|
|
class AsmPrinter;
|
|
|
|
class MCInst;
|
2010-09-18 02:46:17 +08:00
|
|
|
|
|
|
|
MCCodeEmitter *createARMMCCodeEmitter(const Target &,
|
|
|
|
TargetMachine &TM,
|
|
|
|
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-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
|
|
|
|
2009-07-19 07:03:22 +08:00
|
|
|
extern Target TheARMTarget, TheThumbTarget;
|
|
|
|
|
2010-11-15 04:58:38 +08:00
|
|
|
void LowerToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP);
|
|
|
|
|
2006-05-15 06:18:28 +08:00
|
|
|
} // end namespace llvm;
|
|
|
|
|
|
|
|
#endif
|