2015-05-06 00:54:15 -04:00
|
|
|
#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;
|
2015-05-06 00:54:15 -04:00
|
|
|
|
2020-05-29 13:27:39 -04:00
|
|
|
bool IsLinkable() const;
|
|
|
|
|
2015-05-06 00:54:15 -04:00
|
|
|
protected:
|
2018-04-30 21:01:23 +01:00
|
|
|
void CompileRange(CMipsJitter*) override;
|
2015-05-06 00:54:15 -04:00
|
|
|
|
|
|
|
private:
|
2016-08-06 22:14:44 -04:00
|
|
|
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;
|
2016-08-06 22:14:44 -04:00
|
|
|
};
|
2015-05-06 00:54:15 -04:00
|
|
|
|
2018-04-30 21:01:23 +01:00
|
|
|
static bool IsConditionalBranch(uint32);
|
2020-05-29 13:27:39 -04:00
|
|
|
static bool IsNonConditionalBranch(uint32);
|
2016-08-06 22:14:44 -04:00
|
|
|
|
2018-06-11 12:59:00 -04:00
|
|
|
INTEGER_BRANCH_DELAY_INFO GetIntegerBranchDelayInfo() const;
|
|
|
|
bool CheckIsSpecialIntegerLoop(unsigned int) const;
|
2020-02-27 13:13:57 -05:00
|
|
|
void ComputeSkipFlagsHints(const std::vector<uint32>&, std::vector<uint32>&) const;
|
2020-02-24 19:20:56 -05:00
|
|
|
std::vector<uint32> ComputeFmacStallDelays() const;
|
2018-04-30 21:01:23 +01:00
|
|
|
static void EmitXgKick(CMipsJitter*);
|
2020-05-29 13:27:39 -04:00
|
|
|
|
|
|
|
bool m_isLinkable = true;
|
2015-05-06 00:54:15 -04:00
|
|
|
};
|