LLVM 22.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
16#include "llvm/ADT/ArrayRef.h"
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(ArrayRef<uint64_t>(D, N)) {}
29};
30
31} // namespace llvm
32
33#endif // LLVM_CGDATA_CGDATAPATCHITEM_H
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
This is a MutableArrayRef that owns its array.
Definition: ArrayRef.h:454
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
#define N
A struct to define how the data stream should be patched.
OwningArrayRef< uint64_t > D
CGDataPatchItem(uint64_t Pos, const uint64_t *D, int N)