Remove dead PPC LR spilling code
[oota-llvm.git] / lib / Target / PowerPC / MCTargetDesc / PPCPredicates.h
1 //===-- PPCPredicates.h - PPC Branch Predicate Information ------*- 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 describes the PowerPC branch predicates.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TARGET_POWERPC_PPCPREDICATES_H
15 #define LLVM_TARGET_POWERPC_PPCPREDICATES_H
16
17 // GCC #defines PPC on Linux but we use it as our namespace name
18 #undef PPC
19
20 // Generated files will use "namespace PPC". To avoid symbol clash,
21 // undefine PPC here. PPC may be predefined on some hosts.
22 #undef PPC
23
24 namespace llvm {
25 namespace PPC {
26   /// Predicate - These are "(BI << 5) | BO"  for various predicates.
27   enum Predicate {
28     PRED_ALWAYS = (0 << 5) | 20,
29     PRED_LT     = (0 << 5) | 12,
30     PRED_LE     = (1 << 5) |  4,
31     PRED_EQ     = (2 << 5) | 12,
32     PRED_GE     = (0 << 5) |  4,
33     PRED_GT     = (1 << 5) | 12,
34     PRED_NE     = (2 << 5) |  4,
35     PRED_UN     = (3 << 5) | 12,
36     PRED_NU     = (3 << 5) |  4
37   };
38   
39   /// Invert the specified predicate.  != -> ==, < -> >=.
40   Predicate InvertPredicate(Predicate Opcode);
41 }
42 }
43
44 #endif