31 MAB.getTargetOptions().getABIName()));
51 unsigned EFlags = W.getELFHeaderEFlags();
69 W.setELFHeaderEFlags(EFlags);
75 LoongArchELFStreamer(
MCContext &
C, std::unique_ptr<MCAsmBackend> MAB,
76 std::unique_ptr<MCObjectWriter> MOW,
77 std::unique_ptr<MCCodeEmitter> MCE)
84 std::unique_ptr<MCAsmBackend> MAB,
85 std::unique_ptr<MCObjectWriter> MOW,
86 std::unique_ptr<MCCodeEmitter> MCE) {
87 LoongArchELFStreamer *S =
new LoongArchELFStreamer(
88 C, std::move(MAB), std::move(MOW), std::move(MCE));
MCELFStreamer & getStreamer()
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.