Home
last modified time | relevance | path

Searched refs:VisitState (Results 1 – 10 of 10) sorted by relevance

/external/clang/include/clang/Serialization/
DModuleManager.h81 struct VisitState { struct
82 explicit VisitState(unsigned N) in VisitState() function
88 ~VisitState() { in ~VisitState() argument
104 VisitState *NextState; argument
108 VisitState *FirstVisitState;
110 VisitState *allocateVisitState();
111 void returnVisitState(VisitState *State);
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_group_util.cc264 if ((*visit_state)[hlo] == VisitState::kVisited) { in VisitTopologicalOrder()
267 TF_RET_CHECK((*visit_state)[instruction] == VisitState::kVisited); in VisitTopologicalOrder()
273 if ((*visit_state)[hlo] == VisitState::kVisiting) { in VisitTopologicalOrder()
278 TF_RET_CHECK((*visit_state)[instruction] == VisitState::kVisiting); in VisitTopologicalOrder()
279 (*visit_state)[instruction] = VisitState::kVisited; in VisitTopologicalOrder()
287 TF_RET_CHECK((*visit_state)[instruction] == VisitState::kNotVisited) in VisitTopologicalOrder()
289 (*visit_state)[instruction] = VisitState::kVisiting; in VisitTopologicalOrder()
299 if ((*visit_state)[predecessor] == VisitState::kVisiting) { in VisitTopologicalOrder()
336 TF_RET_CHECK(state.second == VisitState::kVisited); in VerifyComputations()
Ddfs_hlo_visitor.cc42 typename DfsHloVisitorBase<HloInstructionPtr>::VisitState
53 visit_state_[instruction.unique_id()] = VisitState::kVisiting; in SetVisiting()
61 visit_state_[instruction.unique_id()] = VisitState::kVisited; in SetVisited()
Ddfs_hlo_visitor.h302 enum VisitState { enum
308 VisitState GetVisitState(int id) { in GetVisitState()
311 return VisitState::kNotVisited; in GetVisitState()
315 VisitState GetVisitState(const HloInstruction& instruction);
335 visit_state_ = absl::flat_hash_map<int, VisitState>{}; in DestroyVisitState()
338 void SetVisitState(int id, VisitState state) { visit_state_[id] = state; } in SetVisitState()
387 absl::flat_hash_map<int, VisitState> visit_state_;
Dhlo_module_group_util.h62 enum VisitState { enum
90 using VisitStates = absl::flat_hash_map<HloInstruction*, VisitState>;
Dhlo_computation.h696 enum VisitState { kVisiting, kVisited }; enum
700 absl::flat_hash_map<HloInstruction*, VisitState>& visited,
Dhlo_computation.cc448 absl::flat_hash_map<HloInstruction*, VisitState>& visited, in ComputeInstructionPostOrder()
523 absl::flat_hash_map<HloInstruction*, VisitState> visited; in MakeInstructionPostOrder()
1230 absl::flat_hash_map<const HloInstruction*, VisitState> visited; in CloneWithReplacements()
Dhlo_instruction.cc3765 typename Visitor::VisitState visit_state = in PostOrderDFS()
/external/clang/lib/Serialization/
DModuleManager.cpp255 ModuleManager::VisitState *ModuleManager::allocateVisitState() { in allocateVisitState()
258 VisitState *Result = FirstVisitState; in allocateVisitState()
265 return new VisitState(size()); in allocateVisitState()
268 void ModuleManager::returnVisitState(VisitState *State) { in returnVisitState()
357 VisitState *State = allocateVisitState(); in visit()
/external/tensorflow/tensorflow/compiler/xla/client/
Dvalue_inference.cc1491 enum VisitState { in PostOrderDFSVisit() enum
1500 PostorderDFSNodeType type, VisitState state, int64_t id) in PostOrderDFSVisit()
1509 VisitState state; in PostOrderDFSVisit()