mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-11-05 09:29:01 -06:00
glasm: Implement basic GLASM instructions
This commit is contained in:
@@ -224,6 +224,12 @@ public:
|
||||
--use_count;
|
||||
}
|
||||
|
||||
/// Destructively add usages to the instruction
|
||||
/// Useful for register allocation
|
||||
void DestructiveAddUsage(int count) {
|
||||
use_count += count;
|
||||
}
|
||||
|
||||
private:
|
||||
struct NonTriviallyDummy {
|
||||
NonTriviallyDummy() noexcept {}
|
||||
|
||||
Reference in New Issue
Block a user