xref: /freebsd-src/contrib/llvm-project/llvm/tools/llvm-mc/Disassembler.h (revision a7dea1671b87c07d2d266f836bfa8b58efc7c134)
1 //===- Disassembler.h - Text File Disassembler ----------------------------===//
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 class implements the disassembler of strings of bytes written in
10 // hexadecimal, from standard input or from a file.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
15 #define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
16 
17 #include <string>
18 
19 namespace llvm {
20 
21 class MemoryBuffer;
22 class Target;
23 class raw_ostream;
24 class SourceMgr;
25 class MCContext;
26 class MCSubtargetInfo;
27 class MCStreamer;
28 
29 class Disassembler {
30 public:
31   static int disassemble(const Target &T, const std::string &Triple,
32                          MCSubtargetInfo &STI, MCStreamer &Streamer,
33                          MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
34                          raw_ostream &Out);
35 };
36 
37 } // namespace llvm
38 
39 #endif
40