2016-07-21 21:48:45 +01:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "frontend/ir/ir.h"
|
|
|
|
#include "ir_opt/passes.h"
|
|
|
|
|
|
|
|
namespace Dynarmic {
|
|
|
|
namespace Optimization {
|
|
|
|
|
|
|
|
void VerificationPass(const IR::Block& block) {
|
2016-07-22 23:55:00 +01:00
|
|
|
#if 0
|
2016-07-21 21:48:45 +01:00
|
|
|
for (const auto& inst : block.instructions) {
|
|
|
|
inst->AssertValid();
|
|
|
|
}
|
2016-07-22 23:55:00 +01:00
|
|
|
#endif
|
2016-07-21 21:48:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Optimization
|
|
|
|
} // namespace Dynarmic
|