Lines Matching refs:simulator
214 CodeSimulatorContainer simulator(target_isa); in CanExecute()
215 return CanExecuteOnHardware(target_isa) || simulator.CanSimulate(); in CanExecute()
219 inline static Expected SimulatorExecute(CodeSimulator* simulator, Expected (*f)());
222 inline bool SimulatorExecute<bool>(CodeSimulator* simulator, bool (*f)()) {
223 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
224 return simulator->GetCReturnBool();
228 inline int32_t SimulatorExecute<int32_t>(CodeSimulator* simulator, int32_t (*f)()) {
229 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
230 return simulator->GetCReturnInt32();
234 inline int64_t SimulatorExecute<int64_t>(CodeSimulator* simulator, int64_t (*f)()) {
235 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
236 return simulator->GetCReturnInt64();
247 CodeSimulatorContainer simulator(target_isa); in VerifyGeneratedCode()
248 if (simulator.CanSimulate()) { in VerifyGeneratedCode()
249 Expected result = SimulatorExecute<Expected>(simulator.Get(), f); in VerifyGeneratedCode()