/third_party/nghttp2/src/ |
H A D | shrpx_rate_limit.cc | 44 loop_(loop), in RateLimit() 53 ev_timer_again(loop_, &t_); in RateLimit() 57 RateLimit::~RateLimit() { ev_timer_stop(loop_, &t_); } in ~RateLimit() 73 ev_io_stop(loop_, w_); in drain() 88 ev_io_start(loop_, w_); in regen() 99 ev_io_start(loop_, w_); in startw() 107 ev_io_stop(loop_, w_); in stopw() 120 ev_feed_event(loop_, w_, EV_READ); in handle_tls_pending_read()
|
H A D | shrpx_connect_blocker.cc | 48 loop_(loop), in ConnectBlocker() 55 ConnectBlocker::~ConnectBlocker() { ev_timer_stop(loop_, &timer_); } in ~ConnectBlocker() 98 ev_timer_start(loop_, &timer_); in on_failure() 114 ev_timer_stop(loop_, &timer_); in offline() 116 ev_timer_start(loop_, &timer_); in offline() 120 ev_timer_stop(loop_, &timer_); in online()
|
H A D | shrpx_dns_resolver.cc | 119 loop_(loop), 132 stop_ev(loop_, revs_); in ~DNSResolver() 133 stop_ev(loop_, wevs_); in ~DNSResolver() 135 ev_timer_stop(loop_, &timer_); in ~DNSResolver() 224 ev_timer_again(loop_, &timer_); in reset_timeout() 277 start_ev(revs_, loop_, fd, EV_READ, readcb, this); in start_rev() 280 void DNSResolver::stop_rev(int fd) { stop_ev(revs_, loop_, fd, EV_READ); } in stop_rev() 283 start_ev(wevs_, loop_, fd, EV_WRITE, writecb, this); in start_wev() 286 void DNSResolver::stop_wev(int fd) { stop_ev(wevs_, loop_, fd, EV_WRITE); } in stop_wev() 289 stop_ev(loop_, revs in on_result() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | loop_unswitch_pass.cpp | 56 loop_(loop), in LoopUnswitch() 69 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 75 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() 144 // Unswitches |loop_|. 148 assert(loop_->GetPreHeaderBlock() && "This loop has no pre-header block"); in PerformUnswitch() 149 assert(loop_->IsLCSSA() && "This loop is not in LCSSA form"); in PerformUnswitch() 155 LoopUtils loop_utils(context_, loop_); in PerformUnswitch() 159 // To do so, the |loop_| merge block will become the if's one and we in PerformUnswitch() 167 BasicBlock* if_merge_block = loop_ in PerformUnswitch() 433 Loop* loop_; global() member in spvtools::opt::__anon21867::LoopUnswitch [all...] |
H A D | loop_fission.cpp | 62 : context_(context), loop_(loop), load_used_in_condition_(false) {} in LoopFissionImpl() 104 Loop* loop_; member in spvtools::opt::LoopFissionImpl 137 !loop_->IsInsideLoop(context_->get_instr_block(user))) { in TraverseUseDef() 193 BasicBlock* condition_block = loop_->FindConditionBlock(); in GroupInstructionsByUseDef() 201 Function& function = *loop_->GetHeaderBlock()->GetParent(); in GroupInstructionsByUseDef() 213 if (!loop_->IsInsideLoop(block.id())) continue; in GroupInstructionsByUseDef() 226 if (!loop_->IsInsideLoop(block.id()) || in GroupInstructionsByUseDef() 227 loop_->GetHeaderBlock()->id() == block.id()) in GroupInstructionsByUseDef() 279 Loop* parent_loop = loop_; in CanPerformSplit() 308 const size_t loop_depth = loop_ in CanPerformSplit() [all...] |
H A D | loop_utils.cpp | 320 Function* function = loop_->GetHeaderBlock()->GetParent(); in CreateLoopDedicatedExits() 331 loop_->GetExitBlocks(&exit_bb_set); in CreateLoopDedicatedExits() 342 [this](uint32_t id) { return loop_->IsInsideLoop(id); })) { in CreateLoopDedicatedExits() 363 if (loop_->IsInsideLoop(exit_pred_id)) { in CreateLoopDedicatedExits() 393 if (loop_->IsInsideLoop(incoming_id)) { in CreateLoopDedicatedExits() 427 loop_->SetMergeBlock(*new_loop_exits.begin()); in CreateLoopDedicatedExits() 440 Function* function = loop_->GetHeaderBlock()->GetParent(); in MakeLoopClosedSSA() 448 loop_->GetExitBlocks(&exit_bb_id); in MakeLoopClosedSSA() 455 loop_->GetMergeBlock()); in MakeLoopClosedSSA() 456 MakeSetClosedSSA(context_, function, loop_ in MakeLoopClosedSSA() [all...] |
H A D | loop_peeling.h | 83 loop_(loop), in LoopPeeling() 130 if (!loop_->IsLCSSA()) { in CanPeelLoop() 133 if (!loop_->GetMergeBlock()) { in CanPeelLoop() 136 if (cfg.preds(loop_->GetMergeBlock()->id()).size() != 1) { in CanPeelLoop() 160 Loop* GetOriginalLoop() { return loop_; } in GetOriginalLoop() 166 Loop* loop_; member 167 // The initial |loop_| upper bound. 184 // Duplicate |loop_| and place the new loop before the cloned loop. Iterating 283 loop_(loop), in LoopPeelingInfo() 320 Loop* loop_; member in spvtools::LoopPeelingPass::LoopPeelingInfo [all...] |
H A D | loop_peeling.cpp | 43 BasicBlock* pre_header = loop_->GetOrCreatePreHeaderBlock(); in DuplicateAndConnectLoop() 45 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); in DuplicateAndConnectLoop() 57 // Make the |loop_|'s preheader the |cloned_loop_| one. in DuplicateAndConnectLoop() 63 cfg.RemoveEdge(pre_header->id(), loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() 65 loop_->SetPreHeaderBlock(nullptr); in DuplicateAndConnectLoop() 68 // |cloned_loop_| shares the same block as |loop_|. in DuplicateAndConnectLoop() 69 // We mutate all branches from |cloned_loop_| block to |loop_|'s merge into a in DuplicateAndConnectLoop() 70 // branch to |loop_|'s header (so header will also be the merge of in DuplicateAndConnectLoop() 73 for (uint32_t pred_id : cfg.preds(loop_->GetMergeBlock()->id())) { in DuplicateAndConnectLoop() 74 if (loop_ in DuplicateAndConnectLoop() [all...] |
H A D | loop_unroller.cpp | 983 if (!loop_->GetHeaderBlock()->GetMergeInst()) { in CanPerformUnroll() 988 const BasicBlock* condition = loop_->FindConditionBlock(); in CanPerformUnroll() 992 const Instruction* induction = loop_->FindConditionVariable(condition); in CanPerformUnroll() 996 if (!loop_->FindNumberOfIterations(induction, &*condition->ctail(), nullptr)) in CanPerformUnroll() 1001 const Instruction& branch = *loop_->GetLatchBlock()->ctail(); in CanPerformUnroll() 1004 branch.GetSingleWordInOperand(0) == loop_->GetHeaderBlock()->id(); in CanPerformUnroll() 1010 loop_->GetInductionVariables(inductions); in CanPerformUnroll() 1014 context_->cfg()->preds(loop_->GetMergeBlock()->id()); in CanPerformUnroll() 1021 context_->cfg()->preds(loop_->GetContinueBlock()->id()); in CanPerformUnroll() 1029 for (uint32_t label_id : loop_ in CanPerformUnroll() [all...] |
H A D | loop_utils.h | 70 loop_(loop), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 155 // Returns the context associate to |loop_|. 157 // Returns the loop descriptor owning |loop_|. 160 Loop* GetLoop() const { return loop_; } in GetLoop() 161 // Returns the function that |loop_| belong to. 167 Loop* loop_; member in spvtools::opt::LoopUtils [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | loop_unswitch_pass.cpp | 56 loop_(loop), in LoopUnswitch() 69 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 75 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() 144 // Unswitches |loop_|. 148 assert(loop_->GetPreHeaderBlock() && "This loop has no pre-header block"); in PerformUnswitch() 149 assert(loop_->IsLCSSA() && "This loop is not in LCSSA form"); in PerformUnswitch() 155 LoopUtils loop_utils(context_, loop_); in PerformUnswitch() 159 // To do so, the |loop_| merge block will become the if's one and we in PerformUnswitch() 167 BasicBlock* if_merge_block = loop_ in PerformUnswitch() 433 Loop* loop_; global() member in spvtools::opt::__anon23124::LoopUnswitch [all...] |
H A D | loop_fission.cpp | 62 : context_(context), loop_(loop), load_used_in_condition_(false) {} in LoopFissionImpl() 104 Loop* loop_; member in spvtools::opt::LoopFissionImpl 137 !loop_->IsInsideLoop(context_->get_instr_block(user))) { in TraverseUseDef() 193 BasicBlock* condition_block = loop_->FindConditionBlock(); in GroupInstructionsByUseDef() 201 Function& function = *loop_->GetHeaderBlock()->GetParent(); in GroupInstructionsByUseDef() 213 if (!loop_->IsInsideLoop(block.id())) continue; in GroupInstructionsByUseDef() 226 if (!loop_->IsInsideLoop(block.id()) || in GroupInstructionsByUseDef() 227 loop_->GetHeaderBlock()->id() == block.id()) in GroupInstructionsByUseDef() 279 Loop* parent_loop = loop_; in CanPerformSplit() 308 const size_t loop_depth = loop_ in CanPerformSplit() [all...] |
H A D | loop_utils.cpp | 320 Function* function = loop_->GetHeaderBlock()->GetParent(); in CreateLoopDedicatedExits() 331 loop_->GetExitBlocks(&exit_bb_set); in CreateLoopDedicatedExits() 342 [this](uint32_t id) { return loop_->IsInsideLoop(id); })) { in CreateLoopDedicatedExits() 363 if (loop_->IsInsideLoop(exit_pred_id)) { in CreateLoopDedicatedExits() 393 if (loop_->IsInsideLoop(incoming_id)) { in CreateLoopDedicatedExits() 427 loop_->SetMergeBlock(*new_loop_exits.begin()); in CreateLoopDedicatedExits() 440 Function* function = loop_->GetHeaderBlock()->GetParent(); in MakeLoopClosedSSA() 448 loop_->GetExitBlocks(&exit_bb_id); in MakeLoopClosedSSA() 455 loop_->GetMergeBlock()); in MakeLoopClosedSSA() 456 MakeSetClosedSSA(context_, function, loop_ in MakeLoopClosedSSA() [all...] |
H A D | loop_peeling.h | 83 loop_(loop), in LoopPeeling() 130 if (!loop_->IsLCSSA()) { in CanPeelLoop() 133 if (!loop_->GetMergeBlock()) { in CanPeelLoop() 136 if (cfg.preds(loop_->GetMergeBlock()->id()).size() != 1) { in CanPeelLoop() 160 Loop* GetOriginalLoop() { return loop_; } in GetOriginalLoop() 166 Loop* loop_; member 167 // The initial |loop_| upper bound. 184 // Duplicate |loop_| and place the new loop before the cloned loop. Iterating 283 loop_(loop), in LoopPeelingInfo() 320 Loop* loop_; member in spvtools::LoopPeelingPass::LoopPeelingInfo [all...] |
H A D | loop_peeling.cpp | 43 BasicBlock* pre_header = loop_->GetOrCreatePreHeaderBlock(); in DuplicateAndConnectLoop() 45 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); in DuplicateAndConnectLoop() 57 // Make the |loop_|'s preheader the |cloned_loop_| one. in DuplicateAndConnectLoop() 63 cfg.RemoveEdge(pre_header->id(), loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() 65 loop_->SetPreHeaderBlock(nullptr); in DuplicateAndConnectLoop() 68 // |cloned_loop_| shares the same block as |loop_|. in DuplicateAndConnectLoop() 69 // We mutate all branches from |cloned_loop_| block to |loop_|'s merge into a in DuplicateAndConnectLoop() 70 // branch to |loop_|'s header (so header will also be the merge of in DuplicateAndConnectLoop() 73 for (uint32_t pred_id : cfg.preds(loop_->GetMergeBlock()->id())) { in DuplicateAndConnectLoop() 74 if (loop_ in DuplicateAndConnectLoop() [all...] |
H A D | loop_unroller.cpp | 983 if (!loop_->GetHeaderBlock()->GetMergeInst()) { in CanPerformUnroll() 988 const BasicBlock* condition = loop_->FindConditionBlock(); in CanPerformUnroll() 992 const Instruction* induction = loop_->FindConditionVariable(condition); in CanPerformUnroll() 996 if (!loop_->FindNumberOfIterations(induction, &*condition->ctail(), nullptr)) in CanPerformUnroll() 1001 const Instruction& branch = *loop_->GetLatchBlock()->ctail(); in CanPerformUnroll() 1004 branch.GetSingleWordInOperand(0) == loop_->GetHeaderBlock()->id(); in CanPerformUnroll() 1010 loop_->GetInductionVariables(inductions); in CanPerformUnroll() 1014 context_->cfg()->preds(loop_->GetMergeBlock()->id()); in CanPerformUnroll() 1021 context_->cfg()->preds(loop_->GetContinueBlock()->id()); in CanPerformUnroll() 1029 for (uint32_t label_id : loop_ in CanPerformUnroll() [all...] |
H A D | loop_utils.h | 70 loop_(loop), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 155 // Returns the context associate to |loop_|. 157 // Returns the loop descriptor owning |loop_|. 160 Loop* GetLoop() const { return loop_; } in GetLoop() 161 // Returns the function that |loop_| belong to. 167 Loop* loop_; member in spvtools::opt::LoopUtils [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | loop_unswitch_pass.cpp | 49 loop_(loop), in LoopUnswitch() 62 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 66 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 68 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() 137 // Unswitches |loop_|. 141 assert(loop_->GetPreHeaderBlock() && "This loop has no pre-header block"); in PerformUnswitch() 142 assert(loop_->IsLCSSA() && "This loop is not in LCSSA form"); in PerformUnswitch() 148 LoopUtils loop_utils(context_, loop_); in PerformUnswitch() 152 // To do so, the |loop_| merge block will become the if's one and we in PerformUnswitch() 160 BasicBlock* if_merge_block = loop_ in PerformUnswitch() 426 Loop* loop_; global() member in spvtools::opt::__anon26650::LoopUnswitch [all...] |
H A D | loop_utils.cpp | 319 Function* function = loop_->GetHeaderBlock()->GetParent(); in CreateLoopDedicatedExits() 330 loop_->GetExitBlocks(&exit_bb_set); in CreateLoopDedicatedExits() 341 [this](uint32_t id) { return loop_->IsInsideLoop(id); })) { in CreateLoopDedicatedExits() 362 if (loop_->IsInsideLoop(exit_pred_id)) { in CreateLoopDedicatedExits() 392 if (loop_->IsInsideLoop(incoming_id)) { in CreateLoopDedicatedExits() 426 loop_->SetMergeBlock(*new_loop_exits.begin()); in CreateLoopDedicatedExits() 439 Function* function = loop_->GetHeaderBlock()->GetParent(); in MakeLoopClosedSSA() 447 loop_->GetExitBlocks(&exit_bb_id); in MakeLoopClosedSSA() 454 loop_->GetMergeBlock()); in MakeLoopClosedSSA() 455 MakeSetClosedSSA(context_, function, loop_ in MakeLoopClosedSSA() [all...] |
H A D | loop_peeling.h | 83 loop_(loop), in LoopPeeling() 130 if (!loop_->IsLCSSA()) { in CanPeelLoop() 133 if (!loop_->GetMergeBlock()) { in CanPeelLoop() 136 if (cfg.preds(loop_->GetMergeBlock()->id()).size() != 1) { in CanPeelLoop() 160 Loop* GetOriginalLoop() { return loop_; } in GetOriginalLoop() 166 Loop* loop_; member 167 // The initial |loop_| upper bound. 184 // Duplicate |loop_| and place the new loop before the cloned loop. Iterating 283 loop_(loop), in LoopPeelingInfo() 320 Loop* loop_; member in spvtools::LoopPeelingPass::LoopPeelingInfo [all...] |
H A D | loop_peeling.cpp | 57 BasicBlock* pre_header = loop_->GetOrCreatePreHeaderBlock(); in DuplicateAndConnectLoop() 59 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); in DuplicateAndConnectLoop() 71 // Make the |loop_|'s preheader the |cloned_loop_| one. in DuplicateAndConnectLoop() 77 cfg.RemoveEdge(pre_header->id(), loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() 79 loop_->SetPreHeaderBlock(nullptr); in DuplicateAndConnectLoop() 82 // |cloned_loop_| shares the same block as |loop_|. in DuplicateAndConnectLoop() 83 // We mutate all branches from |cloned_loop_| block to |loop_|'s merge into a in DuplicateAndConnectLoop() 84 // branch to |loop_|'s header (so header will also be the merge of in DuplicateAndConnectLoop() 87 for (uint32_t pred_id : cfg.preds(loop_->GetMergeBlock()->id())) { in DuplicateAndConnectLoop() 88 if (loop_ in DuplicateAndConnectLoop() [all...] |
H A D | loop_fission.cpp | 62 : context_(context), loop_(loop), load_used_in_condition_(false) {} in LoopFissionImpl() 104 Loop* loop_; member in spvtools::opt::LoopFissionImpl 137 !loop_->IsInsideLoop(context_->get_instr_block(user))) { in TraverseUseDef() 193 BasicBlock* condition_block = loop_->FindConditionBlock(); in GroupInstructionsByUseDef() 201 Function& function = *loop_->GetHeaderBlock()->GetParent(); in GroupInstructionsByUseDef() 213 if (!loop_->IsInsideLoop(block.id())) continue; in GroupInstructionsByUseDef() 226 if (!loop_->IsInsideLoop(block.id()) || in GroupInstructionsByUseDef() 227 loop_->GetHeaderBlock()->id() == block.id()) in GroupInstructionsByUseDef() 279 Loop* parent_loop = loop_; in CanPerformSplit() 308 const size_t loop_depth = loop_ in CanPerformSplit() [all...] |
H A D | loop_unroller.cpp | 982 if (!loop_->GetHeaderBlock()->GetMergeInst()) { in CanPerformUnroll() 987 const BasicBlock* condition = loop_->FindConditionBlock(); in CanPerformUnroll() 991 const Instruction* induction = loop_->FindConditionVariable(condition); in CanPerformUnroll() 995 if (!loop_->FindNumberOfIterations(induction, &*condition->ctail(), nullptr)) in CanPerformUnroll() 1005 loop_->FindNumberOfIterations(induction, &*condition->ctail(), in CanPerformUnroll() 1014 const Instruction& branch = *loop_->GetLatchBlock()->ctail(); in CanPerformUnroll() 1017 branch.GetSingleWordInOperand(0) == loop_->GetHeaderBlock()->id(); in CanPerformUnroll() 1023 loop_->GetInductionVariables(inductions); in CanPerformUnroll() 1027 context_->cfg()->preds(loop_->GetMergeBlock()->id()); in CanPerformUnroll() 1034 context_->cfg()->preds(loop_ in CanPerformUnroll() [all...] |
H A D | loop_utils.h | 70 loop_(loop), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 155 // Returns the context associate to |loop_|. 157 // Returns the loop descriptor owning |loop_|. 160 Loop* GetLoop() const { return loop_; } in GetLoop() 161 // Returns the function that |loop_| belong to. 167 Loop* loop_; member in spvtools::opt::LoopUtils [all...] |
/third_party/node/src/ |
H A D | node_watchdog.cc | 46 rc = uv_loop_init(&loop_); in Watchdog() 51 rc = uv_async_init(&loop_, &async_, [](uv_async_t* signal) { in Watchdog() 53 uv_stop(&w->loop_); in Watchdog() 58 rc = uv_timer_init(&loop_, &timer_); in Watchdog() 76 uv_run(&loop_, UV_RUN_DEFAULT); in ~Watchdog() 78 CheckedUvLoopClose(&loop_); in ~Watchdog() 87 uv_run(&wd->loop_, UV_RUN_DEFAULT); in Run() 98 uv_stop(&w->loop_); in Timer()
|