[DirectX] Set the EnableRawAndStructuredBuffers shader flag (#122667)
[llvm-project.git] / llvm / lib / CodeGen / AsmPrinter / PseudoProbePrinter.h
blobf11b55238750126c103f5676181887d850c2fdd5
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.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H
14 #define LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H
16 #include "llvm/ADT/DenseMap.h"
18 namespace llvm {
20 class AsmPrinter;
21 class DILocation;
23 class PseudoProbeHandler {
24 // Target of pseudo probe emission.
25 AsmPrinter *Asm;
26 // Name to GUID map, used as caching/memoization for speed.
27 DenseMap<StringRef, uint64_t> NameGuidMap;
29 public:
30 PseudoProbeHandler(AsmPrinter *A) : Asm(A) {};
32 void emitPseudoProbe(uint64_t Guid, uint64_t Index, uint64_t Type,
33 uint64_t Attr, const DILocation *DebugLoc);
36 } // namespace llvm
37 #endif // LLVM_LIB_CODEGEN_ASMPRINTER_PSEUDOPROBEPRINTER_H