#include "RISCVTargetStreamer.h"
#include "RISCVBaseInfo.h"
#include "RISCVMCTargetDesc.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/RISCVAttributes.h"
#include "llvm/TargetParser/RISCVISAInfo.h"
usingnamespacellvm;
static cl::opt<bool> RiscvAbiAttr(
"riscv-abi-attributes",
cl::desc("Enable emitting RISC-V ELF attributes for ABI features"),
cl::Hidden);
RISCVTargetStreamer::RISCVTargetStreamer(MCStreamer &S) : … { … }
void RISCVTargetStreamer::finish() { … }
void RISCVTargetStreamer::reset() { … }
void RISCVTargetStreamer::emitDirectiveOptionPush() { … }
void RISCVTargetStreamer::emitDirectiveOptionPop() { … }
void RISCVTargetStreamer::emitDirectiveOptionPIC() { … }
void RISCVTargetStreamer::emitDirectiveOptionNoPIC() { … }
void RISCVTargetStreamer::emitDirectiveOptionRVC() { … }
void RISCVTargetStreamer::emitDirectiveOptionNoRVC() { … }
void RISCVTargetStreamer::emitDirectiveOptionRelax() { … }
void RISCVTargetStreamer::emitDirectiveOptionNoRelax() { … }
void RISCVTargetStreamer::emitDirectiveOptionArch(
ArrayRef<RISCVOptionArchArg> Args) { … }
void RISCVTargetStreamer::emitDirectiveVariantCC(MCSymbol &Symbol) { … }
void RISCVTargetStreamer::emitAttribute(unsigned Attribute, unsigned Value) { … }
void RISCVTargetStreamer::finishAttributeSection() { … }
void RISCVTargetStreamer::emitTextAttribute(unsigned Attribute,
StringRef String) { … }
void RISCVTargetStreamer::emitIntTextAttribute(unsigned Attribute,
unsigned IntValue,
StringRef StringValue) { … }
void RISCVTargetStreamer::setTargetABI(RISCVABI::ABI ABI) { … }
void RISCVTargetStreamer::setFlagsFromFeatures(const MCSubtargetInfo &STI) { … }
void RISCVTargetStreamer::emitTargetAttributes(const MCSubtargetInfo &STI,
bool EmitStackAlign) { … }
RISCVTargetAsmStreamer::RISCVTargetAsmStreamer(MCStreamer &S,
formatted_raw_ostream &OS)
: … { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionPush() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionPop() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionPIC() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionNoPIC() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionRVC() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionNoRVC() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionRelax() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionNoRelax() { … }
void RISCVTargetAsmStreamer::emitDirectiveOptionArch(
ArrayRef<RISCVOptionArchArg> Args) { … }
void RISCVTargetAsmStreamer::emitDirectiveVariantCC(MCSymbol &Symbol) { … }
void RISCVTargetAsmStreamer::emitAttribute(unsigned Attribute, unsigned Value) { … }
void RISCVTargetAsmStreamer::emitTextAttribute(unsigned Attribute,
StringRef String) { … }
void RISCVTargetAsmStreamer::emitIntTextAttribute(unsigned Attribute,
unsigned IntValue,
StringRef StringValue) { … }
void RISCVTargetAsmStreamer::finishAttributeSection() { … }