LLVM  16.0.0git
Macros | Functions
LoongArchAsmBackend.cpp File Reference
#include "LoongArchAsmBackend.h"
#include "LoongArchFixupKinds.h"
#include "llvm/MC/MCAsmLayout.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/BinaryFormat/ELFRelocs/LoongArch.def"
Include dependency graph for LoongArchAsmBackend.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "loongarch-asmbackend"
 
#define ELF_RELOC(X, Y)   .Case(#X, Y)
 

Functions

static void reportOutOfRangeError (MCContext &Ctx, SMLoc Loc, unsigned N)
 
static uint64_t adjustFixupValue (const MCFixup &Fixup, uint64_t Value, MCContext &Ctx)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loongarch-asmbackend"

Definition at line 23 of file LoongArchAsmBackend.cpp.

◆ ELF_RELOC

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

Function Documentation

◆ adjustFixupValue()

static uint64_t adjustFixupValue ( const MCFixup Fixup,
uint64_t  Value,
MCContext Ctx 
)
static

◆ reportOutOfRangeError()

static void reportOutOfRangeError ( MCContext Ctx,
SMLoc  Loc,
unsigned  N 
)
static

Definition at line 80 of file LoongArchAsmBackend.cpp.

References llvm::maxIntN(), llvm::minIntN(), N, and llvm::MCContext::reportError().

Referenced by adjustFixupValue().