| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 112 if (auto EVI = dyn_cast<ExtractValueInst>(CIU)) { in findDevirtualizableCallsForTypeCheckedLoad() local 113 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 0) { in findDevirtualizableCallsForTypeCheckedLoad() 114 LoadedPtrs.push_back(EVI); in findDevirtualizableCallsForTypeCheckedLoad() 117 if (EVI->getNumIndices() == 1 && EVI->getIndices()[0] == 1) { in findDevirtualizableCallsForTypeCheckedLoad() 118 Preds.push_back(EVI); in findDevirtualizableCallsForTypeCheckedLoad()
|
| H A D | LazyValueInfo.cpp | 428 ExtractValueInst *EVI, BasicBlock *BB); 621 if (auto *EVI = dyn_cast<ExtractValueInst>(BBI)) in solveBlockValueImpl() local 622 return solveBlockValueExtractValue(EVI, BB); in solveBlockValueImpl() 1008 ExtractValueInst *EVI, BasicBlock *BB) { in solveBlockValueExtractValue() argument 1009 if (auto *WO = dyn_cast<WithOverflowInst>(EVI->getAggregateOperand())) in solveBlockValueExtractValue() 1010 if (EVI->getNumIndices() == 1 && *EVI->idx_begin() == 0) in solveBlockValueExtractValue() 1016 EVI->getAggregateOperand(), EVI->getIndices(), in solveBlockValueExtractValue() 1017 EVI->getModule()->getDataLayout())) in solveBlockValueExtractValue() 1018 return getBlockValue(V, BB, EVI); in solveBlockValueExtractValue() 1173 if (auto *EVI = dyn_cast<ExtractValueInst>(Cond)) in getValueFromConditionImpl() local [all …]
|
| H A D | ValueTracking.cpp | 1847 const ExtractValueInst *EVI = cast<ExtractValueInst>(I); in computeKnownBitsFromOperator() local 1848 if (EVI->getNumIndices() != 1) break; in computeKnownBitsFromOperator() 1849 if (EVI->getIndices()[0] == 0) { in computeKnownBitsFromOperator() 5053 if (const auto *EVI = dyn_cast<ExtractValueInst>(U)) { in isOverflowIntrinsicNoWrap() local 5054 assert(EVI->getNumIndices() == 1 && "Obvious from CI's type"); in isOverflowIntrinsicNoWrap() 5056 if (EVI->getIndices()[0] == 0) in isOverflowIntrinsicNoWrap() 5057 Results.push_back(EVI); in isOverflowIntrinsicNoWrap() 5059 assert(EVI->getIndices()[0] == 1 && "Obvious from CI's type"); in isOverflowIntrinsicNoWrap() 5061 for (const auto *U : EVI->users()) in isOverflowIntrinsicNoWrap()
|
| /llvm-project-15.0.7/llvm/unittests/XRay/ |
| H A D | GraphTest.cpp | 122 [&](const EVT &EVI) { return EVI.first == EV.first; }); in graphEdgeTester() argument 128 [&](const EVT &EVI) { return EVI.first == EV.first; }); in graphEdgeTester() argument 135 [&](const EVT &EVI) { return EVI.first == EV.first; }); in graphEdgeTester() argument 141 [&](const EVT &EVI) { return EVI.first == EV.first; }); in graphEdgeTester() argument
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SjLjEHPrepare.cpp | 148 auto *EVI = dyn_cast<ExtractValueInst>(Val); in substituteLPadValues() local 149 if (!EVI) in substituteLPadValues() 151 if (EVI->getNumIndices() != 1) in substituteLPadValues() 153 if (*EVI->idx_begin() == 0) in substituteLPadValues() 154 EVI->replaceAllUsesWith(ExnVal); in substituteLPadValues() 155 else if (*EVI->idx_begin() == 1) in substituteLPadValues() 156 EVI->replaceAllUsesWith(SelVal); in substituteLPadValues() 157 if (EVI->use_empty()) in substituteLPadValues() 158 EVI->eraseFromParent(); in substituteLPadValues()
|
| H A D | Analysis.cpp | 344 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) { in getNoopInput() local 348 ArrayRef<unsigned> ExtractLoc = EVI->getIndices(); in getNoopInput()
|
| H A D | CodeGenPrepare.cpp | 2340 ExtractValueInst *EVI = nullptr; in dupRetToEnableTailCallOpts() local 2348 EVI = dyn_cast<ExtractValueInst>(V); in dupRetToEnableTailCallOpts() 2349 if (EVI) { in dupRetToEnableTailCallOpts() 2350 V = EVI->getOperand(0); in dupRetToEnableTailCallOpts() 2351 if (!llvm::all_of(EVI->indices(), [](unsigned idx) { return idx == 0; })) in dupRetToEnableTailCallOpts() 2377 while (isa<DbgInfoIntrinsic>(BI) || BI == BCI || BI == EVI || in dupRetToEnableTailCallOpts()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 292 void visitExtractValueInst(ExtractValueInst &EVI); 852 if (EVI.getType()->isStructTy()) in visitExtractValueInst() 853 return (void)markOverdefined(&EVI); in visitExtractValueInst() 857 if (ValueState[&EVI].isOverdefined()) in visitExtractValueInst() 858 return (void)markOverdefined(&EVI); in visitExtractValueInst() 861 if (EVI.getNumIndices() != 1) in visitExtractValueInst() 862 return (void)markOverdefined(&EVI); in visitExtractValueInst() 864 Value *AggVal = EVI.getAggregateOperand(); in visitExtractValueInst() 866 unsigned i = *EVI.idx_begin(); in visitExtractValueInst() 868 mergeInValue(getValueState(&EVI), &EVI, EltVal); in visitExtractValueInst() [all …]
|
| H A D | SimplifyIndVar.cpp | 448 if (auto *EVI = dyn_cast<ExtractValueInst>(U)) { in eliminateOverflowIntrinsic() local 449 if (EVI->getIndices()[0] == 1) in eliminateOverflowIntrinsic() 450 EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext())); in eliminateOverflowIntrinsic() 452 assert(EVI->getIndices()[0] == 0 && "Only two possibilities!"); in eliminateOverflowIntrinsic() 453 EVI->replaceAllUsesWith(NewResult); in eliminateOverflowIntrinsic() 455 ToDelete.push_back(EVI); in eliminateOverflowIntrinsic() 459 for (auto *EVI : ToDelete) in eliminateOverflowIntrinsic() local 460 EVI->eraseFromParent(); in eliminateOverflowIntrinsic()
|
| H A D | FunctionComparator.cpp | 624 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(L)) { in cmpOperations() local 625 ArrayRef<unsigned> LIndices = EVI->getIndices(); in cmpOperations()
|
| H A D | BasicBlockUtils.cpp | 1340 if (ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) { in FoldReturnIntoUncondBranch() local 1341 V = EVI->getOperand(0); in FoldReturnIntoUncondBranch() 1342 NewEV = EVI->clone(); in FoldReturnIntoUncondBranch()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXImageOptimizer.cpp | 169 if (ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(V)) { in cleanupValue() local 170 return cleanupValue(EVI->getAggregateOperand()); in cleanupValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | EarlyCSE.cpp | 272 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(Inst)) in getHashValueImpl() local 273 return hash_combine(EVI->getOpcode(), EVI->getOperand(0), in getHashValueImpl() 274 hash_combine_range(EVI->idx_begin(), EVI->idx_end())); in getHashValueImpl()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroSplit.cpp | 549 auto *EVI = dyn_cast<ExtractValueInst>(U.getUser()); in replaceRetconOrAsyncSuspendUses() local 550 if (!EVI || EVI->getNumIndices() != 1) in replaceRetconOrAsyncSuspendUses() 553 EVI->replaceAllUsesWith(Args[EVI->getIndices().front()]); in replaceRetconOrAsyncSuspendUses() 554 EVI->eraseFromParent(); in replaceRetconOrAsyncSuspendUses()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FastISel.cpp | 1643 const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(U); in selectExtractValue() local 1644 if (!EVI) in selectExtractValue() 1649 EVT RealVT = TLI.getValueType(DL, EVI->getType(), /*AllowUnknown=*/true); in selectExtractValue() 1656 const Value *Op0 = EVI->getOperand(0); in selectExtractValue() 1670 unsigned VTIndex = ComputeLinearIndex(AggTy, EVI->getIndices()); in selectExtractValue() 1678 updateValueMap(EVI, ResultReg); in selectExtractValue()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instruction.cpp | 473 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(I1)) in haveSameSpecialState() local 474 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices(); in haveSameSpecialState()
|
| H A D | Verifier.cpp | 542 void visitExtractValueInst(ExtractValueInst &EVI); 3982 void Verifier::visitExtractValueInst(ExtractValueInst &EVI) { in visitExtractValueInst() argument 3983 Check(ExtractValueInst::getIndexedType(EVI.getAggregateOperand()->getType(), in visitExtractValueInst() 3984 EVI.getIndices()) == EVI.getType(), in visitExtractValueInst() 3985 "Invalid ExtractValueInst operands!", &EVI); in visitExtractValueInst() 3987 visitInstruction(EVI); in visitExtractValueInst()
|
| H A D | Instructions.cpp | 2593 ExtractValueInst::ExtractValueInst(const ExtractValueInst &EVI) in ExtractValueInst() argument 2594 : UnaryInstruction(EVI.getType(), ExtractValue, EVI.getOperand(0)), in ExtractValueInst() 2595 Indices(EVI.Indices) { in ExtractValueInst() 2596 SubclassOptionalData = EVI.SubclassOptionalData; in ExtractValueInst()
|
| H A D | AsmWriter.cpp | 4036 } else if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(&I)) { in printInstruction() local 4039 for (unsigned i : EVI->indices()) in printInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 944 auto *EVI = dyn_cast_or_null<ExtractValueInst>(Elt); in foldAggregateConstructionIntoAggregateReuse() local 945 if (!EVI) in foldAggregateConstructionIntoAggregateReuse() 948 Value *SourceAggregate = EVI->getAggregateOperand(); in foldAggregateConstructionIntoAggregateReuse() 954 if (EVI->getNumIndices() != 1 || EltIdx != EVI->getIndices().front()) in foldAggregateConstructionIntoAggregateReuse()
|
| H A D | InstCombineCompares.cpp | 6345 if (auto *EVI = dyn_cast<ExtractValueInst>(Op0)) in visitICmpInst() local 6346 if (auto *ACXI = dyn_cast<AtomicCmpXchgInst>(EVI->getAggregateOperand())) in visitICmpInst() 6347 if (EVI->getIndices()[0] == 0 && ACXI->getCompareOperand() == Op1 && in visitICmpInst()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/ |
| H A D | DXILBitcodeWriter.cpp | 2288 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); in writeInstruction() local 2289 Vals.append(EVI->idx_begin(), EVI->idx_end()); in writeInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 2829 const ExtractValueInst *EVI = cast<ExtractValueInst>(&I); in writeInstruction() local 2830 Vals.append(EVI->idx_begin(), EVI->idx_end()); in writeInstruction()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 1383 if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(&U)) { in getOffsetFromIndices() local 1384 for (auto Idx : EVI->indices()) in getOffsetFromIndices()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86FastISel.cpp | 270 const auto *EVI = cast<ExtractValueInst>(Itr); in foldX86XALUIntrinsic() local 271 if (EVI->getAggregateOperand() != II) in foldX86XALUIntrinsic()
|