/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | Evaluator.cpp | 291 bool Evaluator::EvaluateBlock(BasicBlock::iterator CurInst, in EvaluateBlock() argument 297 LLVM_DEBUG(dbgs() << "Evaluating Instruction: " << *CurInst << "\n"); in EvaluateBlock() 299 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateBlock() 372 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateBlock() 378 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateBlock() 384 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateBlock() 390 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock() 396 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) { in EvaluateBlock() 401 } else if (auto *IVI = dyn_cast<InsertValueInst>(CurInst)) { in EvaluateBlock() 407 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateBlock() [all …]
|
/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;
|
D | Execution.cpp | 933 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr... in SwitchToNewBasicBlock() 935 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do in SwitchToNewBasicBlock() 940 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) { in SwitchToNewBasicBlock() 951 SF.CurInst = SF.CurBB->begin(); in SwitchToNewBasicBlock() 952 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) { in SwitchToNewBasicBlock() 953 PHINode *PN = cast<PHINode>(SF.CurInst); in SwitchToNewBasicBlock() 1099 SF.CurInst = Parent->begin(); in visitCallSite() 1101 SF.CurInst = me; in visitCallSite() 1102 ++SF.CurInst; in visitCallSite() 2095 StackFrame.CurInst = StackFrame.CurBB->begin(); in callFunction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86FixupLEAs.cpp | 255 MachineBasicBlock::iterator CurInst; in searchBackwards() local 258 CurInst = I; in searchBackwards() 260 Found = getPreviousInstr(CurInst, MFI); in searchBackwards() 261 while (Found && I != CurInst) { in searchBackwards() 262 if (CurInst->isCall() || CurInst->isInlineAsm()) in searchBackwards() 266 if (usesRegister(p, CurInst) == RU_Write) { in searchBackwards() 267 return CurInst; in searchBackwards() 269 InstrDistance += TSM.computeInstrLatency(&*CurInst); in searchBackwards() 270 Found = getPreviousInstr(CurInst, MFI); in searchBackwards()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 2186 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument 2187 if (isa<AllocaInst>(CurInst) || isa<TerminatorInst>(CurInst) || in performScalarPRE() 2188 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE() 2189 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE() 2190 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE() 2197 if (isa<CmpInst>(CurInst)) in performScalarPRE() 2201 if (CallInst *CallI = dyn_cast<CallInst>(CurInst)) in performScalarPRE() 2205 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE() 2216 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE() 2230 llvm::any_of(CurInst->operands(), [&](const Use &U) { in performScalarPRE() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | GVN.cpp | 2236 Instruction *CurInst = BI++; in performPRE() local 2238 if (isa<AllocaInst>(CurInst) || in performPRE() 2239 isa<TerminatorInst>(CurInst) || isa<PHINode>(CurInst) || in performPRE() 2240 CurInst->getType()->isVoidTy() || in performPRE() 2241 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performPRE() 2242 isa<DbgInfoIntrinsic>(CurInst)) in performPRE() 2246 if (CallInst *CallI = dyn_cast<CallInst>(CurInst)) in performPRE() 2250 uint32_t ValNo = VN.lookup(CurInst); in performPRE() 2281 } else if (predV == CurInst) { in performPRE() 2312 Instruction *PREInstr = CurInst->clone(); in performPRE() [all …]
|
/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/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2330 BasicBlock::iterator CurInst = F->begin()->begin(); in EvaluateFunction() local 2336 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) { in EvaluateFunction() 2388 } else if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CurInst)) { in EvaluateFunction() 2392 } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { in EvaluateFunction() 2396 } else if (CastInst *CI = dyn_cast<CastInst>(CurInst)) { in EvaluateFunction() 2400 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateFunction() 2404 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(CurInst)) { in EvaluateFunction() 2413 } else if (LoadInst *LI = dyn_cast<LoadInst>(CurInst)) { in EvaluateFunction() 2418 } else if (AllocaInst *AI = dyn_cast<AllocaInst>(CurInst)) { in EvaluateFunction() 2426 } else if (CallInst *CI = dyn_cast<CallInst>(CurInst)) { in EvaluateFunction() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 704 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr... in SwitchToNewBasicBlock() 706 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do in SwitchToNewBasicBlock() 711 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) { in SwitchToNewBasicBlock() 722 SF.CurInst = SF.CurBB->begin(); in SwitchToNewBasicBlock() 723 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) { in SwitchToNewBasicBlock() 724 PHINode *PN = cast<PHINode>(SF.CurInst); in SwitchToNewBasicBlock() 870 SF.CurInst = Parent->begin(); in visitCallSite() 872 SF.CurInst = me; in visitCallSite() 873 ++SF.CurInst; in visitCallSite() 1301 StackFrame.CurInst = StackFrame.CurBB->begin(); in callFunction() [all …]
|
D | Interpreter.h | 73 BasicBlock::iterator CurInst; // The next instruction to execute member
|
/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()
|
D | SelectionDAGBuilder.cpp | 864 CurInst = nullptr; in clear() 979 CurInst = &I; in visit() 987 CurInst = nullptr; in visit()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 64 BasicBlock::iterator CurInst; // The next instruction to execute member 71 ExecutionContext() : CurFunction(nullptr), CurBB(nullptr), CurInst(nullptr) {} in ExecutionContext()
|
D | Execution.cpp | 933 SF.CurInst = SF.CurBB->begin(); // Update new instruction ptr... in SwitchToNewBasicBlock() 935 if (!isa<PHINode>(SF.CurInst)) return; // Nothing fancy to do in SwitchToNewBasicBlock() 940 for (; PHINode *PN = dyn_cast<PHINode>(SF.CurInst); ++SF.CurInst) { in SwitchToNewBasicBlock() 951 SF.CurInst = SF.CurBB->begin(); in SwitchToNewBasicBlock() 952 for (unsigned i = 0; isa<PHINode>(SF.CurInst); ++SF.CurInst, ++i) { in SwitchToNewBasicBlock() 953 PHINode *PN = cast<PHINode>(SF.CurInst); in SwitchToNewBasicBlock() 1098 SF.CurInst = Parent->begin(); in visitCallSite() 1100 SF.CurInst = me; in visitCallSite() 1101 ++SF.CurInst; in visitCallSite() 2094 StackFrame.CurInst = StackFrame.CurBB->begin(); in callFunction() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Evaluator.h | 62 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | Evaluator.h | 64 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 95 const Instruction *CurInst = nullptr; variable 660 return SDLoc(CurInst, SDNodeOrder); in getCurSDLoc() 664 return CurInst ? CurInst->getDebugLoc() : DebugLoc(); in getCurDebugLoc()
|
D | SelectionDAGBuilder.cpp | 1000 CurInst = nullptr; in clear() 1065 CurInst = &I; in visit() 1089 CurInst = nullptr; in visit()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceVariableSplitting.cpp | 189 void setInst(Inst *CurInst, InstList::iterator Cur, InstList::iterator Next) { in setInst() argument 190 Instr = CurInst; in setInst()
|
D | IceTargetLoweringX86BaseImpl.h | 823 Inst *CurInst = iteratorToInst(Context.getCur()); 827 if (auto *Load = llvm::dyn_cast<InstLoad>(CurInst)) { 833 } else if (auto *Intrin = llvm::dyn_cast<InstIntrinsicCall>(CurInst)) { 891 CurInst->setDeleted(); 896 NewInst->spliceLivenessInfo(Next, CurInst);
|