LLVM 23.0.0git
CGDataPatchItem.h
Go to the documentation of this file.
1//===- CGDataPatchItem.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// This file contains support for patching codegen data.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CGDATA_CGDATAPATCHITEM_H
14#define LLVM_CGDATA_CGDATAPATCHITEM_H
15
17
18namespace llvm {
19
20/// A struct to define how the data stream should be patched.
22 // Where to patch.
24 // Source data.
26
28 : Pos(Pos), D(D, D + N) {}
29};
30
31} // namespace llvm
32
33#endif // LLVM_CGDATA_CGDATAPATCHITEM_H
This file defines the SmallVector class.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This is an optimization pass for GlobalISel generic memory operations.
Definition Types.h:26
#define N
CGDataPatchItem(uint64_t Pos, const uint64_t *D, int N)
llvm::SmallVector< uint64_t, 0 > D