Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h146 Constant *getAggregateElement(unsigned Elt) const;
147 Constant *getAggregateElement(Constant *Elt) const;
/freebsd/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()
661 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) { in scalarizeMaskedExpandLoad()
786 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedCompressStore()
890 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedVectorHistogram()
/freebsd/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.cpp377 auto *CElt = CShift->getAggregateElement(I); in simplifyX86varShift()
1813 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86extrq()
1947 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86insertq()
1950 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in simplifyX86insertq()
2001 Constant *COp = V->getAggregateElement(I); in simplifyX86pshufb()
2046 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermilvar()
2091 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermv()
2126 Constant *COp = V->getAggregateElement(I); in simplifyX86vpermv3()
2731 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0)) in instCombineIntrinsic()
2734 C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1)) in instCombineIntrinsic()
[all …]
H A DX86FixupVectorConstants.cpp171 if (Constant *Elt = CV->getAggregateElement(Idx)) { in getSplatableConstant()
/freebsd/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()
518 if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr, in ReadDataFromGlobal()
690 C = C->getAggregateElement(Index.getZExtValue()); in getConstantAtOffset()
1830 auto *EltC = dyn_cast<ConstantInt>(Op->getAggregateElement(0U)); in constantFoldVectorReduce()
1836 if (!(EltC = dyn_cast<ConstantInt>(Op->getAggregateElement(I)))) in constantFoldVectorReduce()
[all …]
H A DVectorUtils.cpp176 return C->getAggregateElement(EltNo); in findScalarElement()
215 if (Constant *Elt = C->getAggregateElement(EltNo)) in findScalarElement()
1040 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllZeroOrUndef()
1066 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskIsAllOneOrUndef()
1092 if (auto *MaskElt = ConstMask->getAggregateElement(I)) in maskContainsAllOneOrUndef()
1113 if (CV->getAggregateElement(i)->isNullValue()) in possiblyDemandedEltsInMask()
H A DLint.cpp537 Constant *Elem = C->getAggregateElement(I); in isZero()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp153 Constant *Elt = getAggregateElement(I); in isNotOneValue()
198 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue()
220 auto *CFP = dyn_cast_or_null<ConstantFP>(getAggregateElement(I)); in isFiniteNonZeroFP()
241 auto *CFP = dyn_cast_or_null<ConstantFP>(getAggregateElement(I)); in isNormalFP()
262 auto *CFP = dyn_cast_or_null<ConstantFP>(getAggregateElement(I)); in hasExactInverseFP()
283 auto *CFP = dyn_cast_or_null<ConstantFP>(getAggregateElement(I)); in isNaN()
335 if (Constant *Elem = C->getAggregateElement(i)) in containsUndefinedElement()
363 if (isa<ConstantExpr>(getAggregateElement(i))) in containsConstantExpression()
432 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement() function in Constant
461 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement() function in Constant
[all …]
H A DConstantFold.cpp397 if (Constant *C = Val->getAggregateElement(CIdx)) in ConstantFoldExtractElementInstruction()
517 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
538 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroElide.cpp409 Resumers->getAggregateElement(CoroSubFnInst::ResumeIndex); in attemptElide()
415 auto *DestroyAddrConstant = Resumers->getAggregateElement( in attemptElide()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp147 const Constant *Elt = C->getAggregateElement(I); in classifyConstantWithOpaquePtr()
/freebsd/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/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/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp216 if (!CheckValueSize(ConstOff->getAggregateElement(i))) in checkOffsetSize()
1162 dyn_cast<ConstantInt>(ConstX->getAggregateElement(i)); in CheckAndCreateOffsetAdd()
1164 dyn_cast<ConstantInt>(ConstY->getAggregateElement(i)); in CheckAndCreateOffsetAdd()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp112 return ComplexPairTy(Result->getAggregateElement(0U), in VisitConstantExpr()
113 Result->getAggregateElement(1U)); in VisitConstantExpr()
143 return ComplexPairTy(pair->getAggregateElement(0U), in emitConstant()
144 pair->getAggregateElement(1U)); in emitConstant()
H A DCGDecl.cpp1077 CurOp = cast<llvm::Constant>(constant->getAggregateElement(i)); in constStructWithPadding()
1115 OpValue = constant->getAggregateElement(Op); in constWithPadding()
1263 constant->getAggregateElement(i), IsAutoInit); in emitStoresForConstant()
1274 constant->getAggregateElement(i), IsAutoInit); in emitStoresForConstant()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h330 Constant *C = In->getAggregateElement(i); in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1436 Constant *Elt = C->getAggregateElement(i); in SimplifyDemandedVectorElts()
1741 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()
1840 Constant *CElt = CV->getAggregateElement(i); in SimplifyDemandedVectorElts()
H A DInstCombineAndOrXor.cpp1014 const auto *BElt = BConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
1015 const auto *DElt = DConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
1016 const auto *EElt = EConst->getAggregateElement(I); in foldNegativePower2AndShiftedMask()
3095 Constant *EltC1 = C1->getAggregateElement(i); in areInverseVectorBitmasks()
3096 Constant *EltC2 = C2->getAggregateElement(i); in areInverseVectorBitmasks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp162 MA->Elements.push_back(C->getAggregateElement(I)); in makeMutable()
H A DSCCPSolver.cpp510 Constant *Elt = C->getAggregateElement(i); in getStructValueState()
1006 NewValue.markConstant(Iter->Actual->getAggregateElement(I)); in setLatticeValueForSpecializationArguments()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp882 Dest.push_back(C->getAggregateElement(i)); in getArrayElements()
965 dyn_cast<GlobalValue>(E->getAggregateElement(2)->stripPointerCasts()); in linkAppendingVarProto()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerBufferFatPointers.cpp584 return std::make_pair(C->getAggregateElement(0u), C->getAggregateElement(1u)); in splitLoweredFatBufferConst()

123