LLVM 20.0.0git
Macros | Functions
SparcAsmBackend.cpp File Reference
#include "MCTargetDesc/SparcFixupKinds.h"
#include "MCTargetDesc/SparcMCTargetDesc.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixupKindInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCValue.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/BinaryFormat/ELFRelocs/Sparc.def"

Go to the source code of this file.

Macros

#define ELF_RELOC(X, Y)   .Case(#X, Y)
 

Functions

static unsigned adjustFixupValue (unsigned Kind, uint64_t Value)
 
static unsigned getFixupKindNumBytes (unsigned Kind)
 getFixupKindNumBytes - The number of bytes the fixup may change.
 

Macro Definition Documentation

◆ ELF_RELOC

#define ELF_RELOC (   X,
  Y 
)    .Case(#X, Y)

Function Documentation

◆ adjustFixupValue()

static unsigned adjustFixupValue ( unsigned  Kind,
uint64_t  Value 
)
static

Definition at line 24 of file SparcAsmBackend.cpp.

References assert(), llvm::Sparc::fixup_sparc_13, llvm::Sparc::fixup_sparc_br16, llvm::Sparc::fixup_sparc_br19, llvm::Sparc::fixup_sparc_br22, llvm::Sparc::fixup_sparc_call30, llvm::Sparc::fixup_sparc_got10, llvm::Sparc::fixup_sparc_got13, llvm::Sparc::fixup_sparc_got22, llvm::Sparc::fixup_sparc_gotdata_hix22, llvm::Sparc::fixup_sparc_gotdata_lox10, llvm::Sparc::fixup_sparc_gotdata_op, llvm::Sparc::fixup_sparc_h44, llvm::Sparc::fixup_sparc_hh, llvm::Sparc::fixup_sparc_hi22, llvm::Sparc::fixup_sparc_hix22, llvm::Sparc::fixup_sparc_hm, llvm::Sparc::fixup_sparc_l44, llvm::Sparc::fixup_sparc_lm, llvm::Sparc::fixup_sparc_lo10, llvm::Sparc::fixup_sparc_lox10, llvm::Sparc::fixup_sparc_m44, llvm::Sparc::fixup_sparc_pc10, llvm::Sparc::fixup_sparc_pc22, llvm::Sparc::fixup_sparc_tls_gd_add, llvm::Sparc::fixup_sparc_tls_gd_call, llvm::Sparc::fixup_sparc_tls_gd_hi22, llvm::Sparc::fixup_sparc_tls_gd_lo10, llvm::Sparc::fixup_sparc_tls_ie_add, llvm::Sparc::fixup_sparc_tls_ie_hi22, llvm::Sparc::fixup_sparc_tls_ie_ld, llvm::Sparc::fixup_sparc_tls_ie_ldx, llvm::Sparc::fixup_sparc_tls_ie_lo10, llvm::Sparc::fixup_sparc_tls_ldm_add, llvm::Sparc::fixup_sparc_tls_ldm_call, llvm::Sparc::fixup_sparc_tls_ldm_hi22, llvm::Sparc::fixup_sparc_tls_ldm_lo10, llvm::Sparc::fixup_sparc_tls_ldo_add, llvm::Sparc::fixup_sparc_tls_ldo_hix22, llvm::Sparc::fixup_sparc_tls_ldo_lox10, llvm::Sparc::fixup_sparc_tls_le_hix22, llvm::Sparc::fixup_sparc_tls_le_lox10, llvm::Sparc::fixup_sparc_wplt30, llvm::FK_Data_1, llvm::FK_Data_2, llvm::FK_Data_4, llvm::FK_Data_8, and llvm_unreachable.

◆ getFixupKindNumBytes()

static unsigned getFixupKindNumBytes ( unsigned  Kind)
static

getFixupKindNumBytes - The number of bytes the fixup may change.

Definition at line 118 of file SparcAsmBackend.cpp.

References llvm::FK_Data_1, llvm::FK_Data_2, and llvm::FK_Data_8.