dynarmic/src/ir_opt/passes.h

34 lines
858 B
C
Raw Normal View History

/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
2020-04-23 15:25:11 +01:00
* SPDX-License-Identifier: 0BSD
*/
#pragma once
namespace Dynarmic::A32 {
struct UserCallbacks;
}
namespace Dynarmic::A64 {
struct UserCallbacks;
struct UserConfig;
}
namespace Dynarmic::IR {
class Block;
}
namespace Dynarmic::Optimization {
void A32ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb);
2020-04-20 16:12:19 +01:00
void A32GetSetElimination(IR::Block& block);
2018-02-11 22:53:46 +00:00
void A64CallbackConfigPass(IR::Block& block, const A64::UserConfig& conf);
void A64GetSetElimination(IR::Block& block);
void A64MergeInterpretBlocksPass(IR::Block& block, A64::UserCallbacks* cb);
2018-01-10 19:24:19 +00:00
void ConstantPropagation(IR::Block& block);
void DeadCodeElimination(IR::Block& block);
2020-04-20 16:12:19 +01:00
void IdentityRemovalPass(IR::Block& block);
void VerificationPass(const IR::Block& block);
} // namespace Dynarmic::Optimization