aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/MIR/MIPrinter.h
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 06:19:30 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-13 06:19:30 +0800
commitd62f022c92fcc3ebe2269273628943a0089683fd (patch)
tree92d13e4888b095cca71a0ac8b9b9eb99cc845596 /backend/include/rcc/MIR/MIPrinter.h
parent236082a0fe4dcd0362c5c74923a93e3db6a01291 (diff)
downloadrcc-project-d62f022c92fcc3ebe2269273628943a0089683fd.tar.gz
rcc-project-d62f022c92fcc3ebe2269273628943a0089683fd.tar.xz
[CodeGen] Align MIR parser and printer ownership
Diffstat (limited to 'backend/include/rcc/MIR/MIPrinter.h')
-rw-r--r--backend/include/rcc/MIR/MIPrinter.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/backend/include/rcc/MIR/MIPrinter.h b/backend/include/rcc/MIR/MIPrinter.h
deleted file mode 100644
index 663859e..0000000
--- a/backend/include/rcc/MIR/MIPrinter.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef RCC_MIR_MIPRINTER_H
-#define RCC_MIR_MIPRINTER_H
-
-#include "rcc/MIR/MIParser.h"
-#include "rcc/Support/Error.h"
-
-#include <string>
-
-namespace rcc {
-
-class MachineFunction;
-class TargetDescription;
-
-namespace mir {
-
-enum class MIPrintMode : unsigned char {
- Complete,
- Readable,
-};
-
-struct MIPrinterOptions final {
- MIPrintMode Mode = MIPrintMode::Complete;
-};
-
-[[nodiscard]] Expected<std::string> printMachineFunctionBody(const MachineFunction &Function,
- const TargetDescription &Target,
- const MIParserContext &Context = {},
- MIPrinterOptions Options = {});
-
-} // namespace mir
-} // namespace rcc
-
-#endif // RCC_MIR_MIPRINTER_H