[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git] / llvm / lib / Target / AArch64 / Disassembler / AArch64ExternalSymbolizer.h
blobca677db49739de07e7df85b3cf68704a4f2733e0
1 //===- AArch64ExternalSymbolizer.h - Symbolizer for AArch64 -----*- 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 // Symbolize AArch64 assembly code during disassembly using callbacks.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
14 #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
16 #include "llvm/MC/MCDisassembler/MCExternalSymbolizer.h"
18 namespace llvm {
20 class AArch64ExternalSymbolizer : public MCExternalSymbolizer {
21 public:
22 AArch64ExternalSymbolizer(MCContext &Ctx,
23 std::unique_ptr<MCRelocationInfo> RelInfo,
24 LLVMOpInfoCallback GetOpInfo,
25 LLVMSymbolLookupCallback SymbolLookUp,
26 void *DisInfo)
27 : MCExternalSymbolizer(Ctx, std::move(RelInfo), GetOpInfo, SymbolLookUp,
28 DisInfo) {}
30 bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream,
31 int64_t Value, uint64_t Address, bool IsBranch,
32 uint64_t Offset, uint64_t OpSize,
33 uint64_t InstSize) override;
36 } // namespace llvm
38 #endif