aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/MIR/MIRDocumentReferenceValidation.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/MIR/MIRDocumentReferenceValidation.h')
-rw-r--r--backend/lib/MIR/MIRDocumentReferenceValidation.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/backend/lib/MIR/MIRDocumentReferenceValidation.h b/backend/lib/MIR/MIRDocumentReferenceValidation.h
new file mode 100644
index 0000000..0992d84
--- /dev/null
+++ b/backend/lib/MIR/MIRDocumentReferenceValidation.h
@@ -0,0 +1,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