mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
This sideband is now unused, registers are encoded directly in the IR. So we can garbage collect all this code for quite some savings. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
26 lines
499 B
C++
26 lines
499 B
C++
// SPDX-License-Identifier: MIT
|
|
/*
|
|
$info$
|
|
tags: ir|opts
|
|
$end_info$
|
|
*/
|
|
|
|
#pragma once
|
|
#include "Interface/IR/PassManager.h"
|
|
|
|
#include <memory>
|
|
#include <stdint.h>
|
|
|
|
namespace FEXCore::IR {
|
|
struct RegisterClassType;
|
|
|
|
class RegisterAllocationPass : public FEXCore::IR::Pass {
|
|
public:
|
|
virtual void AddRegisters(FEXCore::IR::RegisterClassType Class, uint32_t RegisterCount) = 0;
|
|
|
|
// Number of GPRs usable for pairs at start of GPR set. Must be even.
|
|
uint32_t PairRegs;
|
|
};
|
|
|
|
} // namespace FEXCore::IR
|