/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | PHIEliminationUtils.cpp | 41 MachineBasicBlock::iterator InsertPoint; in findPHICopyInsertPoint() local 44 InsertPoint = MBB->begin(); in findPHICopyInsertPoint() 47 InsertPoint = *DefUsesInMBB.begin(); in findPHICopyInsertPoint() 48 ++InsertPoint; in findPHICopyInsertPoint() 51 InsertPoint = MBB->end(); in findPHICopyInsertPoint() 52 while (!DefUsesInMBB.count(&*--InsertPoint)) {} in findPHICopyInsertPoint() 53 ++InsertPoint; in findPHICopyInsertPoint() 58 return MBB->SkipPHIsAndLabels(InsertPoint); in findPHICopyInsertPoint()
|
/external/llvm/lib/CodeGen/ |
D | PHIEliminationUtils.cpp | 42 MachineBasicBlock::iterator InsertPoint; in findPHICopyInsertPoint() local 45 InsertPoint = MBB->begin(); in findPHICopyInsertPoint() 48 InsertPoint = *DefUsesInMBB.begin(); in findPHICopyInsertPoint() 49 ++InsertPoint; in findPHICopyInsertPoint() 52 InsertPoint = MBB->end(); in findPHICopyInsertPoint() 53 while (!DefUsesInMBB.count(&*--InsertPoint)) {} in findPHICopyInsertPoint() 54 ++InsertPoint; in findPHICopyInsertPoint() 58 return MBB->SkipPHIsAndLabels(InsertPoint); in findPHICopyInsertPoint()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CodeMoverUtils.cpp | 92 bool llvm::isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, in isSafeToMoveBefore() argument 97 if (&I == &InsertPoint) in isSafeToMoveBefore() 101 if (I.getNextNode() == &InsertPoint) in isSafeToMoveBefore() 104 if (isa<PHINode>(I) || isa<PHINode>(InsertPoint)) in isSafeToMoveBefore() 111 if (!isControlFlowEquivalent(I, InsertPoint, DT, PDT)) in isSafeToMoveBefore() 116 const bool MoveForward = DT.dominates(&I, &InsertPoint); in isSafeToMoveBefore() 122 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore() 129 if (&InsertPoint == OpInst || !DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore() 133 Instruction &StartInst = (MoveForward ? I : InsertPoint); in isSafeToMoveBefore() 134 Instruction &EndInst = (MoveForward ? InsertPoint : I); in isSafeToMoveBefore() [all …]
|
/external/llvm-project/llvm/utils/TableGen/GlobalISel/ |
D | GIMatchDagOperands.cpp | 63 void *InsertPoint; in makeEmptyOperandList() local 65 OperandLists.FindNodeOrInsertPos(ID, InsertPoint); in makeEmptyOperandList() 71 OperandLists.InsertNode(NewValue.get(), InsertPoint); in makeEmptyOperandList() 83 void *InsertPoint; in makeOperandList() local 85 OperandLists.FindNodeOrInsertPos(ID, InsertPoint); in makeOperandList() 93 OperandLists.InsertNode(NewValue.get(), InsertPoint); in makeOperandList() 104 void *InsertPoint; in makeMIPredicateOperandList() local 106 OperandLists.FindNodeOrInsertPos(ID, InsertPoint); in makeMIPredicateOperandList() 114 OperandLists.InsertNode(NewValue.get(), InsertPoint); in makeMIPredicateOperandList() 127 void *InsertPoint; in makeTwoMOPredicateOperandList() local [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CodeMoverUtils.cpp | 310 bool llvm::isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, in isSafeToMoveBefore() argument 318 if (&I == &InsertPoint) in isSafeToMoveBefore() 322 if (I.getNextNode() == &InsertPoint) in isSafeToMoveBefore() 325 if (isa<PHINode>(I) || isa<PHINode>(InsertPoint)) in isSafeToMoveBefore() 332 if (!isControlFlowEquivalent(I, InsertPoint, DT, *PDT)) in isSafeToMoveBefore() 335 if (!DT.dominates(&InsertPoint, &I)) in isSafeToMoveBefore() 338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore() 340 if (!DT.dominates(&I, &InsertPoint)) in isSafeToMoveBefore() 343 if (&InsertPoint == OpInst || !DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore() 347 const bool MoveForward = domTreeLevelBefore(&DT, &I, &InsertPoint); in isSafeToMoveBefore() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | PHIEliminationUtils.cpp | 45 MachineBasicBlock::iterator InsertPoint = MBB->begin(); in findPHICopyInsertPoint() local 51 InsertPoint = std::next(I.getReverse()); in findPHICopyInsertPoint() 56 InsertPoint = I.getReverse(); in findPHICopyInsertPoint() 63 return MBB->SkipPHIsAndLabels(InsertPoint); in findPHICopyInsertPoint()
|
/external/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegBankSelect.h | 101 class InsertPoint { 128 virtual ~InsertPoint() {} in ~InsertPoint() 193 class InstrInsertPoint : public InsertPoint { 224 class MBBInsertPoint : public InsertPoint { 242 : InsertPoint(), MBB(MBB), Beginning(Beginning) { in InsertPoint() function 258 class EdgeInsertPoint : public InsertPoint { 285 : InsertPoint(), Src(Src), DstOrSplit(&Dst), P(P) {} in EdgeInsertPoint() 311 typedef SmallVector<std::unique_ptr<InsertPoint>, 2> InsertionPoints; 359 void addInsertPoint(InsertPoint &Point);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegBankSelect.h | 110 class InsertPoint { 138 virtual ~InsertPoint() = default; 203 class InstrInsertPoint : public InsertPoint { 236 class MBBInsertPoint : public InsertPoint { 255 : InsertPoint(), MBB(MBB), Beginning(Beginning) { in InsertPoint() function 272 class EdgeInsertPoint : public InsertPoint { 301 : InsertPoint(), Src(Src), DstOrSplit(&Dst), P(P) {} in EdgeInsertPoint() 329 using InsertionPoints = SmallVector<std::unique_ptr<InsertPoint>, 2>; 377 void addInsertPoint(InsertPoint &Point);
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | RegBankSelect.h | 110 class InsertPoint { 138 virtual ~InsertPoint() = default; 203 class InstrInsertPoint : public InsertPoint { 236 class MBBInsertPoint : public InsertPoint { 255 : InsertPoint(), MBB(MBB), Beginning(Beginning) { in InsertPoint() function 272 class EdgeInsertPoint : public InsertPoint { 301 : InsertPoint(), Src(Src), DstOrSplit(&Dst), P(P) {} in EdgeInsertPoint() 329 using InsertionPoints = SmallVector<std::unique_ptr<InsertPoint>, 2>; 377 void addInsertPoint(InsertPoint &Point);
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | ControlHeightReduction.cpp | 550 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument 554 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue() 561 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue() 567 if (DT.dominates(I, InsertPoint)) { in checkHoistValue() 581 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue() 895 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local 896 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable() 908 if (SI == InsertPoint) { in checkScopeHoistable() 913 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable() 930 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | ControlHeightReduction.cpp | 557 checkHoistValue(Value *V, Instruction *InsertPoint, DominatorTree &DT, in checkHoistValue() argument 561 assert(InsertPoint && "Null InsertPoint"); in checkHoistValue() 567 assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination"); in checkHoistValue() 573 if (DT.dominates(I, InsertPoint)) { in checkHoistValue() 587 if (!checkHoistValue(Op, InsertPoint, DT, Unhoistables, &OpsHoistStops, in checkHoistValue() 901 Instruction *InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() local 902 CHR_DEBUG(dbgs() << "InsertPoint " << *InsertPoint << "\n"); in checkScopeHoistable() 914 if (SI == InsertPoint) { in checkScopeHoistable() 919 bool IsHoistable = checkHoistValue(SI->getCondition(), InsertPoint, in checkScopeHoistable() 936 InsertPoint = getBranchInsertPoint(RI); in checkScopeHoistable() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCVSXSwapRemoval.cpp | 154 void insertSwap(MachineInstr *MI, MachineBasicBlock::iterator InsertPoint, 794 MachineBasicBlock::iterator InsertPoint, in insertSwap() argument 796 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in insertSwap() 893 auto InsertPoint = ++MachineBasicBlock::iterator(MI); in handleSpecialSwappables() local 904 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 907 DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 909 insertSwap(MI, InsertPoint, VSRCTmp2, VSRCTmp1); in handleSpecialSwappables() 910 DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 912 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 915 DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCVSXSwapRemoval.cpp | 150 void insertSwap(MachineInstr *MI, MachineBasicBlock::iterator InsertPoint, 800 MachineBasicBlock::iterator InsertPoint, in insertSwap() argument 802 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in insertSwap() 905 auto InsertPoint = ++MachineBasicBlock::iterator(MI); in handleSpecialSwappables() local 916 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 919 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 921 insertSwap(MI, InsertPoint, VSRCTmp2, VSRCTmp1); in handleSpecialSwappables() 922 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 924 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 927 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() [all …]
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCVSXSwapRemoval.cpp | 150 void insertSwap(MachineInstr *MI, MachineBasicBlock::iterator InsertPoint, 823 MachineBasicBlock::iterator InsertPoint, in insertSwap() argument 825 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in insertSwap() 928 auto InsertPoint = ++MachineBasicBlock::iterator(MI); in handleSpecialSwappables() local 939 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 942 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 944 insertSwap(MI, InsertPoint, VSRCTmp2, VSRCTmp1); in handleSpecialSwappables() 945 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() 947 BuildMI(*MI->getParent(), InsertPoint, MI->getDebugLoc(), in handleSpecialSwappables() 950 LLVM_DEBUG(std::prev(InsertPoint)->dump()); in handleSpecialSwappables() [all …]
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | Builders.h | 260 class InsertPoint { 263 InsertPoint() = default; 266 InsertPoint(Block *insertBlock, Block::iterator insertPt) in InsertPoint() function 289 OpBuilder::InsertPoint ip; 301 InsertPoint saveInsertionPoint() const { in saveInsertionPoint() 302 return InsertPoint(getInsertionBlock(), getInsertionPoint()); in saveInsertionPoint() 306 void restoreInsertionPoint(InsertPoint ip) { in restoreInsertionPoint()
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | CodeMoverUtils.h | 40 bool isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint, 47 bool isSafeToMoveBefore(BasicBlock &BB, Instruction &InsertPoint,
|
/external/tensorflow/tensorflow/compiler/mlir/python/mlir_wrapper/ |
D | builders.cc | 51 py::class_<mlir::OpBuilder::InsertPoint>(m, "OpBuilder_InsertionPoint") in init_builders() 52 .def("getBlock", &mlir::OpBuilder::InsertPoint::getBlock); in init_builders()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Attributes.cpp | 87 void *InsertPoint; in get() local 88 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 97 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 110 void *InsertPoint; in get() local 111 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 117 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 131 void *InsertPoint; in get() local 132 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 138 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 751 void *InsertPoint; in get() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Frontend/OpenMP/ |
D | OMPIRBuilder.h | 41 using InsertPointTy = IRBuilder<>::InsertPoint; 165 IRBuilder<>::InsertPoint
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CodeGenABITypes.cpp | 121 llvm::BasicBlock::iterator InsertPoint, const CXXDestructorDecl *D, in getCXXDestructorImplicitParam() argument 127 CGF.Builder.SetInsertPoint(InsertBlock, InsertPoint); in getCXXDestructorImplicitParam()
|
/external/llvm-project/llvm/unittests/Frontend/ |
D | OpenMPIRBuilderTest.cpp | 88 OMPBuilder.createBarrier({IRBuilder<>::InsertPoint()}, OMPD_for); in TEST_F() 389 IRBuilder<>::InsertPoint AllocaIP(&F->getEntryBlock(), in TEST_F() 391 IRBuilder<>::InsertPoint AfterIP = in TEST_F() 473 IRBuilder<>::InsertPoint AfterIP = OMPBuilder.createParallel( in TEST_F() 481 IRBuilder<>::InsertPoint AllocaIP(&F->getEntryBlock(), in TEST_F() 483 IRBuilder<>::InsertPoint AfterIP = in TEST_F() 569 IRBuilder<>::InsertPoint AfterIP1 = OMPBuilder.createParallel( in TEST_F() 576 IRBuilder<>::InsertPoint AfterIP2 = OMPBuilder.createParallel( in TEST_F() 584 IRBuilder<>::InsertPoint AllocaIP(&F->getEntryBlock(), in TEST_F() 586 IRBuilder<>::InsertPoint AfterIP = in TEST_F() [all …]
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 71 void *InsertPoint; in get() local 72 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 81 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 94 void *InsertPoint; in get() local 95 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 101 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 558 void *InsertPoint; in get() local 560 pImpl->AttrsSetNodes.FindNodeOrInsertPos(ID, InsertPoint); in get() 568 pImpl->AttrsSetNodes.InsertNode(PA, InsertPoint); in get() 696 void *InsertPoint; in getImpl() local [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | Attributes.cpp | 88 void *InsertPoint; in get() local 89 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 98 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 111 void *InsertPoint; in get() local 112 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 121 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 135 void *InsertPoint; in get() local 136 AttributeImpl *PA = pImpl->AttrsSet.FindNodeOrInsertPos(ID, InsertPoint); in get() 142 pImpl->AttrsSet.InsertNode(PA, InsertPoint); in get() 832 void *InsertPoint; in getSorted() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | CodeMoverUtils.h | 44 bool isSafeToMoveBefore(Instruction &I, Instruction &InsertPoint,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorizationPlanner.h | 76 VPInsertPoint(VPBasicBlock *InsertBlock, VPBasicBlock::iterator InsertPoint) in VPInsertPoint() argument 77 : Block(InsertBlock), Point(InsertPoint) {} in VPInsertPoint()
|