| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constant.h | 141 Constant *getAggregateElement(unsigned Elt) const; 142 Constant *getAggregateElement(Constant *Elt) const;
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ScalarizeMaskedMemIntrin.cpp | 97 Constant *CElt = C->getAggregateElement(i); in isConstantIntVector() 183 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedLoad() 319 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedStore() 437 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedGather() 567 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedScatter() 663 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) { in scalarizeMaskedExpandLoad() 783 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedCompressStore()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ShuffleDecodeConstantPool.cpp | 62 Constant *COp = C->getAggregateElement(i); in extractConstantMask() 82 Constant *COp = C->getAggregateElement(i); in extractConstantMask()
|
| H A D | X86InstCombineIntrinsic.cpp | 375 auto *CElt = CShift->getAggregateElement(I); in simplifyX86varShift() 631 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86extrq() 765 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86insertq() 768 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in simplifyX86insertq() 819 Constant *COp = V->getAggregateElement(I); in simplifyX86pshufb() 864 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermilvar() 909 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermv() 1473 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in instCombineIntrinsic() 1476 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1)) in instCombineIntrinsic() 1538 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1)) in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 81 Element = C->getAggregateElement(NumSrcElts - i - 1); in foldConstVectorToAPInt() 83 Element = C->getAggregateElement(i); in foldConstVectorToAPInt() 220 Constant *Src = C->getAggregateElement(SrcElt++); in FoldBitCast() 251 auto *Element = C->getAggregateElement(i); in FoldBitCast() 398 ElemC = C->getAggregateElement(Elem++); in ConstantFoldLoadThroughBitcast() 408 C = C->getAggregateElement(0u); in ConstantFoldLoadThroughBitcast() 690 C = C->getAggregateElement(Index.getZExtValue()); in getConstantAtOffset() 1807 auto *EltC = dyn_cast<ConstantInt>(Op->getAggregateElement(0U)); in constantFoldVectorReduce() 3077 auto *MaskElt = Mask->getAggregateElement(I); in ConstantFoldFixedVectorCall() 3080 auto *PassthruElt = Passthru->getAggregateElement(I); in ConstantFoldFixedVectorCall() [all …]
|
| H A D | VectorUtils.cpp | 296 return C->getAggregateElement(EltNo); in findScalarElement() 335 if (Constant *Elt = C->getAggregateElement(EltNo)) in findScalarElement() 1035 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef() 1061 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllOneOrUndef() 1083 if (CV->getAggregateElement(i)->isNullValue()) in possiblyDemandedEltsInMask()
|
| H A D | ValueTracking.cpp | 1985 Constant *Element = CV->getAggregateElement(i); in computeKnownBits() 2464 Constant *Elt = C->getAggregateElement(i); in isKnownNonZero() 3036 auto *Elt = dyn_cast_or_null<ConstantInt>(CV->getAggregateElement(i)); in computeNumSignBitsVectorConstant() 3570 auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i)); in cannotBeOrderedLessThanZeroImpl() 3779 Constant *Elt = cast<Constant>(V)->getAggregateElement(i); in isKnownNeverInfinity() 3884 Constant *Elt = cast<Constant>(V)->getAggregateElement(i); in isKnownNeverNaN() 4098 C = C->getAggregateElement(idx_range[0]); in FindInsertedValue() 5116 ShiftAmounts.push_back(C->getAggregateElement(i)); in canCreateUndefOrPoison()
|
| H A D | Lint.cpp | 549 Constant *Elem = C->getAggregateElement(I); in isZero()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroElide.cpp | 339 Resumers->getAggregateElement(CoroSubFnInst::ResumeIndex); in processCoroId() 345 auto *DestroyAddrConstant = Resumers->getAggregateElement( in processCoroId()
|
| /llvm-project-15.0.7/llvm/tools/llvm-diff/lib/ |
| H A D | DifferenceEngine.cpp | 486 if (!equivalentAsOperands(CAL->getAggregateElement(I), in equivalentAsOperands() 487 CAR->getAggregateElement(I))) in equivalentAsOperands() 510 const Value *LAgg = CSL->getAggregateElement(I); in equivalentAsOperands() 511 const Value *RAgg = CSR->getAggregateElement(I); in equivalentAsOperands()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 139 Constant *Elt = getAggregateElement(I); in isNotOneValue() 184 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue() 321 if (Constant *Elem = C->getAggregateElement(i)) in containsUndefinedElement() 343 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression() 410 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement() function in Constant 445 return getAggregateElement(CI->getZExtValue()); in getAggregateElement() 763 Constant *EltC = C->getAggregateElement(i); in replaceUndefsWith() 793 NewC[I] = C->getAggregateElement(I); in mergeUndefsWith() 794 Constant *OtherEltC = Other->getAggregateElement(I); in mergeUndefsWith() 1688 const Constant *C = this->getAggregateElement(0U); in getUniqueInteger() [all …]
|
| H A D | ConstantFold.cpp | 662 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction() 781 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 802 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVGatherScatterLowering.cpp | 111 dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement((unsigned)0)); in matchStridedConstant() 117 auto *C = dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement(i)); in matchStridedConstant()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 107 return ComplexPairTy(Result->getAggregateElement(0U), in VisitConstantExpr() 108 Result->getAggregateElement(1U)); in VisitConstantExpr() 138 return ComplexPairTy(pair->getAggregateElement(0U), in emitConstant() 139 pair->getAggregateElement(1U)); in emitConstant()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 216 if (!CheckValueSize(ConstOff->getAggregateElement(i))) in checkOffsetSize() 1156 dyn_cast<ConstantInt>(ConstX->getAggregateElement(i)); in CheckAndCreateOffsetAdd() 1158 dyn_cast<ConstantInt>(ConstY->getAggregateElement(i)); in CheckAndCreateOffsetAdd()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 118 Constant *Elt = Mask->getAggregateElement(i); in instCombineIntrinsic() 138 if (isa<UndefValue>(Mask->getAggregateElement(i))) in instCombineIntrinsic() 141 cast<ConstantInt>(Mask->getAggregateElement(i))->getZExtValue(); in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSimplifyDemanded.cpp | 1214 Constant *Elt = C->getAggregateElement(i); in SimplifyDemandedVectorElts() 1519 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts() 1618 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()
|
| H A D | InstCombineMulDivRem.cpp | 1591 Constant *Elt = C->getAggregateElement(i); in visitSRem() 1605 Elts[i] = C->getAggregateElement(i); // Handle undef, etc. in visitSRem()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 360 Constant *C = In->getAggregateElement(i); in getSafeVectorConstantForBinop()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 162 MA->Elements.push_back(C->getAggregateElement(I)); in makeMutable()
|
| H A D | ValueMapper.cpp | 1026 Elements.push_back(InitPrefix->getAggregateElement(I)); in mapAppendingVariable()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 405 auto nested = getConstantAsAttr(value->getAggregateElement(i)) in getConstantAsAttr() 518 return c->getAggregateElement(index); in processConstant()
|
| /llvm-project-15.0.7/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 866 Dest.push_back(C->getAggregateElement(i)); in getArrayElements() 945 dyn_cast<GlobalValue>(E->getAggregateElement(2)->stripPointerCasts()); in linkAppendingVarProto()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | IRBuilderTest.cpp | 204 EXPECT_TRUE(isa<ConstantInt>(VectorValue->getAggregateElement(i))); in TEST_F() 205 ConstantInt *El = cast<ConstantInt>(VectorValue->getAggregateElement(i)); in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 845 dyn_cast<ConstantInt>(VectorValue->getAggregateElement(i))) { in minRequiredElementSize()
|