LLVM
22.0.0git
lib
MC
MCSPIRVStreamer.cpp
Go to the documentation of this file.
1
//===- lib/MC/MCSPIRVStreamer.cpp - SPIR-V Object Output ------*- C++ -*---===//
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
// This file assembles .s files and emits SPIR-V .o object files.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
llvm/MC/MCSPIRVStreamer.h
"
14
#include "
llvm/MC/MCAssembler.h
"
15
#include "
llvm/MC/TargetRegistry.h
"
16
17
using namespace
llvm
;
18
19
MCStreamer
*
llvm::createSPIRVStreamer
(
MCContext
&Context,
20
std::unique_ptr<MCAsmBackend> &&MAB,
21
std::unique_ptr<MCObjectWriter> &&OW,
22
std::unique_ptr<MCCodeEmitter> &&CE) {
23
MCSPIRVStreamer
*S =
new
MCSPIRVStreamer
(Context, std::move(MAB),
24
std::move(OW), std::move(CE));
25
return
S;
26
}
MCAssembler.h
MCSPIRVStreamer.h
TargetRegistry.h
llvm::MCContext
Context object for machine code objects.
Definition
MCContext.h:83
llvm::MCSPIRVStreamer
Definition
MCSPIRVStreamer.h:25
llvm::MCStreamer
Streaming machine code generation interface.
Definition
MCStreamer.h:220
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
AddressRanges.h:18
llvm::createSPIRVStreamer
LLVM_ABI MCStreamer * createSPIRVStreamer(MCContext &Ctx, std::unique_ptr< MCAsmBackend > &&TAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&CE)
Definition
MCSPIRVStreamer.cpp:19
Generated on
for LLVM by
1.14.0