|
LLVM 23.0.0git
|
#include "MCTargetDesc/RISCVFixupKinds.h"#include "MCTargetDesc/RISCVMCTargetDesc.h"#include "RISCVMCAsmInfo.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/Twine.h"#include "llvm/BinaryFormat/MachO.h"#include "llvm/MC/MCAsmInfo.h"#include "llvm/MC/MCAsmInfoDarwin.h"#include "llvm/MC/MCAssembler.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCExpr.h"#include "llvm/MC/MCFixup.h"#include "llvm/MC/MCMachObjectWriter.h"#include "llvm/MC/MCSection.h"#include "llvm/MC/MCSectionMachO.h"#include "llvm/MC/MCSymbol.h"#include "llvm/MC/MCValue.h"#include "llvm/Support/Casting.h"#include "llvm/Support/MathExtras.h"#include <cassert>#include <cstdint>Go to the source code of this file.
Functions | |
| static bool | canUseLocalRelocation (const MCSectionMachO &Section, const MCSymbol &Symbol, unsigned Log2Size) |
| static void | emitRelocation (MachObjectWriter *Writer, const MCFragment *Fragment, uint32_t FixupOffset, const MCSymbol *RelSymbol, unsigned Index, bool IsPCRel, unsigned Log2Size, unsigned Type) |
| static bool | checkSymbolBase (const MCSymbol *Base, const MCSymbol *Symbol, const MCFixup &Fixup, MCAssembler &Asm) |
| template<unsigned Bits> | |
| static bool | isValidInt (const uint64_t &FixedValue, const char *Msg, MCAssembler &Asm, const SMLoc Loc) |
| const MCFixup * | getPCRelHiFixup (const MCSpecifierExpr &Expr, const MCFragment **DFOut) |
|
static |
Definition at line 111 of file RISCVMachObjectWriter.cpp.
References llvm::MCSection::getName(), llvm::MCSectionMachO::getSegmentName(), llvm::MCSectionMachO::getType(), llvm::MachO::S_ATTR_DEBUG, and llvm::MachO::S_CSTRING_LITERALS.
|
static |
Definition at line 151 of file RISCVMachObjectWriter.cpp.
References llvm::sampleprof::Base, and Fixup.
|
static |
Definition at line 136 of file RISCVMachObjectWriter.cpp.
References llvm::MachObjectWriter::addRelocation(), assert(), llvm::isUInt(), llvm::MachO::any_relocation_info::r_word0, and llvm::MachO::any_relocation_info::r_word1.
|
extern |
Definition at line 678 of file RISCVAsmBackend.cpp.
References DF, llvm::MCExpr::evaluateAsRelocatable(), F, llvm::RISCV::fixup_riscv_pcrel_hi20, llvm::MCValue::getAddSym(), llvm::MCSymbol::getFragment(), llvm::MCSymbol::getOffset(), llvm::MCSpecifierExpr::getSubExpr(), llvm::mc::isRelocation(), and llvm::Offset.
Referenced by DarwinRISCVAsmBackend::evaluateFixup(), and llvm::RISCVAsmBackend::evaluateFixup().
|
static |
Definition at line 164 of file RISCVMachObjectWriter.cpp.
References llvm::isInt().