1 //===-- LanaiBaseInfo.h - Top level definitions for Lanai MC ----*- C++ -*-===//
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-exception
7 //===----------------------------------------------------------------------===//
9 // This file contains small standalone helper functions and enum definitions for
10 // the Lanai target useful for the compiler back-end and the MC libraries.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H
15 #define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H
17 #include "LanaiMCTargetDesc.h"
18 #include "llvm/MC/MCExpr.h"
19 #include "llvm/Support/DataTypes.h"
20 #include "llvm/Support/ErrorHandling.h"
24 // LanaiII - This namespace holds all of the target specific flags that
25 // instruction info tracks.
27 // Target Operand Flag enum.
29 //===------------------------------------------------------------------===//
30 // Lanai Specific MachineOperand flags.
33 // MO_ABS_HI/LO - Represents the hi or low part of an absolute symbol
38 } // namespace LanaiII
40 static inline unsigned getLanaiRegisterNumbering(unsigned Reg
) {
114 llvm_unreachable("Unknown register number!");
118 #endif // LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H