LLVM 22.0.0git
DXContainerObject.cpp
Go to the documentation of this file.
1//===- DXContainerObject.cpp ----------------------------------------------===//
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 "DXContainerObject.h"
10
11namespace llvm {
12namespace objcopy {
13namespace dxbc {
14
19
21 Header.FileSize = headerSize();
22 Header.PartCount = Parts.size();
23 for (const Part &P : Parts)
24 Header.FileSize += P.size();
25}
26
27} // end namespace dxbc
28} // end namespace objcopy
29} // end namespace llvm
ReachingDefAnalysis InstSet & ToRemove
#define P(N)
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
static ErrorSuccess success()
Create a success value.
Definition Error.h:336
llvm::function_ref< bool(const Part &)> PartPred
This is an optimization pass for GlobalISel generic memory operations.
void erase_if(Container &C, UnaryPredicate P)
Provide a container algorithm similar to C++ Library Fundamentals v2's erase_if which is equivalent t...
Definition STLExtras.h:2122
Error removeParts(PartPred ToRemove)
::llvm::dxbc::Header Header