1 //===-- ARM.h - Top-level interface for ARM representation---- --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the entry points for global functions defined in the LLVM
13 //===----------------------------------------------------------------------===//
23 class ARMTargetMachine;
25 class MachineCodeEmitter;
27 // Enums corresponding to ARM condition codes
47 inline static CondCodes getOppositeCondition(CondCodes CC){
49 default: assert(0 && "Unknown condition code");
68 inline static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
70 default: assert(0 && "Unknown condition code");
71 case ARMCC::EQ: return "eq";
72 case ARMCC::NE: return "ne";
73 case ARMCC::HS: return "hs";
74 case ARMCC::LO: return "lo";
75 case ARMCC::MI: return "mi";
76 case ARMCC::PL: return "pl";
77 case ARMCC::VS: return "vs";
78 case ARMCC::VC: return "vc";
79 case ARMCC::HI: return "hi";
80 case ARMCC::LS: return "ls";
81 case ARMCC::GE: return "ge";
82 case ARMCC::LT: return "lt";
83 case ARMCC::GT: return "gt";
84 case ARMCC::LE: return "le";
85 case ARMCC::AL: return "al";
89 FunctionPass *createARMISelDag(ARMTargetMachine &TM);
90 FunctionPass *createARMCodePrinterPass(std::ostream &O, ARMTargetMachine &TM);
91 FunctionPass *createARMCodeEmitterPass(ARMTargetMachine &TM,
92 MachineCodeEmitter &MCE);
93 FunctionPass *createARMLoadStoreOptimizationPass();
94 FunctionPass *createARMConstantIslandPass();
96 } // end namespace llvm;
98 // Defines symbolic names for ARM registers. This defines a mapping from
99 // register name to register number.
101 #include "ARMGenRegisterNames.inc"
103 // Defines symbolic names for the ARM instructions.
105 #include "ARMGenInstrNames.inc"