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
17namespace llvm {
18
19class MemoryBuffer;
20class Target;
21class raw_ostream;
22class SourceMgr;
23class MCContext;
24class MCSubtargetInfo;
25class MCStreamer;
26
27class Disassembler {
28public:
29 static int disassemble(const Target &T, MCSubtargetInfo &STI,
30 MCStreamer &Streamer, MemoryBuffer &Buffer,
31 SourceMgr &SM, MCContext &Ctx, bool HexBytes,
32 unsigned NumBenchmarkRuns);
33};
34
35} // namespace llvm
36
37#endif
38