Home
last modified time | relevance | path

Searched refs:OpI (Results 1 – 25 of 34) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DSpeculateAroundPHIs.cpp92 auto *OpI = dyn_cast<Instruction>(*OpIt); in isSafeToSpeculatePHIUsers() local
96 if (!OpI) in isSafeToSpeculatePHIUsers()
109 auto *ParentBB = OpI->getParent(); in isSafeToSpeculatePHIUsers()
111 if (isa<PHINode>(OpI)) { in isSafeToSpeculatePHIUsers()
122 if (PotentialSpecSet.count(OpI)) in isSafeToSpeculatePHIUsers()
127 if (UnsafeSet.count(OpI) || ParentBB != PhiBB || in isSafeToSpeculatePHIUsers()
128 mayBeMemoryDependent(*OpI)) { in isSafeToSpeculatePHIUsers()
130 << *OpI << "\n"); in isSafeToSpeculatePHIUsers()
133 UnsafeSet.insert(OpI); in isSafeToSpeculatePHIUsers()
142 if (!Visited.insert(OpI).second) in isSafeToSpeculatePHIUsers()
[all …]
DDCE.cpp94 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in DCEInstruction() local
95 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction()
96 WorkList.insert(OpI); in DCEInstruction()
DLoopUnrollPass.cpp401 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local
403 if (L->contains(OpI)) in analyzeLoopUnrollCost()
404 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost()
422 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local
423 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost()
427 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost()
607 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local
608 if (L->contains(OpI)) in analyzeLoopUnrollCost()
609 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
DReassociate.cpp2274 Instruction *OpI = dyn_cast<Instruction>(Op); in BuildPairMap() local
2275 if (!OpI || OpI->getOpcode() != I.getOpcode() || !OpI->hasOneUse()) { in BuildPairMap()
2280 if (OpI->getOperand(0) != OpI) in BuildPairMap()
2281 Worklist.push_back(OpI->getOperand(0)); in BuildPairMap()
2282 if (OpI->getOperand(1) != OpI) in BuildPairMap()
2283 Worklist.push_back(OpI->getOperand(1)); in BuildPairMap()
DScalarizer.cpp468 Value *OpI = CI.getOperand(I); in splitCall() local
469 if (OpI->getType()->isVectorTy()) { in splitCall()
470 Scattered[I] = scatter(&CI, OpI); in splitCall()
473 ScalarOperands[I] = OpI; in splitCall()
DSimpleLoopUnswitch.cpp106 Instruction *OpI = dyn_cast<Instruction>(OpV); in collectHomogenousInstGraphLoopInvariants() local
107 if (!OpI || OpI->getOpcode() != Root.getOpcode()) in collectHomogenousInstGraphLoopInvariants()
111 if (Visited.insert(OpI).second) in collectHomogenousInstGraphLoopInvariants()
112 Worklist.push_back(OpI); in collectHomogenousInstGraphLoopInvariants()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h94 MachineInstr::mop_iterator OpI, OpE; variable
99 while (OpI == OpE) { in advance()
103 OpI = InstrI->operands_begin(); in advance()
123 OpI = InstrI->operands_begin(); in MachineOperandIteratorBase()
129 MachineOperand &deref() const { return *OpI; } in deref()
133 bool isValid() const { return OpI != OpE; } in isValid()
138 ++OpI;
146 return OpI - InstrI->operands_begin(); in getOperandNo()
/external/llvm/include/llvm/CodeGen/
DMachineInstrBundle.h95 MachineInstr::mop_iterator OpI, OpE; variable
100 while (OpI == OpE) { in advance()
104 OpI = InstrI->operands_begin(); in advance()
124 OpI = InstrI->operands_begin(); in MachineOperandIteratorBase()
130 MachineOperand &deref() const { return *OpI; } in deref()
134 bool isValid() const { return OpI != OpE; } in isValid()
139 ++OpI;
147 return OpI - InstrI->operands_begin(); in getOperandNo()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp98 for (unsigned OpI = 0, OpE = I.getNumExplicitOperands(); OpI != OpE; ++OpI) { in constrainSelectedInstRegOperands() local
99 MachineOperand &MO = I.getOperand(OpI); in constrainSelectedInstRegOperands()
122 MO, OpI)); in constrainSelectedInstRegOperands()
127 int DefIdx = I.getDesc().getOperandConstraint(OpI, MCOI::TIED_TO); in constrainSelectedInstRegOperands()
129 I.tieOperands(DefIdx, OpI); in constrainSelectedInstRegOperands()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1506 BinaryOperator *OpI = dyn_cast<BinaryOperator>(FPT.getOperand(0)); in visitFPTrunc() local
1507 if (OpI && OpI->hasOneUse()) { in visitFPTrunc()
1508 Type *LHSMinType = getMinimumFPType(OpI->getOperand(0)); in visitFPTrunc()
1509 Type *RHSMinType = getMinimumFPType(OpI->getOperand(1)); in visitFPTrunc()
1510 unsigned OpWidth = OpI->getType()->getFPMantissaWidth(); in visitFPTrunc()
1515 switch (OpI->getOpcode()) { in visitFPTrunc()
1538 Value *LHS = Builder.CreateFPTrunc(OpI->getOperand(0), Ty); in visitFPTrunc()
1539 Value *RHS = Builder.CreateFPTrunc(OpI->getOperand(1), Ty); in visitFPTrunc()
1540 Instruction *RI = BinaryOperator::Create(OpI->getOpcode(), LHS, RHS); in visitFPTrunc()
1541 RI->copyFastMathFlags(OpI); in visitFPTrunc()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1266 BinaryOperator *OpI = dyn_cast<BinaryOperator>(CI.getOperand(0)); in visitFPTrunc() local
1267 if (OpI && OpI->hasOneUse()) { in visitFPTrunc()
1268 Value *LHSOrig = lookThroughFPExtensions(OpI->getOperand(0)); in visitFPTrunc()
1269 Value *RHSOrig = lookThroughFPExtensions(OpI->getOperand(1)); in visitFPTrunc()
1270 unsigned OpWidth = OpI->getType()->getFPMantissaWidth(); in visitFPTrunc()
1275 switch (OpI->getOpcode()) { in visitFPTrunc()
1303 BinaryOperator::Create(OpI->getOpcode(), LHSOrig, RHSOrig); in visitFPTrunc()
1304 RI->copyFastMathFlags(OpI); in visitFPTrunc()
1321 RI->copyFastMathFlags(OpI); in visitFPTrunc()
1339 RI->copyFastMathFlags(OpI); in visitFPTrunc()
[all …]
/external/llvm/lib/Transforms/Scalar/
DDCE.cpp91 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in DCEInstruction() local
92 if (isInstructionTriviallyDead(OpI, TLI)) in DCEInstruction()
93 WorkList.insert(OpI); in DCEInstruction()
DLoopUnrollPass.cpp320 if (auto *OpI = dyn_cast<Instruction>( in analyzeLoopUnrollCost() local
322 if (L->contains(OpI)) in analyzeLoopUnrollCost()
323 PHIUsedList.push_back(OpI); in analyzeLoopUnrollCost()
341 auto *OpI = dyn_cast<Instruction>(Op); in analyzeLoopUnrollCost() local
342 if (!OpI || !L->contains(OpI)) in analyzeLoopUnrollCost()
346 CostWorklist.push_back(OpI); in analyzeLoopUnrollCost()
516 if (auto *OpI = dyn_cast<Instruction>(Op)) in analyzeLoopUnrollCost() local
517 if (L->contains(OpI)) in analyzeLoopUnrollCost()
518 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
DDeadStoreElimination.cpp97 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in deleteDeadInstruction() local
98 if (isInstructionTriviallyDead(OpI, &TLI)) in deleteDeadInstruction()
99 NowDeadInsts.push_back(OpI); in deleteDeadInstruction()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1187 BinaryOperator *OpI = dyn_cast<BinaryOperator>(CI.getOperand(0)); in visitFPTrunc() local
1188 if (OpI && OpI->hasOneUse()) { in visitFPTrunc()
1189 switch (OpI->getOpcode()) { in visitFPTrunc()
1196 Type *SrcTy = OpI->getType(); in visitFPTrunc()
1197 Value *LHSTrunc = LookThroughFPExtensions(OpI->getOperand(0)); in visitFPTrunc()
1198 Value *RHSTrunc = LookThroughFPExtensions(OpI->getOperand(1)); in visitFPTrunc()
1208 return BinaryOperator::Create(OpI->getOpcode(), LHSTrunc, RHSTrunc); in visitFPTrunc()
1255 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0)); in visitFPToUI() local
1256 if (OpI == 0) in visitFPToUI()
1265 if ((isa<UIToFPInst>(OpI) || isa<SIToFPInst>(OpI)) && in visitFPToUI()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600Packetizer.cpp190 int OpI = TII->getOperandIdx(MII->getOpcode(), AMDGPU::OpName::pred_sel), in isLegalToPacketizeTogether() local
192 unsigned PredI = (OpI > -1)?MII->getOperand(OpI).getReg():0, in isLegalToPacketizeTogether()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64FalkorHWPFFix.cpp743 for (unsigned OpI = 0, OpE = MI.getNumOperands(); OpI < OpE; ++OpI) { in runOnLoop() local
744 if (OpI == static_cast<unsigned>(LdI.BaseRegIdx)) in runOnLoop()
746 MachineOperand &MO = MI.getOperand(OpI); in runOnLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600Packetizer.cpp188 int OpI = TII->getOperandIdx(MII->getOpcode(), R600::OpName::pred_sel), in isLegalToPacketizeTogether() local
190 unsigned PredI = (OpI > -1)?MII->getOperand(OpI).getReg():0, in isLegalToPacketizeTogether()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp155 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in deleteDeadInstruction() local
156 if (isInstructionTriviallyDead(OpI)) in deleteDeadInstruction()
157 NowDeadInsts.push_back(OpI); in deleteDeadInstruction()
DDeadStoreElimination.cpp129 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in DeleteDeadInstruction() local
130 if (isInstructionTriviallyDead(OpI)) in DeleteDeadInstruction()
131 NowDeadInsts.push_back(OpI); in DeleteDeadInstruction()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLocal.cpp289 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in RecursivelyDeleteTriviallyDeadInstructions() local
290 if (isInstructionTriviallyDead(OpI)) in RecursivelyDeleteTriviallyDeadInstructions()
291 DeadInsts.push_back(OpI); in RecursivelyDeleteTriviallyDeadInstructions()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp463 Value *OpI = I->getOperand(i), *OpJ = J->getOperand(i); in equal() local
464 if (OpI == OpJ) in equal()
466 auto *InI = dyn_cast<const Instruction>(OpI); in equal()
504 if (Instruction *OpI = dyn_cast<Instruction>(Op)) in link() local
505 link(OpI, B, At); in link()
2318 Instruction *OpI = dyn_cast<Instruction>(I); in coverLoop() local
2319 if (!OpI) in coverLoop()
2321 BasicBlock *PB = OpI->getParent(); in coverLoop()
2324 Worklist.insert(OpI); in coverLoop()
DHexagonVLIWPacketizer.cpp1273 for (const MachineOperand &OpI : I.operands()) { in hasRegMaskDependence() local
1274 if (OpI.isReg()) { in hasRegMaskDependence()
1275 if (OpJ.clobbersPhysReg(OpI.getReg())) in hasRegMaskDependence()
1277 } else if (OpI.isRegMask()) { in hasRegMaskDependence()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp374 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in RecursivelyDeleteTriviallyDeadInstructions() local
375 if (isInstructionTriviallyDead(OpI, TLI)) in RecursivelyDeleteTriviallyDeadInstructions()
376 DeadInsts.push_back(OpI); in RecursivelyDeleteTriviallyDeadInstructions()
446 if (Instruction *OpI = dyn_cast<Instruction>(OpV)) in simplifyAndDCEInstruction() local
447 if (isInstructionTriviallyDead(OpI, TLI)) in simplifyAndDCEInstruction()
448 WorkList.insert(OpI); in simplifyAndDCEInstruction()
/external/llvm/include/llvm/IR/
DPatternMatch.h1171 unsigned OpI; member
1173 Argument_match(unsigned OpIdx, const Opnd_t &V) : OpI(OpIdx), Val(V) {} in Argument_match()
1177 return CS.isCall() && Val.match(CS.getArgument(OpI)); in match()
1182 template <unsigned OpI, typename Opnd_t>
1184 return Argument_match<Opnd_t>(OpI, Op); in m_Argument()

12