Path: blob/main/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCFixups.h
35294 views
//===-- SystemZMCFixups.h - SystemZ-specific fixup entries ------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZMCFIXUPS_H9#define LLVM_LIB_TARGET_SYSTEMZ_MCTARGETDESC_SYSTEMZMCFIXUPS_H1011#include "llvm/MC/MCFixup.h"12#include "llvm/MC/MCFixupKindInfo.h"1314namespace llvm {15namespace SystemZ {16enum FixupKind {17// These correspond directly to R_390_* relocations.18FK_390_PC12DBL = FirstTargetFixupKind,19FK_390_PC16DBL,20FK_390_PC24DBL,21FK_390_PC32DBL,22FK_390_TLS_CALL,2324FK_390_S8Imm,25FK_390_S16Imm,26FK_390_S20Imm,27FK_390_S32Imm,28FK_390_U1Imm,29FK_390_U2Imm,30FK_390_U3Imm,31FK_390_U4Imm,32FK_390_U8Imm,33FK_390_U12Imm,34FK_390_U16Imm,35FK_390_U32Imm,36FK_390_U48Imm,3738// Marker39LastTargetFixupKind,40NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind41};4243const static MCFixupKindInfo MCFixupKindInfos[SystemZ::NumTargetFixupKinds] = {44{"FK_390_PC12DBL", 4, 12, MCFixupKindInfo::FKF_IsPCRel},45{"FK_390_PC16DBL", 0, 16, MCFixupKindInfo::FKF_IsPCRel},46{"FK_390_PC24DBL", 0, 24, MCFixupKindInfo::FKF_IsPCRel},47{"FK_390_PC32DBL", 0, 32, MCFixupKindInfo::FKF_IsPCRel},48{"FK_390_TLS_CALL", 0, 0, 0},49{"FK_390_S8Imm", 0, 8, 0},50{"FK_390_S16Imm", 0, 16, 0},51{"FK_390_S20Imm", 4, 20, 0},52{"FK_390_S32Imm", 0, 32, 0},53{"FK_390_U1Imm", 0, 1, 0},54{"FK_390_U2Imm", 0, 2, 0},55{"FK_390_U3Imm", 0, 3, 0},56{"FK_390_U4Imm", 0, 4, 0},57{"FK_390_U8Imm", 0, 8, 0},58{"FK_390_U12Imm", 4, 12, 0},59{"FK_390_U16Imm", 0, 16, 0},60{"FK_390_U32Imm", 0, 32, 0},61{"FK_390_U48Imm", 0, 48, 0},62};63} // end namespace SystemZ64} // end namespace llvm6566#endif676869