llvm/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp

//===-- RISCVMCExpr.cpp - RISC-V specific MC expression classes -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file contains the implementation of the assembly expression modifiers
// accepted by the RISC-V architecture (e.g. ":lo12:", ":gottprel_g1:", ...).
//
//===----------------------------------------------------------------------===//

#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 {}