#include "RISCVMCExpr.h"
#include "MCTargetDesc/RISCVAsmBackend.h"
#include "RISCVFixupKinds.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
usingnamespacellvm;
#define DEBUG_TYPE …
const RISCVMCExpr *RISCVMCExpr::create(const MCExpr *Expr, VariantKind Kind,
MCContext &Ctx) { … }
void RISCVMCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const { … }
const MCFixup *RISCVMCExpr::getPCRelHiFixup(const MCFragment **DFOut) const { … }
bool RISCVMCExpr::evaluateAsRelocatableImpl(MCValue &Res,
const MCAssembler *Asm,
const MCFixup *Fixup) const { … }
void RISCVMCExpr::visitUsedExpr(MCStreamer &Streamer) const { … }
RISCVMCExpr::VariantKind RISCVMCExpr::getVariantKindForName(StringRef name) { … }
StringRef RISCVMCExpr::getVariantKindName(VariantKind Kind) { … }
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm) { … }
void RISCVMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const { … }
bool RISCVMCExpr::evaluateAsConstant(int64_t &Res) const { … }
int64_t RISCVMCExpr::evaluateAsInt64(int64_t Value) const { … }