2024-05-22 00:35:12 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "shader_recompiler/ir/basic_block.h"
|
2024-05-25 14:33:15 +02:00
|
|
|
#include "shader_recompiler/ir/program.h"
|
2024-05-22 00:35:12 +02:00
|
|
|
|
|
|
|
namespace Shader::Optimization {
|
|
|
|
|
|
|
|
void SsaRewritePass(IR::BlockList& program);
|
|
|
|
void IdentityRemovalPass(IR::BlockList& program);
|
2024-06-06 01:24:30 +02:00
|
|
|
void DeadCodeEliminationPass(IR::Program& program);
|
2024-05-22 00:35:12 +02:00
|
|
|
void ConstantPropagationPass(IR::BlockList& program);
|
2024-05-25 14:33:15 +02:00
|
|
|
void ResourceTrackingPass(IR::Program& program);
|
|
|
|
void CollectShaderInfoPass(IR::Program& program);
|
2024-05-22 00:35:12 +02:00
|
|
|
|
|
|
|
} // namespace Shader::Optimization
|