Searched refs:isSmallAlloc (Results 1 – 2 of 2) sorted by relevance
329 void promote(function_ref<bool(Value)> isSmallAlloc) { in promote() argument337 if (!isSmallAlloc(alloc) || dealloc || in promote()396 explicit PromoteBuffersToStackPass(std::function<bool(Value)> isSmallAlloc) in PromoteBuffersToStackPass() argument397 : isSmallAlloc(std::move(isSmallAlloc)) {} in PromoteBuffersToStackPass()400 if (isSmallAlloc == nullptr) { in initialize()401 isSmallAlloc = [=](Value alloc) { in initialize()412 optimizer.promote(isSmallAlloc); in runOnOperation()416 std::function<bool(Value)> isSmallAlloc; member in __anon68c8f7d70211::PromoteBuffersToStackPass436 std::function<bool(Value)> isSmallAlloc) { in createPromoteBuffersToStackPass() argument437 return std::make_unique<PromoteBuffersToStackPass>(std::move(isSmallAlloc)); in createPromoteBuffersToStackPass()
72 createPromoteBuffersToStackPass(std::function<bool(Value)> isSmallAlloc);