31 MAB.getTargetOptions().getABIName()));
56 unsigned EFlags = W.getELFHeaderEFlags();
74 W.setELFHeaderEFlags(EFlags);
80 LoongArchELFStreamer(
MCContext &
C, std::unique_ptr<MCAsmBackend> MAB,
81 std::unique_ptr<MCObjectWriter> MOW,
82 std::unique_ptr<MCCodeEmitter> MCE)
89 std::unique_ptr<MCAsmBackend> MAB,
90 std::unique_ptr<MCObjectWriter> MOW,
91 std::unique_ptr<MCCodeEmitter> MCE) {
92 LoongArchELFStreamer *S =
new LoongArchELFStreamer(
93 C, std::move(MAB), std::move(MOW), std::move(MCE));
MCELFStreamer & getStreamer()
void emitDirectiveOptionPop() override
void emitDirectiveOptionPush() override
void emitDirectiveOptionNoRelax() override
void emitDirectiveOptionRelax() override
LoongArchTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
LoongArchABI::ABI getTargetABI() const
void setTargetABI(LoongArchABI::ABI ABI)
MCAsmBackend & getBackend() const
Context object for machine code objects.
ELFObjectWriter & getWriter()
MCAssembler & getAssembler()
Streaming machine code generation interface.
Generic base class for all target subtargets.
const Triple & getTargetTriple() const
const FeatureBitset & getFeatureBits() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ C
The default llvm calling convention, compatible with C.
@ EF_LOONGARCH_ABI_SINGLE_FLOAT
@ EF_LOONGARCH_ABI_DOUBLE_FLOAT
@ EF_LOONGARCH_ABI_SOFT_FLOAT
ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, StringRef ABIName)
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
MCELFStreamer * createLoongArchELFStreamer(MCContext &C, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > MOW, std::unique_ptr< MCCodeEmitter > MCE)
Implement std::hash so that hash_code can be used in STL containers.