LLVM API Documentation
00001 //===-- PPCPredicates.h - PPC Branch Predicate Information ------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file describes the PowerPC branch predicates. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_TARGET_POWERPC_PPCPREDICATES_H 00015 #define LLVM_TARGET_POWERPC_PPCPREDICATES_H 00016 00017 #include "PPC.h" 00018 00019 namespace llvm { 00020 namespace PPC { 00021 /// Predicate - These are "(BI << 5) | BO" for various predicates. 00022 enum Predicate { 00023 PRED_ALWAYS = (0 << 5) | 20, 00024 PRED_LT = (0 << 5) | 12, 00025 PRED_LE = (1 << 5) | 4, 00026 PRED_EQ = (2 << 5) | 12, 00027 PRED_GE = (0 << 5) | 4, 00028 PRED_GT = (1 << 5) | 12, 00029 PRED_NE = (2 << 5) | 4, 00030 PRED_UN = (3 << 5) | 12, 00031 PRED_NU = (3 << 5) | 4 00032 }; 00033 00034 /// Invert the specified predicate. != -> ==, < -> >=. 00035 Predicate InvertPredicate(Predicate Opcode); 00036 } 00037 } 00038 00039 #endif
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.