Searched refs:EVI (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp113 if (auto EVI = dyn_cast<ExtractValueInst>(CIU)) {
114 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 0) {
115 LoadedPtrs.push_back(EVI);
118 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 1) {
119 Preds.push_back(EVI);
H A DLazyValueInfo.cpp444 ExtractValueInst *EVI, BasicBlock *BB);
658 if (auto *EVI = dyn_cast<ExtractValueInst>(BBI))
659 return solveBlockValueExtractValue(Res, EVI, BB);
1168 ValueLatticeElement &BBLV, ExtractValueInst *EVI, BasicBlock *BB) {
1169 if (auto *WO = dyn_cast<WithOverflowInst>(EVI->getAggregateOperand()))
1170 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 0)
1176 EVI->getAggregateOperand(), EVI->getIndices(),
1177 EVI
[all...]
H A DValueTracking.cpp1670 const ExtractValueInst *EVI = cast<ExtractValueInst>(I); local
1671 if (EVI->getNumIndices() != 1) break;
1672 if (EVI->getIndices()[0] == 0) {
4344 if (const auto *EVI = dyn_cast<ExtractValueInst>(U)) {
4345 assert(EVI->getNumIndices() == 1 && "Obvious from CI's type");
4347 if (EVI->getIndices()[0] == 0)
4348 Results.push_back(EVI);
4350 assert(EVI->getIndices()[0] == 1 && "Obvious from CI's type");
4352 for (const auto *U : EVI->users())
H A DConstantFolding.cpp1182 if (auto *EVI = dyn_cast<ExtractValueInst>(I)) {
1184 cast<Constant>(EVI->getAggregateOperand()),
1185 EVI->getIndices());
H A DInstructionSimplify.cpp5453 auto *EVI = cast<ExtractValueInst>(I); local
5454 Result = SimplifyExtractValueInst(EVI->getAggregateOperand(),
5455 EVI->getIndices(), Q);
H A DScalarEvolution.cpp4553 auto *EVI = cast<ExtractValueInst>(Op);
4554 if (EVI->getNumIndices() != 1 || EVI->getIndices()[0] != 0)
4557 auto *WO = dyn_cast<WithOverflowInst>(EVI->getAggregateOperand());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp141 auto *EVI = dyn_cast<ExtractValueInst>(Val); local
142 if (!EVI)
144 if (EVI->getNumIndices() != 1)
146 if (*EVI->idx_begin() == 0)
147 EVI->replaceAllUsesWith(ExnVal);
148 else if (*EVI->idx_begin() == 1)
149 EVI->replaceAllUsesWith(SelVal);
150 if (EVI->use_empty())
151 EVI->eraseFromParent();
H A DAnalysis.cpp334 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) {
338 ArrayRef<unsigned> ExtractLoc = EVI->getIndices();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp171 if (ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) {
172 return cleanupValue(EVI->getAggregateOperand());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp461 if (auto *EVI = dyn_cast<ExtractValueInst>(U)) {
462 if (EVI->getIndices()[0] == 1)
463 EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext()));
465 assert(EVI->getIndices()[0] == 0 && "Only two possibilities!");
466 EVI->replaceAllUsesWith(NewResult);
468 ToDelete.push_back(EVI);
472 for (auto *EVI : ToDelete)
473 EVI->eraseFromParent();
H A DEvaluator.cpp422 } else if (auto *EVI = dyn_cast<ExtractValueInst>(CurInst)) {
424 getVal(EVI->getAggregateOperand()), EVI->getIndices());
H A DFunctionComparator.cpp598 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(L)) {
599 ArrayRef<unsigned> LIndices = EVI->getIndices();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp622 void visitExtractValueInst(ExtractValueInst &EVI);
888 void SCCPSolver::visitExtractValueInst(ExtractValueInst &EVI) { argument
891 if (EVI.getType()->isStructTy())
892 return (void)markOverdefined(&EVI);
895 if (EVI.getNumIndices() != 1)
896 return (void)markOverdefined(&EVI);
898 Value *AggVal = EVI.getAggregateOperand();
900 unsigned i = *EVI.idx_begin();
902 mergeInValue(getValueState(&EVI), &EVI, EltVa local
[all...]
H A DEarlyCSE.cpp271 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(Inst))
272 return hash_combine(EVI->getOpcode(), EVI->getOperand(0),
273 hash_combine_range(EVI->idx_begin(), EVI->idx_end()));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp439 auto EVI = dyn_cast<ExtractValueInst>((UI++)->getUser()); local
440 if (!EVI || EVI->getNumIndices() != 1)
443 EVI->replaceAllUsesWith(Args[EVI->getIndices().front()]);
444 EVI->eraseFromParent();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp1769 const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(U); local
1770 if (!EVI)
1775 EVT RealVT = TLI.getValueType(DL, EVI->getType(), /*AllowUnknown=*/true);
1782 const Value *Op0 = EVI->getOperand(0);
1796 unsigned VTIndex = ComputeLinearIndex(AggTy, EVI->getIndices());
1804 updateValueMap(EVI, ResultReg);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp418 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(I1))
419 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
H A DVerifier.cpp486 void visitExtractValueInst(ExtractValueInst &EVI);
3592 void Verifier::visitExtractValueInst(ExtractValueInst &EVI) { argument
3593 Assert(ExtractValueInst::getIndexedType(EVI.getAggregateOperand()->getType(),
3594 EVI.getIndices()) == EVI.getType(),
3595 "Invalid ExtractValueInst operands!", &EVI); local
3597 visitInstruction(EVI);
H A DInstructions.cpp2142 ExtractValueInst::ExtractValueInst(const ExtractValueInst &EVI) argument
2143 : UnaryInstruction(EVI.getType(), ExtractValue, EVI.getOperand(0)),
2144 Indices(EVI.Indices) {
2145 SubclassOptionalData = EVI.SubclassOptionalData;
H A DAsmWriter.cpp3775 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(&I)) {
3778 for (const unsigned *i = EVI->idx_begin(), *e = EVI->idx_end(); i != e; ++i)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp956 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(&U)) {
957 for (auto Idx : EVI->indices())
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2657 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); local
2658 Vals.append(EVI->idx_begin(), EVI->idx_end());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp5655 if (auto *EVI = dyn_cast<ExtractValueInst>(Op0))
5656 if (auto *ACXI = dyn_cast<AtomicCmpXchgInst>(EVI->getAggregateOperand()))
5657 if (EVI->getIndices()[0] == 0 && ACXI->getCompareOperand() == Op1 &&
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FastISel.cpp283 const auto *EVI = cast<ExtractValueInst>(Itr); local
284 if (EVI->getAggregateOperand() != II)
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp3468 const auto *EVI = cast<ExtractValueInst>(Itr); local
3469 if (EVI->getAggregateOperand() != II)

Completed in 614 milliseconds

12