Play-/Source/ee/VuBasicBlock.h

35 lines
829 B
C
Raw Permalink Normal View History

#pragma once
#include "../BasicBlock.h"
class CVuBasicBlock : public CBasicBlock
{
public:
2018-04-30 21:01:23 +01:00
CVuBasicBlock(CMIPS&, uint32, uint32);
virtual ~CVuBasicBlock() = default;
bool IsLinkable() const;
protected:
2018-04-30 21:01:23 +01:00
void CompileRange(CMipsJitter*) override;
private:
struct INTEGER_BRANCH_DELAY_INFO
{
unsigned int regIndex = 0;
2018-04-30 21:01:23 +01:00
uint32 saveRegAddress = MIPS_INVALID_PC;
uint32 useRegAddress = MIPS_INVALID_PC;
};
2018-04-30 21:01:23 +01:00
static bool IsConditionalBranch(uint32);
static bool IsNonConditionalBranch(uint32);
INTEGER_BRANCH_DELAY_INFO GetIntegerBranchDelayInfo() const;
bool CheckIsSpecialIntegerLoop(unsigned int) const;
void ComputeSkipFlagsHints(const std::vector<uint32>&, std::vector<uint32>&) const;
std::vector<uint32> ComputeFmacStallDelays() const;
2018-04-30 21:01:23 +01:00
static void EmitXgKick(CMipsJitter*);
bool m_isLinkable = true;
};