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