dynarmic/src/ir_opt/passes.h

27 lines
789 B
C
Raw Normal View History

/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2 or any later version.
*/
#pragma once
#include <dynarmic/A32/config.h>
#include <dynarmic/A64/config.h>
namespace Dynarmic::IR {
class Block;
}
namespace Dynarmic::Optimization {
2018-01-10 19:24:19 +00:00
void A32GetSetElimination(IR::Block& block);
void A32ConstantMemoryReads(IR::Block& block, A32::UserCallbacks* cb);
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);
void VerificationPass(const IR::Block& block);
} // namespace Dynarmic::Optimization