LLVM 20.0.0git
PseudoProbePrinter.h
Go to the documentation of this file.
1//===- PseudoProbePrinter.h - Pseudo probe encoding support -----*- 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 writing pseudo probe info into asm files.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H
14#define LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H
15
16#include "llvm/ADT/DenseMap.h"
17
18namespace llvm {
19
20class AsmPrinter;
21class DILocation;
22
24 // Target of pseudo probe emission.
25 AsmPrinter *Asm;
26 // Name to GUID map, used as caching/memoization for speed.
28
29public:
31
33 uint64_t Attr, const DILocation *DebugLoc);
34};
35
36} // namespace llvm
37#endif // LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
This file defines the DenseMap class.
uint32_t Index
This class is intended to be used as a driving class for all asm writers.
Definition: AsmPrinter.h:87
Debug location.
A debug info location.
Definition: DebugLoc.h:33
PseudoProbeHandler(AsmPrinter *A)
void emitPseudoProbe(uint64_t Guid, uint64_t Index, uint64_t Type, uint64_t Attr, const DILocation *DebugLoc)
The instances of the Type class are immutable: once they are created, they are never changed.
Definition: Type.h:45
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18