LLVM 19.0.0git
CVTypeVisitor.h
Go to the documentation of this file.
1//===- CVTypeVisitor.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_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
10#define LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
11
12#include "llvm/ADT/ArrayRef.h"
15#include "llvm/Support/Error.h"
16
17namespace llvm {
18namespace codeview {
19class TypeIndex;
20class TypeCollection;
21class TypeVisitorCallbacks;
22struct CVMemberRecord;
23
25 VDS_BytesPresent, // The record bytes are passed into the visitation
26 // function. The algorithm should first deserialize them
27 // before passing them on through the pipeline.
28 VDS_BytesExternal // The record bytes are not present, and it is the
29 // responsibility of the visitor callback interface to
30 // supply the bytes.
31};
32
34 TypeVisitorCallbacks &Callbacks,
36Error visitTypeRecord(CVType &Record, TypeVisitorCallbacks &Callbacks,
38
39Error visitMemberRecord(CVMemberRecord Record, TypeVisitorCallbacks &Callbacks,
42 TypeVisitorCallbacks &Callbacks);
43
45 TypeVisitorCallbacks &Callbacks);
46
47Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks,
49Error visitTypeStream(CVTypeRange Types, TypeVisitorCallbacks &Callbacks);
50Error visitTypeStream(TypeCollection &Types, TypeVisitorCallbacks &Callbacks);
51
52} // end namespace codeview
53} // end namespace llvm
54
55#endif // LLVM_DEBUGINFO_CODEVIEW_CVTYPEVISITOR_H
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
Error visitMemberRecord(CVMemberRecord Record, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
CVRecord< TypeLeafKind > CVType
Definition: CVRecord.h:64
VarStreamArray< CVType > CVTypeArray
Definition: CVRecord.h:127
Error visitMemberRecordStream(ArrayRef< uint8_t > FieldList, TypeVisitorCallbacks &Callbacks)
Error visitTypeStream(const CVTypeArray &Types, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Definition: CodeView.h:34
iterator_range< CVTypeArray::Iterator > CVTypeRange
Definition: CVRecord.h:128
Error visitTypeRecord(CVType &Record, TypeIndex Index, TypeVisitorCallbacks &Callbacks, VisitorDataSource Source=VDS_BytesPresent)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18