Home | History | Annotate | Download | only in src

Lines Matching refs:Func

249 void GlobalContext::CodeStats::dump(const Cfg *Func, GlobalContext *Ctx) {
255 (Func == nullptr ? "_FINAL_" : Func->getFunctionNameAndSize());
285 if (Func != nullptr) {
286 Str << "|" << Name << "|Cfg Memory |" << Func->getTotalMemoryMB()
288 Str << "|" << Name << "|Liveness Memory |" << Func->getLivenessMemoryMB()
379 auto Func = OptItem->getParsedCfg();
380 // Install Func in TLS for Cfg-specific container allocators.
381 CfgLocalAllocatorScope _(Func.get());
386 if (!getFlags().matchVerboseFocusOn(Func->getFunctionName(),
387 Func->getSequenceNumber()))
388 Func->setVerbose(IceV_None);
393 !getFlags().matchTranslateOnly(Func->getFunctionName(),
394 Func->getSequenceNumber())) {
395 Func->dump();
398 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber());
400 continue; // Func goes out of scope and gets deleted
403 Func->translate();
404 if (Func->hasError()) {
407 getStrError() << "ICE translation error: " << Func->getFunctionName()
408 << ": " << Func->getError() << ": "
409 << Func->getFunctionNameAndSize() << "\n";
410 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber());
412 Func->getAssembler<>()->setInternal(Func->getInternal());
416 Func->emitIAS();
421 dumpStats(Func.get());
422 auto Asm = Func->releaseAssembler();
423 // Copy relevant fields into Asm before Func is deleted.
424 Asm->setFunctionName(Func->getFunctionName());
425 Func->getSequenceNumber(),
427 Item->setGlobalInits(Func->getGlobalInits());
433 Func->getGlobalInits();
434 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber(),
435 std::move(Func));
442 // The Cfg now gets deleted as Func goes out of scope.
672 std::unique_ptr<Cfg> Func = Item->getCfg();
676 CfgLocalAllocatorScope _(Func.get());
677 Func->emit();
678 dumpStats(Func.get());
990 void GlobalContext::dumpStats(const Cfg *Func) {
993 if (Func == nullptr) {
994 getStatsCumulative()->dump(Func, this);
996 ICE_TLS_GET_FIELD(TLS)->StatsFunction.dump(Func, this);
1058 void TimerMarker::pushCfg(const Cfg *Func) {
1059 Ctx = Func->getContext();
1060 Active = Func->getFocusedTiming() || getFlags().getSubzeroTimingEnabled();