LLVM  13.0.0git
AArch64ExternalSymbolizer.h
Go to the documentation of this file.
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.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
14 #define LLVM_LIB_TARGET_AARCH64_DISASSEMBLER_AARCH64EXTERNALSYMBOLIZER_H
15 
17 
18 namespace llvm {
19 
21 public:
23  std::unique_ptr<MCRelocationInfo> RelInfo,
26  void *DisInfo)
28  DisInfo) {}
29 
30  bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream,
31  int64_t Value, uint64_t Address, bool IsBranch,
32  uint64_t Offset, uint64_t InstSize) override;
33 };
34 
35 } // namespace llvm
36 
37 #endif
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:100
llvm
Definition: AllocatorList.h:23
llvm::MCSymbolizer::Ctx
MCContext & Ctx
Definition: MCSymbolizer.h:41
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:71
llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand
bool tryAddingSymbolicOperand(MCInst &MI, raw_ostream &CommentStream, int64_t Value, uint64_t Address, bool IsBranch, uint64_t Offset, uint64_t InstSize) override
tryAddingSymbolicOperand - tryAddingSymbolicOperand trys to add a symbolic operand in place of the im...
Definition: AArch64ExternalSymbolizer.cpp:59
llvm::MCExternalSymbolizer::GetOpInfo
LLVMOpInfoCallback GetOpInfo
Definition: MCExternalSymbolizer.h:32
Offset
uint64_t Offset
Definition: ELFObjHandler.cpp:81
MCExternalSymbolizer.h
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:183
LLVMOpInfoCallback
int(* LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset, uint64_t Size, int TagType, void *TagBuf)
The type for the operand information call back function.
Definition: DisassemblerTypes.h:42
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:50
LLVMSymbolLookupCallback
const typedef char *(* LLVMSymbolLookupCallback)(void *DisInfo, uint64_t ReferenceValue, uint64_t *ReferenceType, uint64_t ReferencePC, const char **ReferenceName)
The type for the symbol lookup function.
Definition: DisassemblerTypes.h:112
llvm::MCExternalSymbolizer::DisInfo
void * DisInfo
The pointer to the block of symbolic information for above call back.
Definition: MCExternalSymbolizer.h:36
llvm::AArch64ExternalSymbolizer
Definition: AArch64ExternalSymbolizer.h:20
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition: STLExtras.h:1540
llvm::MCExternalSymbolizer::SymbolLookUp
LLVMSymbolLookupCallback SymbolLookUp
The function to lookup a symbol name.
Definition: MCExternalSymbolizer.h:34
llvm::MCExternalSymbolizer
Symbolize using user-provided, C API, callbacks.
Definition: MCExternalSymbolizer.h:27
llvm::MCSymbolizer::RelInfo
std::unique_ptr< MCRelocationInfo > RelInfo
Definition: MCSymbolizer.h:42
std
Definition: BitVector.h:838
llvm::AArch64ExternalSymbolizer::AArch64ExternalSymbolizer
AArch64ExternalSymbolizer(MCContext &Ctx, std::unique_ptr< MCRelocationInfo > RelInfo, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, void *DisInfo)
Definition: AArch64ExternalSymbolizer.h:22
llvm::Value
LLVM Value Representation.
Definition: Value.h:75