LLVM 20.0.0git
AMDGPUELFStreamer.cpp
Go to the documentation of this file.
1//===-------- AMDGPUELFStreamer.cpp - ELF Object Output -------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "AMDGPUELFStreamer.h"
14
15using namespace llvm;
16
17namespace {
18
19class AMDGPUELFStreamer : public MCELFStreamer {
20public:
21 AMDGPUELFStreamer(const Triple &T, MCContext &Context,
22 std::unique_ptr<MCAsmBackend> MAB,
23 std::unique_ptr<MCObjectWriter> OW,
24 std::unique_ptr<MCCodeEmitter> Emitter)
25 : MCELFStreamer(Context, std::move(MAB), std::move(OW),
26 std::move(Emitter)) {}
27};
28
29} // anonymous namespace
30
33 std::unique_ptr<MCAsmBackend> MAB,
34 std::unique_ptr<MCObjectWriter> OW,
35 std::unique_ptr<MCCodeEmitter> Emitter) {
36 return new AMDGPUELFStreamer(T, Context, std::move(MAB), std::move(OW),
37 std::move(Emitter));
38}
dxil DXContainer Global Emitter
Context object for machine code objects.
Definition: MCContext.h:83
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCELFStreamer * createAMDGPUELFStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1856
Implement std::hash so that hash_code can be used in STL containers.
Definition: BitVector.h:858