Home
last modified time | relevance | path

Searched refs:getAggregateElement (Results 1 – 25 of 52) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h145 Constant *getAggregateElement(unsigned Elt) const;
146 Constant *getAggregateElement(Constant *Elt) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp98 Constant *CElt = C->getAggregateElement(i); in isConstantIntVector()
180 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedLoad()
312 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedStore()
430 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedGather()
560 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedScatter()
656 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) { in scalarizeMaskedExpandLoad()
776 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedCompressStore()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ShuffleDecodeConstantPool.cpp62 Constant *COp = C->getAggregateElement(i); in extractConstantMask()
82 Constant *COp = C->getAggregateElement(i); in extractConstantMask()
H A DX86InstCombineIntrinsic.cpp376 auto *CElt = CShift->getAggregateElement(I); in simplifyX86varShift()
1700 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86extrq()
1834 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86insertq()
1837 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in simplifyX86insertq()
1888 Constant *COp = V->getAggregateElement(I); in simplifyX86pshufb()
1933 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermilvar()
1978 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermv()
2542 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in instCombineIntrinsic()
2545 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1)) in instCombineIntrinsic()
2607 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1)) in instCombineIntrinsic()
H A DX86FixupVectorConstants.cpp131 if (Constant *Elt = CV->getAggregateElement(Idx)) { in getSplatableConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp81 Element = C->getAggregateElement(NumSrcElts - i - 1); in foldConstVectorToAPInt()
83 Element = C->getAggregateElement(i); in foldConstVectorToAPInt()
220 Constant *Src = C->getAggregateElement(SrcElt++); in FoldBitCast()
257 auto *Element = C->getAggregateElement(i); in FoldBitCast()
394 ElemC = C->getAggregateElement(Elem++); in ConstantFoldLoadThroughBitcast()
404 C = C->getAggregateElement(0u); in ConstantFoldLoadThroughBitcast()
690 C = C->getAggregateElement(Index.getZExtValue()); in getConstantAtOffset()
3193 auto *MaskElt = Mask->getAggregateElement(I); in ConstantFoldFixedVectorCall()
3196 auto *PassthruElt = Passthru->getAggregateElement(I); in ConstantFoldFixedVectorCall()
3273 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall()
[all …]
H A DVectorUtils.cpp174 return C->getAggregateElement(EltNo); in findScalarElement()
213 if (Constant *Elt = C->getAggregateElement(EltNo)) in findScalarElement()
981 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef()
1007 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllOneOrUndef()
1033 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskContainsAllOneOrUndef()
1054 if (CV->getAggregateElement(i)->isNullValue()) in possiblyDemandedEltsInMask()
H A DLint.cpp551 Constant *Elem = C->getAggregateElement(I); in isZero()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp139 Constant *Elt = getAggregateElement(I); in isNotOneValue()
184 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue()
321 if (Constant *Elem = C->getAggregateElement(i)) in containsUndefinedElement()
349 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression()
418 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement() function in Constant
453 return getAggregateElement(CI->getZExtValue()); in getAggregateElement()
769 Constant *EltC = C->getAggregateElement(i); in replaceUndefsWith()
799 NewC[I] = C->getAggregateElement(I); in mergeUndefsWith()
800 Constant *OtherEltC = Other->getAggregateElement(I); in mergeUndefsWith()
1683 const Constant *C = this->getAggregateElement(0U); in getUniqueInteger()
[all …]
H A DConstantFold.cpp465 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
584 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
605 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp604 if (!equivalentAsOperands(CAL->getAggregateElement(I), in equivalentAsOperands()
605 CAR->getAggregateElement(I), AC)) in equivalentAsOperands()
628 const Value *LAgg = CSL->getAggregateElement(I); in equivalentAsOperands()
629 const Value *RAgg = CSR->getAggregateElement(I); in equivalentAsOperands()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp380 Resumers->getAggregateElement(CoroSubFnInst::ResumeIndex); in processCoroId()
404 auto *DestroyAddrConstant = Resumers->getAggregateElement( in processCoroId()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp145 const Constant *Elt = C->getAggregateElement(I); in classifyConstantWithOpaquePtr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp98 dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement((unsigned)0)); in matchStridedConstant()
104 auto *C = dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement(i)); in matchStridedConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp118 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()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp216 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()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp107 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()
H A DCGDecl.cpp1075 CurOp = cast<llvm::Constant>(constant->getAggregateElement(i)); in constStructWithPadding()
1113 OpValue = constant->getAggregateElement(Op); in constWithPadding()
1261 constant->getAggregateElement(i), IsAutoInit); in emitStoresForConstant()
1272 constant->getAggregateElement(i), IsAutoInit); in emitStoresForConstant()
H A DMicrosoftCXXABI.cpp3098 Val->getAggregateElement(0U) : Val; in MemberPointerConstantIsNull()
3118 if (Val->getAggregateElement(I) != Fields[I]) in MemberPointerConstantIsNull()
3407 Mapping->getAggregateElement(cast<llvm::Constant>(VBIndex)); in EmitNonNullMemberPointerConversion()
4385 cast<llvm::ConstantInt>(CTA->getInitializer()->getAggregateElement(0U)) in getThrowInfo()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h368 Constant *C = In->getAggregateElement(i); in getSafeVectorConstantForBinop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1380 Constant *Elt = C->getAggregateElement(i); in SimplifyDemandedVectorElts()
1685 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()
1784 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()
H A DInstCombineAndOrXor.cpp967 const auto *BElt = BConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
968 const auto *DElt = DConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
969 const auto *EElt = EConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
2965 Constant *EltC1 = C1->getAggregateElement(i); in areInverseVectorBitmasks()
2966 Constant *EltC2 = C2->getAggregateElement(i); in areInverseVectorBitmasks()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp162 MA->Elements.push_back(C->getAggregateElement(I)); in makeMutable()
H A DSCCPSolver.cpp486 Constant *Elt = C->getAggregateElement(i); in getStructValueState()
962 NewValue.markConstant(Iter->Actual->getAggregateElement(I)); in setLatticeValueForSpecializationArguments()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp880 Dest.push_back(C->getAggregateElement(i)); in getArrayElements()
963 dyn_cast<GlobalValue>(E->getAggregateElement(2)->stripPointerCasts()); in linkAppendingVarProto()

123