LLVM 20.0.0git
Macros | Functions | Variables
RISCVAsmBackend.cpp File Reference
#include "RISCVAsmBackend.h"
#include "RISCVMCExpr.h"
#include "llvm/ADT/APInt.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDirectives.h"
#include "llvm/MC/MCELFObjectWriter.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/BinaryFormat/ELFRelocs/RISCV.def"

Go to the source code of this file.

Macros

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

Functions

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

Variables

static cl::opt< boolRelaxBranches ("riscv-asm-relax-branches", cl::init(true), cl::Hidden)
 
static cl::opt< boolULEB128Reloc ("riscv-uleb128-reloc", cl::init(true), cl::Hidden, cl::desc("Emit R_RISCV_SET_ULEB128/E_RISCV_SUB_ULEB128 if appropriate"))
 

Macro Definition Documentation

◆ 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

Variable Documentation

◆ RelaxBranches

cl::opt< bool > RelaxBranches("riscv-asm-relax-branches", cl::init(true), cl::Hidden) ( "riscv-asm-relax-branches"  ,
cl::init(true ,
cl::Hidden   
)
static

◆ ULEB128Reloc

cl::opt< bool > ULEB128Reloc("riscv-uleb128-reloc", cl::init(true), cl::Hidden, cl::desc("Emit R_RISCV_SET_ULEB128/E_RISCV_SUB_ULEB128 if appropriate")) ( "riscv-uleb128-reloc"  ,
cl::init(true ,
cl::Hidden  ,
cl::desc("Emit R_RISCV_SET_ULEB128/E_RISCV_SUB_ULEB128 if appropriate")   
)
static