Lines Matching refs:simulator
177 CodeSimulatorContainer simulator(target_isa); in CanExecute()
178 return CanExecuteOnHardware(target_isa) || simulator.CanSimulate(); in CanExecute()
182 inline static Expected SimulatorExecute(CodeSimulator* simulator, Expected (*f)());
185 inline bool SimulatorExecute<bool>(CodeSimulator* simulator, bool (*f)()) {
186 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
187 return simulator->GetCReturnBool();
191 inline int32_t SimulatorExecute<int32_t>(CodeSimulator* simulator, int32_t (*f)()) {
192 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
193 return simulator->GetCReturnInt32();
197 inline int64_t SimulatorExecute<int64_t>(CodeSimulator* simulator, int64_t (*f)()) {
198 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
199 return simulator->GetCReturnInt64();
210 CodeSimulatorContainer simulator(target_isa); in VerifyGeneratedCode()
211 if (simulator.CanSimulate()) { in VerifyGeneratedCode()
212 Expected result = SimulatorExecute<Expected>(simulator.Get(), f); in VerifyGeneratedCode()