/external/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 192 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst, in EvaluateBlock() argument 198 DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n"); in EvaluateBlock() 200 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock() 273 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateBlock() 279 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateBlock() 285 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateBlock() 291 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock() 297 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) { in EvaluateBlock() 302 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) { in EvaluateBlock() 308 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateBlock() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 326 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst, in EvaluateBlock() argument 332 LLVM_DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n"); in EvaluateBlock() 334 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock() 397 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateBlock() 403 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateBlock() 409 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateBlock() 415 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock() 421 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) { in EvaluateBlock() 426 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) { in EvaluateBlock() 432 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateBlock() [all …]
|
D | CodeMoverUtils.cpp | 297 Instruction *CurInst = *WorkList.begin(); in collectInstructionsInBetween() local 298 WorkList.erase(CurInst); in collectInstructionsInBetween() 300 if (CurInst == &EndInst) in collectInstructionsInBetween() 303 if (!InBetweenInsts.insert(CurInst).second) in collectInstructionsInBetween() 306 getNextInsts(*CurInst, WorkList); in collectInstructionsInBetween() 379 [&DI, &I](Instruction *CurInst) { in isSafeToMoveBefore() argument 380 auto DepResult = DI->depends(&I, CurInst, true); in isSafeToMoveBefore()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 328 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst, in EvaluateBlock() argument 334 LLVM_DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n"); in EvaluateBlock() 336 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock() 398 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateBlock() 404 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateBlock() 410 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateBlock() 416 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock() 422 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) { in EvaluateBlock() 427 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) { in EvaluateBlock() 433 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateBlock() [all …]
|
D | CodeMoverUtils.cpp | 79 Instruction *CurInst = *WorkList.begin(); in collectInstructionsInBetween() local 80 WorkList.erase(CurInst); in collectInstructionsInBetween() 82 if (CurInst == &EndInst) in collectInstructionsInBetween() 85 if (!InBetweenInsts.insert(CurInst).second) in collectInstructionsInBetween() 88 getNextInsts(*CurInst, WorkList); in collectInstructionsInBetween() 164 [&DI, &I](Instruction *CurInst) { in isSafeToMoveBefore() argument 165 auto DepResult = DI.depends(&I, CurInst, true); in isSafeToMoveBefore()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | MustExecute.h | 285 CurInst(Other.CurInst) {} in MustBeExecutedIterator() 289 CurInst(Other.CurInst) {} in MustBeExecutedIterator() 294 std::swap(CurInst, Other.CurInst); 304 CurInst = advance(); 318 return CurInst == Other.CurInst; 327 const Instruction *&operator*() { return CurInst; } 328 const Instruction *getCurrentInst() const { return CurInst; } in getCurrentInst() 358 const Instruction *CurInst; member
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | MustExecute.h | 286 CurInst(Other.CurInst), Head(Other.Head), Tail(Other.Tail) {} in MustBeExecutedIterator() 290 CurInst(Other.CurInst), Head(Other.Head), Tail(Other.Tail) {} in MustBeExecutedIterator() 295 std::swap(CurInst, Other.CurInst); 307 CurInst = advance(); 321 return CurInst == Other.CurInst && Head == Other.Head && Tail == Other.Tail; 330 const Instruction *&operator*() { return CurInst; } 331 const Instruction *getCurrentInst() const { return CurInst; } in getCurrentInst() 368 const Instruction *CurInst; member
|
/external/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 224 MachineBasicBlock::iterator CurInst; in searchBackwards() local 227 CurInst = I; in searchBackwards() 229 Found = getPreviousInstr(CurInst, MFI); in searchBackwards() 230 while (Found && I != CurInst) { in searchBackwards() 231 if (CurInst->isCall() || CurInst->isInlineAsm()) in searchBackwards() 235 if (usesRegister(p, CurInst) == RU_Write) { in searchBackwards() 236 return CurInst; in searchBackwards() 239 MF->getSubtarget().getInstrItineraryData(), *CurInst); in searchBackwards() 240 Found = getPreviousInstr(CurInst, MFI); in searchBackwards()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 67 BasicBlock::iterator CurInst; // The next instruction to execute member 74 ExecutionContext() : CurFunction(nullptr), CurBB(nullptr), CurInst(nullptr) {} in ExecutionContext() 77 : CurFunction(O.CurFunction), CurBB(O.CurBB), CurInst(O.CurInst), in ExecutionContext() 84 CurInst = O.CurInst;
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 2274 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument 2275 if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() || in performScalarPRE() 2276 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE() 2277 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE() 2278 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE() 2285 if (isa<CmpInst>(CurInst)) in performScalarPRE() 2295 if (isa<GetElementPtrInst>(CurInst)) in performScalarPRE() 2299 if (auto *CallB = dyn_cast<CallBase>(CurInst)) in performScalarPRE() 2303 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE() 2314 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 2462 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument 2463 if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() || in performScalarPRE() 2464 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE() 2465 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE() 2466 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE() 2473 if (isa<CmpInst>(CurInst)) in performScalarPRE() 2483 if (isa<GetElementPtrInst>(CurInst)) in performScalarPRE() 2486 if (auto *CallB = dyn_cast<CallBase>(CurInst)) { in performScalarPRE() 2495 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE() 2506 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 275 MachineBasicBlock::iterator CurInst; in searchBackwards() local 278 CurInst = I; in searchBackwards() 280 Found = getPreviousInstr(CurInst, MBB); in searchBackwards() 281 while (Found && I != CurInst) { in searchBackwards() 282 if (CurInst->isCall() || CurInst->isInlineAsm()) in searchBackwards() 286 if (usesRegister(p, CurInst) == RU_Write) { in searchBackwards() 287 return CurInst; in searchBackwards() 289 InstrDistance += TSM.computeInstrLatency(&*CurInst); in searchBackwards() 290 Found = getPreviousInstr(CurInst, MBB); in searchBackwards()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 290 MachineBasicBlock::iterator CurInst; in searchBackwards() local 293 CurInst = I; in searchBackwards() 295 Found = getPreviousInstr(CurInst, MBB); in searchBackwards() 296 while (Found && I != CurInst) { in searchBackwards() 297 if (CurInst->isCall() || CurInst->isInlineAsm()) in searchBackwards() 301 if (usesRegister(p, CurInst) == RU_Write) { in searchBackwards() 302 return CurInst; in searchBackwards() 304 InstrDistance += TSM.computeInstrLatency(&*CurInst); in searchBackwards() 305 Found = getPreviousInstr(CurInst, MBB); in searchBackwards()
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 2338 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument 2339 if (isa<AllocaInst>(CurInst) || isa<TerminatorInst>(CurInst) || in performScalarPRE() 2340 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE() 2341 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE() 2342 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE() 2349 if (isa<CmpInst>(CurInst)) in performScalarPRE() 2353 if (CallInst *CallI = dyn_cast<CallInst>(CurInst)) in performScalarPRE() 2357 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE() 2368 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE() 2388 } else if (predV == CurInst) { in performScalarPRE() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/LiveDebugValues/ |
D | InstrRefBasedImpl.cpp | 1340 unsigned CurInst; member in __anon84c0493f0211::InstrRefBasedLDV 1740 NewID->getInst() > CurInst) in transferDebugInstrRef() 1797 MTracker->defReg(DeadReg, CurBB, CurInst); in transferRegisterDef() 1800 MTracker->writeRegMask(MO, CurBB, CurInst); in transferRegisterDef() 1813 MTracker->defReg(*SRI, CurBB, CurInst); in performCopy() 1820 MTracker->defReg(DRI.getSubReg(), CurBB, CurInst); in performCopy() 1983 MTracker->defReg(*RAI, CurBB, CurInst); in transferSpillOrRestoreInst() 1996 MTracker->defReg(*RAI, CurBB, CurInst); in transferSpillOrRestoreInst() 2062 MTracker->defReg(SrcReg, CurBB, CurInst); in transferRegisterCopy() 2161 CurInst = 1; in produceMLocTransferFunction() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 62 BasicBlock::iterator CurInst; // The next instruction to execute member 69 ExecutionContext() : CurFunction(nullptr), CurBB(nullptr), CurInst(nullptr) {} in ExecutionContext()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 63 BasicBlock::iterator CurInst; // The next instruction to execute member 70 ExecutionContext() : CurFunction(nullptr), CurBB(nullptr), CurInst(nullptr) {} in ExecutionContext()
|
D | Execution.cpp | 986 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr... in SwitchToNewBasicBlock() 988 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do in SwitchToNewBasicBlock() 993 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) { in SwitchToNewBasicBlock() 1004 SF.CurInst = SF.CurBB->begin(); in SwitchToNewBasicBlock() 1005 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) { in SwitchToNewBasicBlock() 1006 PHINode *PN = cast<PHINode>(SF.CurInst); in SwitchToNewBasicBlock() 1151 SF.CurInst = Parent->begin(); in visitCallSite() 1153 SF.CurInst = me; in visitCallSite() 1154 ++SF.CurInst; in visitCallSite() 2142 StackFrame.CurInst = StackFrame.CurBB->begin(); in callFunction() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MustExecute.cpp | 695 : Explorer(Explorer), CurInst(I) { in MustBeExecutedIterator() 700 CurInst = I; in reset() 706 assert(CurInst && "Cannot advance an end iterator!"); in advance() 708 Explorer.getMustBeExecutedNextInstruction(*this, CurInst); in advance()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 89 const Instruction *CurInst; variable 610 : CurInst(nullptr), SDNodeOrder(LowestSDNodeOrder), TM(dag.getTarget()), in SelectionDAGBuilder() 648 return SDLoc(CurInst, SDNodeOrder); in getCurSDLoc() 652 return CurInst ? CurInst->getDebugLoc() : DebugLoc(); in getCurDebugLoc()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Evaluator.h | 62 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 95 const Instruction *CurInst = nullptr; variable 478 return SDLoc(CurInst, SDNodeOrder); in getCurSDLoc() 482 return CurInst ? CurInst->getDebugLoc() : DebugLoc(); in getCurDebugLoc()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | Evaluator.h | 63 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | Evaluator.h | 63 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 98 const Instruction *CurInst = nullptr; variable 479 return SDLoc(CurInst, SDNodeOrder); in getCurSDLoc() 483 return CurInst ? CurInst->getDebugLoc() : DebugLoc(); in getCurDebugLoc()
|