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 //===----------------------------------------------------------------------===//
23 // Enums corresponding to ARM condition codes
54 static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
56 default: assert(0 && "Unknown condition code");
57 case ARMCC::EQ: return "eq";
58 case ARMCC::NE: return "ne";
59 case ARMCC::CS: return "cs";
60 case ARMCC::CC: return "cc";
61 case ARMCC::MI: return "mi";
62 case ARMCC::PL: return "pl";
63 case ARMCC::VS: return "vs";
64 case ARMCC::VC: return "vc";
65 case ARMCC::HI: return "hi";
66 case ARMCC::LS: return "ls";
67 case ARMCC::GE: return "ge";
68 case ARMCC::LT: return "lt";
69 case ARMCC::GT: return "gt";
70 case ARMCC::LE: return "le";
71 case ARMCC::AL: return "al";
78 FunctionPass *createARMISelDag(TargetMachine &TM);
79 FunctionPass *createARMCodePrinterPass(std::ostream &OS, TargetMachine &TM);
80 FunctionPass *createARMFixMulPass();
81 } // end namespace llvm;
83 // Defines symbolic names for ARM registers. This defines a mapping from
84 // register name to register number.
86 #include "ARMGenRegisterNames.inc"
88 // Defines symbolic names for the ARM instructions.
90 #include "ARMGenInstrNames.inc"