mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 19:00:17 +02:00
IR: Convert FenceType to an enum class
Same thing minus an extra struct lingering around.
This commit is contained in:
1 parent
c64d6f2b36
commit
863d1e0007
6 files changed
+24
-34
No files matched your search
@@ -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>";
|
||||
|
||||
Reference in new issue
Block a user