aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/MIR/MIRDocumentReferenceValidation.h
blob: 0992d84a1fd8875e38734a4d8797c063617e3cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef RCC_LIB_MIR_MIRDOCUMENTREFERENCEVALIDATION_H
#define RCC_LIB_MIR_MIRDOCUMENTREFERENCEVALIDATION_H

#include "rcc/Support/Error.h"

namespace rcc {

class MachineFunction;

namespace mir {

class MIRDocument;

[[nodiscard]] Expected<void> verifyMIRDocumentReferences(const MIRDocument &Document,
                                                         const MachineFunction &Function,
                                                         bool UseEmbeddedIR);

} // namespace mir
} // namespace rcc

#endif // RCC_LIB_MIR_MIRDOCUMENTREFERENCEVALIDATION_H