LLVM 22.0.0git
DXContainerWriter.h
Go to the documentation of this file.
1//===- DXContainerWriter.h --------------------------------------*- 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#ifndef LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERWRITER_H
10#define LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERWRITER_H
11
12#include "DXContainerObject.h"
13
14namespace llvm {
15namespace objcopy {
16namespace dxbc {
17
18using namespace object;
19
21public:
22 explicit DXContainerWriter(const Object &Obj, raw_ostream &Out)
23 : Obj(Obj), Out(Out) {}
24 Error write();
25
26private:
27 const Object &Obj;
28 raw_ostream &Out;
29
31
32 size_t finalize();
33};
34
35} // end namespace dxbc
36} // end namespace objcopy
37} // end namespace llvm
38
39#endif // LLVM_LIB_OBJCOPY_DXCONTAINER_DXCONTAINERWRITER_H
arc branch finalize
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
DXContainerWriter(const Object &Obj, raw_ostream &Out)
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.