Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 1 | //=-- SystemZ.h - Top-level interface for SystemZ representation -*- C++ -*-==// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the entry points for global functions defined in |
| 11 | // the LLVM SystemZ backend. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_TARGET_SystemZ_H |
| 16 | #define LLVM_TARGET_SystemZ_H |
| 17 | |
| 18 | #include "llvm/Target/TargetMachine.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | class SystemZTargetMachine; |
| 22 | class FunctionPass; |
Anton Korobeynikov | 147a9a7 | 2009-07-16 14:36:52 +0000 | [diff] [blame] | 23 | class formatted_raw_ostream; |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 24 | |
Anton Korobeynikov | 9ad3dd5 | 2009-07-16 13:52:31 +0000 | [diff] [blame] | 25 | namespace SystemZCC { |
| 26 | // SystemZ specific condition code. These correspond to SYSTEMZ_*_COND in |
| 27 | // SystemZInstrInfo.td. They must be kept in synch. |
| 28 | enum CondCodes { |
Anton Korobeynikov | e3562ab | 2009-07-16 14:19:54 +0000 | [diff] [blame] | 29 | O = 0, |
| 30 | H = 1, |
| 31 | NLE = 2, |
| 32 | L = 3, |
| 33 | NHE = 4, |
| 34 | LH = 5, |
| 35 | NE = 6, |
| 36 | E = 7, |
| 37 | NLH = 8, |
| 38 | HE = 9, |
| 39 | NL = 10, |
| 40 | LE = 11, |
| 41 | NH = 12, |
Anton Korobeynikov | 8a98a4a | 2009-07-16 14:32:19 +0000 | [diff] [blame] | 42 | NO = 13, |
| 43 | INVALID = -1 |
Anton Korobeynikov | 9ad3dd5 | 2009-07-16 13:52:31 +0000 | [diff] [blame] | 44 | }; |
| 45 | } |
| 46 | |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 47 | FunctionPass *createSystemZISelDag(SystemZTargetMachine &TM, |
| 48 | CodeGenOpt::Level OptLevel); |
Anton Korobeynikov | 9ad3dd5 | 2009-07-16 13:52:31 +0000 | [diff] [blame] | 49 | |
Daniel Dunbar | 0b0441e | 2009-07-18 23:03:22 +0000 | [diff] [blame] | 50 | extern Target TheSystemZTarget; |
| 51 | |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 52 | } // end namespace llvm; |
| 53 | |
| 54 | // Defines symbolic names for SystemZ registers. |
| 55 | // This defines a mapping from register name to register number. |
| 56 | #include "SystemZGenRegisterNames.inc" |
| 57 | |
| 58 | // Defines symbolic names for the SystemZ instructions. |
| 59 | #include "SystemZGenInstrNames.inc" |
| 60 | |
| 61 | #endif |