blob: cfba4878898471119ad82db232c3a51f616d5691 [file] [log] [blame]
Anton Korobeynikov4403b932009-07-16 13:27:25 +00001//=-- 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
20namespace llvm {
21 class SystemZTargetMachine;
22 class FunctionPass;
23 class raw_ostream;
24
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +000025 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 Korobeynikov10c086c2009-07-16 14:19:54 +000029 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,
42 NO = 13
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +000043 };
44 }
45
Anton Korobeynikov4403b932009-07-16 13:27:25 +000046 FunctionPass *createSystemZISelDag(SystemZTargetMachine &TM,
47 CodeGenOpt::Level OptLevel);
48 FunctionPass *createSystemZCodePrinterPass(raw_ostream &o,
49 SystemZTargetMachine &tm,
50 CodeGenOpt::Level OptLevel,
51 bool verbose);
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +000052
Anton Korobeynikov4403b932009-07-16 13:27:25 +000053} // end namespace llvm;
54
55// Defines symbolic names for SystemZ registers.
56// This defines a mapping from register name to register number.
57#include "SystemZGenRegisterNames.inc"
58
59// Defines symbolic names for the SystemZ instructions.
60#include "SystemZGenInstrNames.inc"
61
62#endif