/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 69 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); in convertMemCpyToLoop() local 71 OrigBB->getTerminator()->setSuccessor(0, LoopBB); in convertMemCpyToLoop() 83 IRBuilder<> LoopBuilder(LoopBB); in convertMemCpyToLoop() 103 LoopIndex->addIncoming(NewIndex, LoopBB); in convertMemCpyToLoop() 105 LoopBuilder.CreateCondBr(LoopBuilder.CreateICmpULT(NewIndex, CopyLen), LoopBB, in convertMemCpyToLoop() 169 BasicBlock *LoopBB = in convertMemMoveToLoop() local 171 IRBuilder<> LoopBuilder(LoopBB); in convertMemMoveToLoop() 181 ExitBB, LoopBB); in convertMemMoveToLoop() 182 LoopPhi->addIncoming(IndexPtr, LoopBB); in convertMemMoveToLoop() 184 BranchInst::Create(ExitBB, LoopBB, CompareN, ThenTerm); in convertMemMoveToLoop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LowerMemIntrinsics.cpp | 53 BasicBlock *LoopBB = in createMemCpyLoopKnownSize() local 55 PreLoopBB->getTerminator()->setSuccessor(0, LoopBB); in createMemCpyLoopKnownSize() 70 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopKnownSize() 83 LoopIndex->addIncoming(NewIndex, LoopBB); in createMemCpyLoopKnownSize() 88 LoopBB, PostLoopBB); in createMemCpyLoopKnownSize() 177 BasicBlock *LoopBB = in createMemCpyLoopUnknownSize() local 179 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopUnknownSize() 191 LoopIndex->addIncoming(NewIndex, LoopBB); in createMemCpyLoopUnknownSize() 213 LoopBB, ResHeaderBB); in createMemCpyLoopUnknownSize() 217 LoopBuilder.CreateICmpULT(NewIndex, RuntimeLoopCount), LoopBB, in createMemCpyLoopUnknownSize() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | SILowerControlFlow.cpp | 101 MachineBasicBlock &LoopBB, 106 void emitLoadM0FromVGPRLoop(MachineBasicBlock &LoopBB, DebugLoc DL, 416 MachineBasicBlock &LoopBB, in splitLoadM0BlockLiveIns() argument 426 LoopBB.addLiveIn(Val->getReg()); in splitLoadM0BlockLiveIns() 437 LoopBB.addLiveIn(Src->getReg()); in splitLoadM0BlockLiveIns() 440 LoopBB.addLiveIn(IdxReg.getReg()); in splitLoadM0BlockLiveIns() 441 LoopBB.sortUniqueLiveIns(); in splitLoadM0BlockLiveIns() 444 void SILowerControlFlow::emitLoadM0FromVGPRLoop(MachineBasicBlock &LoopBB, in emitLoadM0FromVGPRLoop() argument 449 MachineBasicBlock::iterator I = LoopBB.begin(); in emitLoadM0FromVGPRLoop() 452 BuildMI(LoopBB, I, DL, TII->get(AMDGPU::V_READFIRSTLANE_B32), AMDGPU::VCC_LO) in emitLoadM0FromVGPRLoop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 118 BasicBlock *LoopBB = BasicBlock::Create(Context, "loop", F); in TEST_F() local 120 BranchInst::Create(LoopBB, EntryBB); in TEST_F() 121 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), in TEST_F() 122 LoopBB); in TEST_F() 125 auto *PN = PHINode::Create(Ty, 2, "", &*LoopBB->begin()); in TEST_F() 127 PN->addIncoming(UndefValue::get(Ty), LoopBB); in TEST_F() 152 BasicBlock *LoopBB = BasicBlock::Create(Context, "loop", F); in TEST_F() local 154 BranchInst::Create(LoopBB, EntryBB); in TEST_F() 170 LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), LoopBB); in TEST_F() 335 BasicBlock *LoopBB = BasicBlock::Create(Context, "bb1", F); in TEST_F() local [all …]
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 245 BasicBlock *LoopBB = BasicBlock::Create(Context, "loop", F); in TEST_F() local 247 BranchInst::Create(LoopBB, EntryBB); in TEST_F() 248 BranchInst::Create(LoopBB, ExitBB, UndefValue::get(Type::getInt1Ty(Context)), in TEST_F() 249 LoopBB); in TEST_F() 252 auto *PN = PHINode::Create(Ty, 2, "", &*LoopBB->begin()); in TEST_F() 254 PN->addIncoming(UndefValue::get(Ty), LoopBB); in TEST_F()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430ISelLowering.cpp | 1211 MachineBasicBlock *LoopBB = F->CreateMachineBasicBlock(LLVM_BB); in EmitShiftInstr() local 1214 F->insert(I, LoopBB); in EmitShiftInstr() 1224 BB->addSuccessor(LoopBB); in EmitShiftInstr() 1226 LoopBB->addSuccessor(RemBB); in EmitShiftInstr() 1227 LoopBB->addSuccessor(LoopBB); in EmitShiftInstr() 1251 BuildMI(LoopBB, dl, TII.get(MSP430::PHI), ShiftReg) in EmitShiftInstr() 1253 .addReg(ShiftReg2).addMBB(LoopBB); in EmitShiftInstr() 1254 BuildMI(LoopBB, dl, TII.get(MSP430::PHI), ShiftAmtReg) in EmitShiftInstr() 1256 .addReg(ShiftAmtReg2).addMBB(LoopBB); in EmitShiftInstr() 1257 BuildMI(LoopBB, dl, TII.get(Opc), ShiftReg2) in EmitShiftInstr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
D | MSP430ISelLowering.cpp | 1433 MachineBasicBlock *LoopBB = F->CreateMachineBasicBlock(LLVM_BB); in EmitShiftInstr() local 1436 F->insert(I, LoopBB); in EmitShiftInstr() 1446 BB->addSuccessor(LoopBB); in EmitShiftInstr() 1448 LoopBB->addSuccessor(RemBB); in EmitShiftInstr() 1449 LoopBB->addSuccessor(LoopBB); in EmitShiftInstr() 1473 BuildMI(LoopBB, dl, TII.get(MSP430::PHI), ShiftReg) in EmitShiftInstr() 1475 .addReg(ShiftReg2).addMBB(LoopBB); in EmitShiftInstr() 1476 BuildMI(LoopBB, dl, TII.get(MSP430::PHI), ShiftAmtReg) in EmitShiftInstr() 1478 .addReg(ShiftAmtReg2).addMBB(LoopBB); in EmitShiftInstr() 1479 BuildMI(LoopBB, dl, TII.get(Opc), ShiftReg2) in EmitShiftInstr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 787 auto LoopBB = BasicBlock::Create(Ctx, "partword.cmpxchg.loop", F, FailureBB); in expandPartwordCmpXchg() local 808 Builder.CreateBr(LoopBB); in expandPartwordCmpXchg() 811 Builder.SetInsertPoint(LoopBB); in expandPartwordCmpXchg() 844 Builder.CreateCondBr(ShouldContinue, LoopBB, EndBB); in expandPartwordCmpXchg() 895 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop() local 901 Builder.CreateBr(LoopBB); in insertRMWLLSCLoop() 904 Builder.SetInsertPoint(LoopBB); in insertRMWLLSCLoop() 913 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop() 1241 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWCmpXchgLoop() local 1251 Builder.CreateBr(LoopBB); in insertRMWCmpXchgLoop() [all …]
|
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 778 auto LoopBB = BasicBlock::Create(Ctx, "partword.cmpxchg.loop", F, FailureBB); in expandPartwordCmpXchg() local 799 Builder.CreateBr(LoopBB); in expandPartwordCmpXchg() 802 Builder.SetInsertPoint(LoopBB); in expandPartwordCmpXchg() 835 Builder.CreateCondBr(ShouldContinue, LoopBB, EndBB); in expandPartwordCmpXchg() 886 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWLLSCLoop() local 892 Builder.CreateBr(LoopBB); in insertRMWLLSCLoop() 895 Builder.SetInsertPoint(LoopBB); in insertRMWLLSCLoop() 904 Builder.CreateCondBr(TryAgain, LoopBB, ExitBB); in insertRMWLLSCLoop() 1237 BasicBlock *LoopBB = BasicBlock::Create(Ctx, "atomicrmw.start", F, ExitBB); in insertRMWCmpXchgLoop() local 1247 Builder.CreateBr(LoopBB); in insertRMWCmpXchgLoop() [all …]
|
D | MachineBlockPlacement.cpp | 1276 for (MachineBasicBlock *LoopBB : L.getBlocks()) { in collectLoopBlockSet() 1277 auto Freq = MBFI->getBlockFreq(LoopBB).getFrequency(); in collectLoopBlockSet() 1280 LoopBlockSet.insert(LoopBB); in collectLoopBlockSet() 1335 for (MachineBasicBlock *LoopBB : LoopBlockSet) in buildLoopChains() 1336 fillWorkLists(LoopBB, UpdatedPreds, &LoopBlockSet); in buildLoopChains() 1369 for (MachineBasicBlock *LoopBB : LoopBlockSet) in buildLoopChains() 1373 << " Bad block: " << getBlockName(LoopBB) << "\n"; in buildLoopChains()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AVR/ |
D | AVRISelLowering.cpp | 1491 MachineBasicBlock *LoopBB = F->CreateMachineBasicBlock(LLVM_BB); in insertShift() local 1494 F->insert(I, LoopBB); in insertShift() 1504 BB->addSuccessor(LoopBB); in insertShift() 1506 LoopBB->addSuccessor(RemBB); in insertShift() 1507 LoopBB->addSuccessor(LoopBB); in insertShift() 1528 BuildMI(LoopBB, dl, TII.get(AVR::PHI), ShiftReg) in insertShift() 1532 .addMBB(LoopBB); in insertShift() 1533 BuildMI(LoopBB, dl, TII.get(AVR::PHI), ShiftAmtReg) in insertShift() 1537 .addMBB(LoopBB); in insertShift() 1538 BuildMI(LoopBB, dl, TII.get(Opc), ShiftReg2).addReg(ShiftReg); in insertShift() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 684 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 687 Builder.CreateBr(LoopBB); in codegen() 690 Builder.SetInsertPoint(LoopBB); in codegen() 736 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter5/ |
D | toy.cpp | 698 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 701 Builder.CreateBr(LoopBB); in codegen() 704 Builder.SetInsertPoint(LoopBB); in codegen() 750 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 795 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 798 Builder.CreateBr(LoopBB); in codegen() 801 Builder.SetInsertPoint(LoopBB); in codegen() 847 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/Chapter6/ |
D | toy.cpp | 810 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 813 Builder.CreateBr(LoopBB); in codegen() 816 Builder.SetInsertPoint(LoopBB); in codegen() 862 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy-jit.cpp | 803 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() local 806 Builder.CreateBr(LoopBB); in Codegen() 809 Builder.SetInsertPoint(LoopBB); in Codegen() 851 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in Codegen()
|
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy-jit.cpp | 803 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() local 806 Builder.CreateBr(LoopBB); in Codegen() 809 Builder.SetInsertPoint(LoopBB); in Codegen() 851 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in Codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 821 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() local 824 Builder.CreateBr(LoopBB); in Codegen() 827 Builder.SetInsertPoint(LoopBB); in Codegen() 869 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in Codegen()
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 821 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in Codegen() local 824 Builder.CreateBr(LoopBB); in Codegen() 827 Builder.SetInsertPoint(LoopBB); in Codegen() 869 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in Codegen()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
D | toy.cpp | 909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 912 Builder.CreateBr(LoopBB); in codegen() 915 Builder.SetInsertPoint(LoopBB); in codegen() 959 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
D | toy.cpp | 898 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 901 Builder.CreateBr(LoopBB); in codegen() 904 Builder.SetInsertPoint(LoopBB); in codegen() 948 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
D | toy.cpp | 921 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 924 Builder.CreateBr(LoopBB); in codegen() 927 Builder.SetInsertPoint(LoopBB); in codegen() 971 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
D | toy.cpp | 909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 912 Builder.CreateBr(LoopBB); in codegen() 915 Builder.SetInsertPoint(LoopBB); in codegen() 959 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
D | toy.cpp | 907 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 910 Builder.CreateBr(LoopBB); in codegen() 913 Builder.SetInsertPoint(LoopBB); in codegen() 957 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
D | toy.cpp | 909 BasicBlock *LoopBB = BasicBlock::Create(TheContext, "loop", TheFunction); in codegen() local 912 Builder.CreateBr(LoopBB); in codegen() 915 Builder.SetInsertPoint(LoopBB); in codegen() 959 Builder.CreateCondBr(EndCond, LoopBB, AfterBB); in codegen()
|