From 1ecaa5028a39cdfd9b9590053d802e8049d346d5 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 13 Aug 2026 19:03:08 +0800 Subject: [MIR] Omit predictable successors in simplified output --- backend/include/rcc/CodeGen/MIRPrinter.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backend/include') diff --git a/backend/include/rcc/CodeGen/MIRPrinter.h b/backend/include/rcc/CodeGen/MIRPrinter.h index bb87509..4c20bed 100644 --- a/backend/include/rcc/CodeGen/MIRPrinter.h +++ b/backend/include/rcc/CodeGen/MIRPrinter.h @@ -7,10 +7,12 @@ #include "rcc/Support/Error.h" #include +#include namespace rcc { class MachineFunction; +class MachineBasicBlock; class TargetDescription; namespace mir { @@ -24,6 +26,11 @@ struct MIPrinterOptions final { MIPrintMode Mode = MIPrintMode::Complete; }; +[[nodiscard]] Expected guessSuccessors(const MachineBasicBlock &Block, + const TargetDescription &Target, + std::vector &Result, + bool &IsFallthrough); + [[nodiscard]] Expected printMachineFunctionBody(const MachineFunction &Function, const TargetDescription &Target, const MIParserContext &Context = {}, -- cgit v1.2.3