1 //===-- ARM.h - Top-level interface for ARM representation---- --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the "Instituto Nokia de Tecnologia" and
6 // is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 // This file contains the entry points for global functions defined in the LLVM
14 //===----------------------------------------------------------------------===//
24 class ARMTargetMachine;
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 *createARMLoadStoreOptimizationPass();
92 FunctionPass *createARMConstantIslandPass();
94 } // end namespace llvm;
96 // Defines symbolic names for ARM registers. This defines a mapping from
97 // register name to register number.
99 #include "ARMGenRegisterNames.inc"
101 // Defines symbolic names for the ARM instructions.
103 #include "ARMGenInstrNames.inc"