aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 04:37:18 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-15 04:37:18 +0800
commitbb7990a58f56f8fb9bae4d5eb01fbbe3c36fca77 (patch)
tree5666b572b19341d45395afb613ccbfe385b000ab /backend/include/rcc/CodeGen
parent6f67b5ba63e0993d6aa9002c8c59fcf13148b869 (diff)
downloadrcc-project-bb7990a58f56f8fb9bae4d5eb01fbbe3c36fca77.tar.gz
rcc-project-bb7990a58f56f8fb9bae4d5eb01fbbe3c36fca77.tar.xz
[GlobalISel] Legalize scalar PHI operations
Diffstat (limited to 'backend/include/rcc/CodeGen')
-rw-r--r--backend/include/rcc/CodeGen/MachineIRBuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/include/rcc/CodeGen/MachineIRBuilder.h b/backend/include/rcc/CodeGen/MachineIRBuilder.h
index 20c4ad0..cd4dbe4 100644
--- a/backend/include/rcc/CodeGen/MachineIRBuilder.h
+++ b/backend/include/rcc/CodeGen/MachineIRBuilder.h
@@ -3,6 +3,7 @@
#ifndef RCC_CODEGEN_MACHINEIRBUILDER_H
#define RCC_CODEGEN_MACHINEIRBUILDER_H
+#include "rcc/CodeGen/GenericOpcodes.h"
#include "rcc/CodeGen/MachineIRTypes.h"
#include "rcc/CodeGen/MachineOperand.h"
#include "rcc/CodeGen/Register.h"
@@ -241,6 +242,7 @@ public:
Register Source) const;
[[nodiscard]] Expected<MachineInstr *> buildSExt(MachineIRBuilderResult Destination,
Register Source) const;
+ [[nodiscard]] GenericOpcode getBoolExtOp(bool IsVector, bool IsFloatingPoint) const noexcept;
[[nodiscard]] Expected<MachineInstr *> buildUndef(MachineIRBuilderResult Destination) const;
[[nodiscard]] Expected<MachineInstr *> buildAnyExtOrTrunc(MachineIRBuilderResult Destination,
Register Source) const;