/external/libbrillo/brillo/message_loops/ |
D | message_loop_unittest.cc | 55 EXPECT_TRUE(this->loop_.get()); in SetUp() 60 std::unique_ptr<MessageLoop> loop_; member in brillo::MessageLoopTest 71 loop_.reset(new BaseMessageLoop(base::MessageLoopForIO::current())); in MessageLoopSetUp() 81 EXPECT_FALSE(this->loop_->CancelTask(MessageLoop::kTaskIdNull)); in TYPED_TEST() 82 EXPECT_FALSE(this->loop_->CancelTask(1234)); in TYPED_TEST() 87 TaskId task_id = this->loop_->PostTask(FROM_HERE, Bind(&SetToTrue, &called)); in TYPED_TEST() 89 MessageLoopRunMaxIterations(this->loop_.get(), 100); in TYPED_TEST() 96 TaskId task_id = this->loop_->PostTask(FROM_HERE, Bind(&SetToTrue, &called)); in TYPED_TEST() 97 EXPECT_TRUE(this->loop_->CancelTask(task_id)); in TYPED_TEST() 98 MessageLoopRunMaxIterations(this->loop_.get(), 100); in TYPED_TEST() [all …]
|
D | fake_message_loop_unittest.cc | 31 loop_.reset(new FakeMessageLoop(nullptr)); in SetUp() 32 EXPECT_TRUE(loop_.get()); in SetUp() 35 EXPECT_FALSE(loop_->PendingTasks()); in TearDown() 39 std::unique_ptr<FakeMessageLoop> loop_; member in brillo::FakeMessageLoopTest 43 EXPECT_FALSE(loop_->CancelTask(MessageLoop::kTaskIdNull)); in TEST_F() 44 EXPECT_FALSE(loop_->CancelTask(1234)); in TEST_F() 52 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 1), in TEST_F() 54 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 4), in TEST_F() 56 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 3), in TEST_F() 58 loop_->PostDelayedTask(Bind(callback, base::Unretained(&order), 2), in TEST_F() [all …]
|
D | base_message_loop.cc | 318 : location_(location), loop_(loop), task_id_(task_id), in IOTask() 329 loop_->base_loop_->pump_.get())->WatchFileDescriptor( in StartWatching() 363 bool base_scheduled = loop_->base_loop_->task_runner()->PostTask( in OnFileReady() 366 loop_->weak_ptr_factory_.GetWeakPtr(), in OnFileReady() 386 BaseMessageLoop* loop_ptr = loop_; in OnFileReadyPostedTask() 394 loop_->io_tasks_.erase(task_id_); in OnFileReadyPostedTask() 416 loop_->io_tasks_.erase(task_id_); in OnFileReadyPostedTask() 437 loop_->io_tasks_.erase(task_id_); in CancelTask()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
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() 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() 167 BasicBlock* if_merge_block = loop_->GetMergeBlock(); in PerformUnswitch() 208 if (Loop* ploop = loop_->GetParent()) { in PerformUnswitch() 224 loop_->SetMergeBlock(loop_merge_block); in PerformUnswitch() [all …]
|
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_->GetBlocks(), exit_bb, in MakeLoopClosedSSA() [all …]
|
D | loop_peeling.cpp | 43 BasicBlock* pre_header = loop_->GetOrCreatePreHeaderBlock(); in DuplicateAndConnectLoop() 45 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); in DuplicateAndConnectLoop() 63 cfg.RemoveEdge(pre_header->id(), loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() 65 loop_->SetPreHeaderBlock(nullptr); in DuplicateAndConnectLoop() 73 for (uint32_t pred_id : cfg.preds(loop_->GetMergeBlock()->id())) { in DuplicateAndConnectLoop() 74 if (loop_->IsInsideLoop(pred_id)) continue; in DuplicateAndConnectLoop() 79 if (*succ == loop_->GetMergeBlock()->id()) in DuplicateAndConnectLoop() 80 *succ = loop_->GetHeaderBlock()->id(); in DuplicateAndConnectLoop() 85 cfg.RemoveNonExistingEdges(loop_->GetMergeBlock()->id()); in DuplicateAndConnectLoop() 86 cfg.AddEdge(cloned_loop_exit, loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() [all …]
|
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_->GetDepth(); in CanPerformSplit() [all …]
|
D | loop_peeling.h | 83 loop_(loop), 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_; variable 283 loop_(loop), in LoopPeelingInfo() 320 Loop* loop_; variable
|
D | loop_unroller.cpp | 950 if (!loop_->GetHeaderBlock()->GetMergeInst()) { in CanPerformUnroll() 955 const BasicBlock* condition = loop_->FindConditionBlock(); in CanPerformUnroll() 959 const Instruction* induction = loop_->FindConditionVariable(condition); in CanPerformUnroll() 963 if (!loop_->FindNumberOfIterations(induction, &*condition->ctail(), nullptr)) in CanPerformUnroll() 968 const Instruction& branch = *loop_->GetLatchBlock()->ctail(); in CanPerformUnroll() 971 branch.GetSingleWordInOperand(0) == loop_->GetHeaderBlock()->id(); in CanPerformUnroll() 977 loop_->GetInductionVariables(inductions); in CanPerformUnroll() 981 context_->cfg()->preds(loop_->GetMergeBlock()->id()); in CanPerformUnroll() 988 context_->cfg()->preds(loop_->GetContinueBlock()->id()); in CanPerformUnroll() 996 for (uint32_t label_id : loop_->GetBlocks()) { in CanPerformUnroll() [all …]
|
D | loop_utils.h | 70 loop_(loop), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 160 Loop* GetLoop() const { return loop_; } in GetLoop() 167 Loop* loop_; variable
|
D | scalar_analysis_nodes.h | 242 : SENode(parent_analysis), loop_(loop) {} in SERecurrentNode() 263 const Loop* GetLoop() const { return loop_; } in GetLoop() 271 const Loop* loop_; variable
|
D | loop_dependence.h | 170 explicit Constraint(const Loop* loop) : loop_(loop) {} in Constraint() 178 const Loop* GetLoop() const { return loop_; } in GetLoop() 195 const Loop* loop_;
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
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_->GetBlocks(), exit_bb, in MakeLoopClosedSSA() [all …]
|
D | loop_peeling.cpp | 43 BasicBlock* pre_header = loop_->GetOrCreatePreHeaderBlock(); in DuplicateAndConnectLoop() 45 loop_->ComputeLoopStructuredOrder(&ordered_loop_blocks); in DuplicateAndConnectLoop() 63 cfg.RemoveEdge(pre_header->id(), loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() 65 loop_->SetPreHeaderBlock(nullptr); in DuplicateAndConnectLoop() 73 for (uint32_t pred_id : cfg.preds(loop_->GetMergeBlock()->id())) { in DuplicateAndConnectLoop() 74 if (loop_->IsInsideLoop(pred_id)) continue; in DuplicateAndConnectLoop() 79 if (*succ == loop_->GetMergeBlock()->id()) in DuplicateAndConnectLoop() 80 *succ = loop_->GetHeaderBlock()->id(); in DuplicateAndConnectLoop() 85 cfg.RemoveNonExistingEdges(loop_->GetMergeBlock()->id()); in DuplicateAndConnectLoop() 86 cfg.AddEdge(cloned_loop_exit, loop_->GetHeaderBlock()->id()); in DuplicateAndConnectLoop() [all …]
|
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_->GetDepth(); in CanPerformSplit() [all …]
|
D | loop_unswitch_pass.cpp | 58 loop_(loop), in LoopUnswitch() 71 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 75 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 117 assert(loop_->GetPreHeaderBlock() && "This loop has no pre-header block"); in PerformUnswitch() 118 assert(loop_->IsLCSSA() && "This loop is not in LCSSA form"); in PerformUnswitch() 124 LoopUtils loop_utils(context_, loop_); in PerformUnswitch() 136 BasicBlock* if_merge_block = loop_->GetMergeBlock(); in PerformUnswitch() 176 if (Loop* ploop = loop_->GetParent()) { in PerformUnswitch() 193 loop_->SetMergeBlock(loop_merge_block); in PerformUnswitch() 201 BasicBlock* if_block = loop_->GetPreHeaderBlock(); in PerformUnswitch() [all …]
|
D | loop_peeling.h | 83 loop_(loop), 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_; variable 283 loop_(loop), in LoopPeelingInfo() 320 Loop* loop_; variable
|
D | loop_unroller.cpp | 950 if (!loop_->GetHeaderBlock()->GetMergeInst()) { in CanPerformUnroll() 955 const BasicBlock* condition = loop_->FindConditionBlock(); in CanPerformUnroll() 959 const Instruction* induction = loop_->FindConditionVariable(condition); in CanPerformUnroll() 963 if (!loop_->FindNumberOfIterations(induction, &*condition->ctail(), nullptr)) in CanPerformUnroll() 968 const Instruction& branch = *loop_->GetLatchBlock()->ctail(); in CanPerformUnroll() 971 branch.GetSingleWordInOperand(0) == loop_->GetHeaderBlock()->id(); in CanPerformUnroll() 977 loop_->GetInductionVariables(inductions); in CanPerformUnroll() 981 context_->cfg()->preds(loop_->GetMergeBlock()->id()); in CanPerformUnroll() 988 context_->cfg()->preds(loop_->GetContinueBlock()->id()); in CanPerformUnroll() 996 for (uint32_t label_id : loop_->GetBlocks()) { in CanPerformUnroll() [all …]
|
D | loop_utils.h | 70 loop_(loop), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 160 Loop* GetLoop() const { return loop_; } in GetLoop() 167 Loop* loop_; variable
|
D | scalar_analysis_nodes.h | 242 : SENode(parent_analysis), loop_(loop) {} in SERecurrentNode() 263 const Loop* GetLoop() const { return loop_; } in GetLoop() 271 const Loop* loop_; variable
|
D | loop_dependence.h | 170 explicit Constraint(const Loop* loop) : loop_(loop) {} in Constraint() 178 const Loop* GetLoop() const { return loop_; } in GetLoop() 195 const Loop* loop_;
|
/external/libchrome/base/message_loop/ |
D | message_loop_current.cc | 93 : loop_(GetTLSMessageLoop()->Get()), in ScopedNestableTaskAllower() 94 old_state_(loop_->NestableTasksAllowed()) { in ScopedNestableTaskAllower() 95 loop_->SetNestableTasksAllowed(true); in ScopedNestableTaskAllower() 99 loop_->SetNestableTasksAllowed(old_state_); in ~ScopedNestableTaskAllower()
|
D | message_pump_glib_unittest.cc | 160 MessagePumpGLibTest() : loop_(nullptr), injector_(nullptr) {} in MessagePumpGLibTest() 164 loop_ = new MessageLoop(MessageLoop::TYPE_UI); in SetUp() 170 delete loop_; in TearDown() 171 loop_ = nullptr; in TearDown() 174 MessageLoop* loop() const { return loop_; } in loop() 178 MessageLoop* loop_; member in base::__anon87a0a6620111::MessagePumpGLibTest
|
/external/libchrome/base/ |
D | observer_list_unittest.cc | 115 loop_(nullptr), in AddRemoveThread() 127 loop_ = new MessageLoop(); // Fire up a message loop. in ThreadMain() 128 loop_->task_runner()->PostTask( in ThreadMain() 138 delete loop_; in ThreadMain() 139 loop_ = reinterpret_cast<MessageLoop*>(0xdeadbeef); in ThreadMain() 162 loop_->task_runner()->PostTask( in AddTask() 178 EXPECT_EQ(loop_, MessageLoop::current()); in Observe() 186 MessageLoop* loop_; member in base::__anonea3212f50111::AddRemoveThread
|
/external/libchrome/ui/gfx/range/mojo/ |
D | range_struct_traits_unittest.cc | 38 base::MessageLoop loop_; member in gfx::__anonbfa7beb00111::RangeStructTraitsTest
|