glasm: Implement basic GLASM instructions

This commit is contained in:
ReinUsesLisp 2021-05-08 16:28:52 -03:00 committed by ameerj
parent c1ba685d9c
commit 6fd190d1ae
10 changed files with 1173 additions and 840 deletions

View file

@ -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 {}