mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-05 10:16:30 +00:00
microinstruction: Implement HasAssociatedPseudoOperation
This commit is contained in:
@@ -251,6 +251,10 @@ void Inst::DecrementRemainingUses() {
|
||||
use_count--;
|
||||
}
|
||||
|
||||
bool Inst::HasAssociatedPseudoOperation() const {
|
||||
return carry_inst || overflow_inst || ge_inst;
|
||||
}
|
||||
|
||||
Inst* Inst::GetAssociatedPseudoOperation(Opcode opcode) {
|
||||
// This is faster than doing a search through the block.
|
||||
switch (opcode) {
|
||||
|
||||
@@ -83,6 +83,8 @@ public:
|
||||
bool HasUses() const { return use_count > 0; }
|
||||
void DecrementRemainingUses();
|
||||
|
||||
/// Determines if there is a pseudo-operation associated with this instruction.
|
||||
bool HasAssociatedPseudoOperation() const;
|
||||
/// Gets a pseudo-operation associated with this instruction.
|
||||
Inst* GetAssociatedPseudoOperation(Opcode opcode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user