59 lines · c
1//===- ARCInfo.h - Additional ARC Info --------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains small standalone helper functions and enum definitions for10// the ARC target useful for the compiler back-end and the MC libraries.11// As such, it deliberately does not include references to LLVM core12// code gen types, passes, etc..13//14//===----------------------------------------------------------------------===//15 16#ifndef LLVM_LIB_TARGET_ARC_MCTARGETDESC_ARCINFO_H17#define LLVM_LIB_TARGET_ARC_MCTARGETDESC_ARCINFO_H18 19namespace llvm {20 21// Enums corresponding to ARC condition codes22namespace ARCCC {23 24enum CondCode {25 AL = 0x0,26 EQ = 0x1,27 NE = 0x2,28 P = 0x3,29 N = 0x4,30 LO = 0x5,31 HS = 0x6,32 VS = 0x7,33 VC = 0x8,34 GT = 0x9,35 GE = 0xa,36 LT = 0xb,37 LE = 0xc,38 HI = 0xd,39 LS = 0xe,40 PNZ = 0xf,41 Z = 0x11, // Low 4-bits = EQ42 NZ = 0x12 // Low 4-bits = NE43};44 45enum BRCondCode {46 BREQ = 0x0,47 BRNE = 0x1,48 BRLT = 0x2,49 BRGE = 0x3,50 BRLO = 0x4,51 BRHS = 0x552};53 54} // end namespace ARCCC55 56} // end namespace llvm57 58#endif59