43 lines · c
1//===-- LanaiFixupKinds.h - Lanai Specific Fixup Entries --------*- 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#ifndef LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIFIXUPKINDS_H10#define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIFIXUPKINDS_H11 12#include "llvm/MC/MCFixup.h"13 14namespace llvm {15namespace Lanai {16// Although most of the current fixup types reflect a unique relocation17// one can have multiple fixup types for a given relocation and thus need18// to be uniquely named.19//20// This table *must* be in the save order of21// MCFixupKindInfo Infos[Lanai::NumTargetFixupKinds]22// in LanaiAsmBackend.cpp.23//24enum Fixups {25 // Results in R_Lanai_NONE26 FIXUP_LANAI_NONE = FirstTargetFixupKind,27 28 FIXUP_LANAI_21, // 21-bit symbol relocation29 FIXUP_LANAI_21_F, // 21-bit symbol relocation, last two bits masked to 030 FIXUP_LANAI_25, // 25-bit branch targets31 FIXUP_LANAI_32, // general 32-bit relocation32 FIXUP_LANAI_HI16, // upper 16-bits of a symbolic relocation33 FIXUP_LANAI_LO16, // lower 16-bits of a symbolic relocation34 35 // Marker36 LastTargetFixupKind,37 NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind38};39} // namespace Lanai40} // namespace llvm41 42#endif // LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIFIXUPKINDS_H43