/third_party/spirv-tools/source/val/ |
H A D | basic_block.cpp | 23 BasicBlock::BasicBlock(uint32_t label_id) in BasicBlock() function in spvtools::val::BasicBlock 36 void BasicBlock::SetImmediateDominator(BasicBlock* dom_block) { in SetImmediateDominator() 40 void BasicBlock::SetImmediateStructuralDominator(BasicBlock* dom_block) { in SetImmediateStructuralDominator() 44 void BasicBlock::SetImmediateStructuralPostDominator(BasicBlock* pdom_block) { in SetImmediateStructuralPostDominator() 48 const BasicBlock* BasicBlock [all...] |
H A D | basic_block.h | 43 class BasicBlock { class 45 /// Constructor for a BasicBlock 48 explicit BasicBlock(uint32_t id); 50 /// Returns the id of the BasicBlock 53 /// Returns the predecessors of the BasicBlock 54 const std::vector<BasicBlock*>* predecessors() const { in predecessors() 58 /// Returns the predecessors of the BasicBlock 59 std::vector<BasicBlock*>* predecessors() { return &predecessors_; } in predecessors() 61 /// Returns the successors of the BasicBlock 62 const std::vector<BasicBlock*>* successor [all...] |
H A D | function.h | 38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator ()() 39 auto h1 = std::hash<const BasicBlock*>{}(p.first); in operator ()() 113 /// Returns a pair consisting of the BasicBlock with \p id and a bool 117 std::pair<const BasicBlock*, bool> GetBlock(uint32_t id) const; 118 std::pair<BasicBlock*, bool> GetBlock(uint32_t id); 121 const BasicBlock* first_block() const; 124 BasicBlock* first_block(); 127 const std::vector<BasicBlock*>& ordered_blocks() const; 130 std::vector<BasicBlock*>& ordered_blocks(); 154 BasicBlock* current_bloc [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | basic_block.cpp | 24 BasicBlock::BasicBlock(uint32_t label_id) in BasicBlock() function in spvtools::val::BasicBlock 35 void BasicBlock::SetImmediateDominator(BasicBlock* dom_block) { in SetImmediateDominator() 39 void BasicBlock::SetImmediatePostDominator(BasicBlock* pdom_block) { in SetImmediatePostDominator() 43 const BasicBlock* BasicBlock::immediate_dominator() const { in immediate_dominator() 47 const BasicBlock* BasicBlock [all...] |
H A D | basic_block.h | 43 class BasicBlock { class 45 /// Constructor for a BasicBlock 48 explicit BasicBlock(uint32_t id); 50 /// Returns the id of the BasicBlock 53 /// Returns the predecessors of the BasicBlock 54 const std::vector<BasicBlock*>* predecessors() const { in predecessors() 58 /// Returns the predecessors of the BasicBlock 59 std::vector<BasicBlock*>* predecessors() { return &predecessors_; } in predecessors() 61 /// Returns the successors of the BasicBlock 62 const std::vector<BasicBlock*>* successor [all...] |
H A D | function.h | 38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator ()() 39 auto h1 = std::hash<const BasicBlock*>{}(p.first); in operator ()() 111 /// Returns a pair consisting of the BasicBlock with \p id and a bool 115 std::pair<const BasicBlock*, bool> GetBlock(uint32_t id) const; 116 std::pair<BasicBlock*, bool> GetBlock(uint32_t id); 119 const BasicBlock* first_block() const; 122 BasicBlock* first_block(); 125 const std::vector<BasicBlock*>& ordered_blocks() const; 128 std::vector<BasicBlock*>& ordered_blocks(); 152 BasicBlock* current_bloc [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | basic_block.cpp | 24 BasicBlock::BasicBlock(uint32_t label_id) in BasicBlock() function in spvtools::val::BasicBlock 35 void BasicBlock::SetImmediateDominator(BasicBlock* dom_block) { in SetImmediateDominator() 39 void BasicBlock::SetImmediatePostDominator(BasicBlock* pdom_block) { in SetImmediatePostDominator() 43 const BasicBlock* BasicBlock::immediate_dominator() const { in immediate_dominator() 47 const BasicBlock* BasicBlock [all...] |
H A D | basic_block.h | 43 class BasicBlock { class 45 /// Constructor for a BasicBlock 48 explicit BasicBlock(uint32_t id); 50 /// Returns the id of the BasicBlock 53 /// Returns the predecessors of the BasicBlock 54 const std::vector<BasicBlock*>* predecessors() const { in predecessors() 58 /// Returns the predecessors of the BasicBlock 59 std::vector<BasicBlock*>* predecessors() { return &predecessors_; } in predecessors() 61 /// Returns the successors of the BasicBlock 62 const std::vector<BasicBlock*>* successor [all...] |
H A D | function.h | 38 const std::pair<const BasicBlock*, ConstructType>& p) const { in operator ()() 39 auto h1 = std::hash<const BasicBlock*>{}(p.first); in operator ()() 111 /// Returns a pair consisting of the BasicBlock with \p id and a bool 115 std::pair<const BasicBlock*, bool> GetBlock(uint32_t id) const; 116 std::pair<BasicBlock*, bool> GetBlock(uint32_t id); 119 const BasicBlock* first_block() const; 122 BasicBlock* first_block(); 125 const std::vector<BasicBlock*>& ordered_blocks() const; 128 std::vector<BasicBlock*>& ordered_blocks(); 152 BasicBlock* current_bloc [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | schedule.h | 19 class BasicBlock; 23 using BasicBlockVector = ZoneVector<BasicBlock*>; 29 class V8_EXPORT_PRIVATE BasicBlock final 58 BasicBlock(Zone* zone, Id id); 59 BasicBlock(const BasicBlock&) = delete; 60 BasicBlock& operator=(const BasicBlock&) = delete; 76 BasicBlock* PredecessorAt(size_t index) { return predecessors_[index]; } in PredecessorAt() 78 void AddPredecessor(BasicBlock* predecesso in ClearPredecessors() [all...] |
H A D | schedule.cc | 15 BasicBlock::BasicBlock(Zone* zone, Id id) in BasicBlock() function in v8::internal::compiler::BasicBlock 36 bool BasicBlock::LoopContains(BasicBlock* block) const { in LoopContains() 45 void BasicBlock::AddSuccessor(BasicBlock* successor) { in AddSuccessor() 49 void BasicBlock::AddPredecessor(BasicBlock* predecessor) { in AddPredecessor() 53 void BasicBlock::RemovePredecessor(size_t index) { in RemovePredecessor() 57 void BasicBlock [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
H A D | JumpThreading.h | 32 class BasicBlock; 53 using PredValueInfo = SmallVectorImpl<std::pair<Constant *, BasicBlock *>>; 54 using PredValueInfoTy = SmallVector<std::pair<Constant *, BasicBlock *>, 8>; 87 SmallPtrSet<const BasicBlock *, 16> LoopHeaders; 89 SmallSet<AssertingVH<const BasicBlock>, 16> LoopHeaders; 111 bool ProcessBlock(BasicBlock *BB); 112 bool MaybeMergeBasicBlockIntoOnlyPred(BasicBlock *BB); 113 void UpdateSSA(BasicBlock *BB, BasicBlock *NewBB, 115 DenseMap<Instruction *, Value *> CloneInstructions(BasicBlock [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
H A D | BasicBlock.h | 1 //===- llvm/BasicBlock.h - Represent a basic block in the VM ----*- C++ -*-===// 9 // This file contains the declaration of the BasicBlock class. 47 /// tables. The type of a BasicBlock is "Type::LabelTy" because the basic block 53 /// the blocks. The BasicBlock class allows malformed basic blocks to occur 57 class BasicBlock final : public Value, // Basic blocks are data objects also 58 public ilist_node_with_parent<BasicBlock, Function> { 64 friend class SymbolTableListTraits<BasicBlock>; 76 explicit BasicBlock(LLVMContext &C, const Twine &Name = "", 78 BasicBlock *InsertBefore = nullptr); 81 BasicBlock(cons [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
H A D | MemorySSAUpdater.h | 41 #include "llvm/IR/BasicBlock.h" 66 using CFGUpdate = cfg::Update<BasicBlock *>; 68 std::pair<const GraphDiff<BasicBlock *> *, Inverse<BasicBlock *>>; 78 SmallPtrSet<BasicBlock *, 8> VisitedBlocks; 105 void removeEdge(BasicBlock *From, BasicBlock *To); 109 void removeDuplicatePhiEdgesBetween(const BasicBlock *From, 110 const BasicBlock *To); 112 void updatePhisWhenInsertingUniqueBackedgeBlock(BasicBlock *LoopHeade [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | cfg.h | 34 // TODO(dnovillo): Move this to BasicBlock. 42 BasicBlock* block(uint32_t blk_id) const { return id2block_.at(blk_id); } in block() 45 const BasicBlock* pseudo_entry_block() const { return &pseudo_entry_block_; } in pseudo_entry_block() 46 BasicBlock* pseudo_entry_block() { return &pseudo_entry_block_; } in pseudo_entry_block() 48 const BasicBlock* pseudo_exit_block() const { return &pseudo_exit_block_; } in pseudo_exit_block() 49 BasicBlock* pseudo_exit_block() { return &pseudo_exit_block_; } in pseudo_exit_block() 52 bool IsPseudoEntryBlock(BasicBlock* block_ptr) const { in IsPseudoEntryBlock() 57 bool IsPseudoExitBlock(BasicBlock* block_ptr) const { in IsPseudoExitBlock() 66 void ComputeStructuredOrder(Function* func, BasicBlock* root, 67 std::list<BasicBlock*>* orde [all...] |
H A D | merge_return_pass.h | 148 std::vector<BasicBlock*> CollectReturnBlocks(Function* function); 154 const std::vector<BasicBlock*>& returnBlocks); 157 void GenerateState(BasicBlock* block); 164 const std::vector<BasicBlock*>& return_blocks); 175 void ProcessStructuredBlock(BasicBlock* block); 189 void RecordReturned(BasicBlock* block); 198 void RecordReturnValue(BasicBlock* block); 203 void BranchToBlock(BasicBlock* block, uint32_t target); 214 bool PredicateBlocks(BasicBlock* return_block, 215 std::unordered_set<BasicBlock*>* pSe [all...] |
H A D | inline_pass.h | 37 using cbb_ptr = const BasicBlock*; 50 void AddBranch(uint32_t labelId, std::unique_ptr<BasicBlock>* block_ptr); 54 std::unique_ptr<BasicBlock>* block_ptr); 58 std::unique_ptr<BasicBlock>* block_ptr); 62 std::unique_ptr<BasicBlock>* block_ptr, 67 std::unique_ptr<BasicBlock>* block_ptr, 79 void MapParams(Function* calleeFn, BasicBlock::iterator call_inst_itr, 105 std::unique_ptr<BasicBlock>* block_ptr); 123 bool GenInlineCode(std::vector<std::unique_ptr<BasicBlock>>* new_blocks, 125 BasicBlock [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
H A D | BasicBlock.h | 1 //===-- llvm/BasicBlock.h - Represent a basic block in the VM ---*- C++ -*-===// 10 // This file contains the declaration of the BasicBlock class. 41 /// tables. The type of a BasicBlock is "Type::LabelTy" because the basic block 47 /// terminate the blocks. The BasicBlock class allows malformed basic blocks to 51 class BasicBlock : public Value, // Basic blocks are data objects also class 52 public ilist_node_with_parent<BasicBlock, Function> { 58 friend class SymbolTableListTraits<BasicBlock>; 70 explicit BasicBlock(LLVMContext &C, const Twine &Name = "", 72 BasicBlock *InsertBefore = nullptr); 75 BasicBlock(cons [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 1 //===-- BasicBlock.cpp - Implement BasicBlock related methods -------------===// 9 // This file implements the BasicBlock class for the IR library. 13 #include "llvm/IR/BasicBlock.h" 26 ValueSymbolTable *BasicBlock::getValueSymbolTable() { in getValueSymbolTable() 32 LLVMContext &BasicBlock::getContext() const { in getContext() 40 BasicBlock::BasicBlock(LLVMContext &C, const Twine &Name, Function *NewParent, in BasicBlock() function in BasicBlock 41 BasicBlock *InsertBefore) in BasicBlock() 53 void BasicBlock [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | cfg.h | 34 // TODO(dnovillo): Move this to BasicBlock. 42 BasicBlock* block(uint32_t blk_id) const { return id2block_.at(blk_id); } in block() 45 const BasicBlock* pseudo_entry_block() const { return &pseudo_entry_block_; } in pseudo_entry_block() 46 BasicBlock* pseudo_entry_block() { return &pseudo_entry_block_; } in pseudo_entry_block() 48 const BasicBlock* pseudo_exit_block() const { return &pseudo_exit_block_; } in pseudo_exit_block() 49 BasicBlock* pseudo_exit_block() { return &pseudo_exit_block_; } in pseudo_exit_block() 52 bool IsPseudoEntryBlock(BasicBlock* block_ptr) const { in IsPseudoEntryBlock() 57 bool IsPseudoExitBlock(BasicBlock* block_ptr) const { in IsPseudoExitBlock() 66 void ComputeStructuredOrder(Function* func, BasicBlock* root, 67 std::list<BasicBlock*>* orde [all...] |
H A D | merge_return_pass.h | 150 std::vector<BasicBlock*> CollectReturnBlocks(Function* function); 156 const std::vector<BasicBlock*>& returnBlocks); 159 void GenerateState(BasicBlock* block); 166 const std::vector<BasicBlock*>& return_blocks); 177 void ProcessStructuredBlock(BasicBlock* block); 191 void RecordReturned(BasicBlock* block); 200 void RecordReturnValue(BasicBlock* block); 205 void BranchToBlock(BasicBlock* block, uint32_t target); 216 bool PredicateBlocks(BasicBlock* return_block, 217 std::unordered_set<BasicBlock*>* pSe [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | cfg.h | 34 // TODO(dnovillo): Move this to BasicBlock. 42 BasicBlock* block(uint32_t blk_id) const { return id2block_.at(blk_id); } in block() 45 const BasicBlock* pseudo_entry_block() const { return &pseudo_entry_block_; } in pseudo_entry_block() 46 BasicBlock* pseudo_entry_block() { return &pseudo_entry_block_; } in pseudo_entry_block() 48 const BasicBlock* pseudo_exit_block() const { return &pseudo_exit_block_; } in pseudo_exit_block() 49 BasicBlock* pseudo_exit_block() { return &pseudo_exit_block_; } in pseudo_exit_block() 52 bool IsPseudoEntryBlock(BasicBlock* block_ptr) const { in IsPseudoEntryBlock() 57 bool IsPseudoExitBlock(BasicBlock* block_ptr) const { in IsPseudoExitBlock() 66 void ComputeStructuredOrder(Function* func, BasicBlock* root, 67 std::list<BasicBlock*>* orde [all...] |
H A D | merge_return_pass.h | 150 std::vector<BasicBlock*> CollectReturnBlocks(Function* function); 156 const std::vector<BasicBlock*>& returnBlocks); 159 void GenerateState(BasicBlock* block); 166 const std::vector<BasicBlock*>& return_blocks); 177 void ProcessStructuredBlock(BasicBlock* block); 191 void RecordReturned(BasicBlock* block); 200 void RecordReturnValue(BasicBlock* block); 205 void BranchToBlock(BasicBlock* block, uint32_t target); 216 bool PredicateBlocks(BasicBlock* return_block, 217 std::unordered_set<BasicBlock*>* pSe [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
H A D | BasicBlockUtils.h | 1 //===- Transform/Utils/BasicBlockUtils.h - BasicBlock Utils -----*- C++ -*-===// 17 // FIXME: Move to this file: BasicBlock::removePredecessor, BB::splitBasicBlock 21 #include "llvm/IR/BasicBlock.h" 47 void DetatchDeadBlocks(ArrayRef <BasicBlock *> BBs, 52 void DeleteDeadBlock(BasicBlock *BB, DomTreeUpdater *DTU = nullptr, 61 void DeleteDeadBlocks(ArrayRef <BasicBlock *> BBs, 75 void FoldSingleEntryPHINodes(BasicBlock *BB, 82 bool DeleteDeadPHIs(BasicBlock *BB, const TargetLibraryInfo *TLI = nullptr); 91 bool MergeBlockIntoPredecessor(BasicBlock *BB, DomTreeUpdater *DTU = nullptr, 99 bool RemoveRedundantDbgInstrs(BasicBlock *B [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
H A D | FlattenCFG.cpp | 17 #include "llvm/IR/BasicBlock.h" 40 bool FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder); 45 bool MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder); 52 bool CompareIfRegionBlock(BasicBlock *Head1, BasicBlock *Head2, 53 BasicBlock *Block1, BasicBlock *Block2); 58 bool run(BasicBlock *BB); 136 bool FlattenCFGOpt::FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder) { in FlattenParallelAndOr() 141 BasicBlock *LastCondBloc in FlattenParallelAndOr() [all...] |