IR: Convert FenceType to an enum class

Same thing minus an extra struct lingering around.
This commit is contained in:
Lioncache committed 2025-10-01 23:13:08 -04:00
1 parent c64d6f2b36
commit 863d1e0007
6 files changed
+24 -34

No files matched your search

+4 -4
View File
@@ -124,12 +124,12 @@ static void PrintArg(fextl::stringstream* out, const IRListView* IR, OrderedNode
}
}
static void PrintArg(fextl::stringstream* out, const IRListView*, FEXCore::IR::FenceType Arg) {
if (Arg == IR::Fence_Load) {
static void PrintArg(fextl::stringstream* out, const IRListView*, FenceType Arg) {
if (Arg == FenceType::Load) {
*out << "Loads";
} else if (Arg == IR::Fence_Store) {
} else if (Arg == FenceType::Store) {
*out << "Stores";
} else if (Arg == IR::Fence_LoadStore) {
} else if (Arg == FenceType::LoadStore) {
*out << "LoadStores";
} else {
*out << "<Unknown Fence Type>";