IRDumper: Add missing FenceType entry

This commit is contained in:
Lioncache committed 2025-10-02 02:55:34 -04:00
1 parent 25e851b570
commit e37996873a
2 files changed
+10 -9

No files matched your search

+1
View File
@@ -750,6 +750,7 @@
"FenceType::Load: Ensures load memory operations are serialized",
"FenceType::Store: Ensures store memory operations are serialized",
"FenceType::LoadStore: Ensures loads and store memory operations are serialized",
"FenceType::Inst: Instruction barrier. Ensures all instructions after this point will be explicitly fetched",
"Ensures the memory operations are globally visible"
],
"HasSideEffects": true
+9 -9
View File
@@ -125,15 +125,15 @@ static void PrintArg(fextl::stringstream* out, const IRListView* IR, OrderedNode
}
static void PrintArg(fextl::stringstream* out, const IRListView*, FenceType Arg) {
if (Arg == FenceType::Load) {
*out << "Loads";
} else if (Arg == FenceType::Store) {
*out << "Stores";
} else if (Arg == FenceType::LoadStore) {
*out << "LoadStores";
} else {
*out << "<Unknown Fence Type>";
}
*out << [Arg] {
switch (Arg) {
case FenceType::Load: return "Loads";
case FenceType::Store: return "Stores";
case FenceType::LoadStore: return "LoadStores";
case FenceType::Inst: return "Instruction";
}
return "<Unknown Fence Type>";
}();
}
static void PrintArg(fextl::stringstream* out, const IRListView*, RoundMode Arg) {