46 std::string Arch =
"rv32";
73 OS <<
"\t.option\tpush\n";
77 OS <<
"\t.option\tpop\n";
81 OS <<
"\t.option\tpic\n";
85 OS <<
"\t.option\tnopic\n";
89 OS <<
"\t.option\trvc\n";
93 OS <<
"\t.option\tnorvc\n";
97 OS <<
"\t.option\trelax\n";
101 OS <<
"\t.option\tnorelax\n";
104 void RISCVTargetAsmStreamer::emitAttribute(
unsigned Attribute,
unsigned Value) {
108 void RISCVTargetAsmStreamer::emitTextAttribute(
unsigned Attribute,
113 void RISCVTargetAsmStreamer::emitIntTextAttribute(
unsigned Attribute,
117 void RISCVTargetAsmStreamer::finishAttributeSection() {}
virtual void emitDirectiveOptionNoRVC()
virtual void emitDirectiveOptionPIC()
This class represents lattice values for constants.
virtual void emitDirectiveOptionRelax()
Target specific streamer interface.
void emitDirectiveOptionNoPIC() override
virtual void finishAttributeSection()
virtual void emitDirectiveOptionRVC()
virtual void emitDirectiveOptionPop()
void emitDirectiveOptionNoRelax() override
virtual void emitTextAttribute(unsigned Attribute, StringRef String)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
virtual void emitIntTextAttribute(unsigned Attribute, unsigned IntValue, StringRef StringValue)
void emitDirectiveOptionPush() override
void emitDirectiveOptionNoRVC() override
RISCVTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
Streaming machine code generation interface.
virtual void emitDirectiveOptionNoPIC()
void emitTargetAttributes(const MCSubtargetInfo &STI)
void emitDirectiveOptionPop() override
virtual void emitAttribute(unsigned Attribute, unsigned Value)
void emitDirectiveOptionRVC() override
void emitDirectiveOptionPIC() override
virtual void emitDirectiveOptionNoRelax()
bool hasFeature(unsigned Feature) const
Generic base class for all target subtargets.
LLVM Value Representation.
StringRef - Represent a constant reference to a string, i.e.
virtual void emitDirectiveOptionPush()
void emitDirectiveOptionRelax() override
RISCVTargetStreamer(MCStreamer &S)