| 86 | } |
| 87 | |
| 88 | void PassManager::Run(IREmitter* IREmit) { |
| 89 | FEXCORE_PROFILE_SCOPED("PassManager::Run"); |
| 90 | |
| 91 | for (const auto& Pass : Passes) { |
| 92 | Pass->Run(IREmit); |
| 93 | } |
| 94 | |
| 95 | #if defined(ASSERTIONS_ENABLED) && ASSERTIONS_ENABLED |
| 96 | for (const auto& Pass : ValidationPasses) { |
| 97 | Pass->Run(IREmit); |
| 98 | } |
| 99 | #endif |
| 100 | } |
| 101 | } // namespace FEXCore::IR |