//===-- LanaiBaseInfo.h - Top level definitions for Lanai MC ----*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file contains small standalone helper functions and enum definitions for // the Lanai target useful for the compiler back-end and the MC libraries. // //===----------------------------------------------------------------------===// #ifndef LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H #define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H #include "LanaiMCTargetDesc.h" #include "llvm/MC/MCExpr.h" #include "llvm/Support/DataTypes.h" #include "llvm/Support/ErrorHandling.h" namespace llvm { // LanaiII - This namespace holds all of the target specific flags that // instruction info tracks. namespace LanaiII { // Target Operand Flag enum. enum TOF { … }; } // namespace LanaiII static inline unsigned getLanaiRegisterNumbering(unsigned Reg) { … } } // namespace llvm #endif // LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIBASEINFO_H