2016-07-21 21:48:45 +01:00
|
|
|
/* This file is part of the dynarmic project.
|
|
|
|
* Copyright (c) 2016 MerryMage
|
2020-04-23 15:25:11 +01:00
|
|
|
* SPDX-License-Identifier: 0BSD
|
2016-07-21 21:48:45 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-05-24 01:04:37 +01:00
|
|
|
namespace Dynarmic::A32 {
|
|
|
|
struct UserCallbacks;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Dynarmic::A64 {
|
|
|
|
struct UserCallbacks;
|
|
|
|
struct UserConfig;
|
|
|
|
}
|
2017-01-30 21:43:40 +00:00
|
|
|
|
2018-01-26 13:51:48 +00:00
|
|
|
namespace Dynarmic::IR {
|
2016-07-21 21:48:45 +01:00
|
|
|
class Block;
|
|
|
|
}
|
|
|
|
|
2018-01-26 13:51:48 +00:00
|
|
|
namespace Dynarmic::Optimization {
|
2016-07-21 21:48:45 +01:00
|
|
|
|
2018-01-27 22:36:55 +00:00
|
|
|
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);
|
2018-01-26 23:37:54 +00:00
|
|
|
void A64GetSetElimination(IR::Block& block);
|
2018-01-13 21:51:13 +00:00
|
|
|
void A64MergeInterpretBlocksPass(IR::Block& block, A64::UserCallbacks* cb);
|
2018-01-10 19:24:19 +00:00
|
|
|
void ConstantPropagation(IR::Block& block);
|
2016-07-21 21:48:45 +01:00
|
|
|
void DeadCodeElimination(IR::Block& block);
|
2020-04-20 16:12:19 +01:00
|
|
|
void IdentityRemovalPass(IR::Block& block);
|
2016-07-21 21:48:45 +01:00
|
|
|
void VerificationPass(const IR::Block& block);
|
|
|
|
|
2018-01-26 13:51:48 +00:00
|
|
|
} // namespace Dynarmic::Optimization
|