reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constant.h
  128   Constant *getAggregateElement(unsigned Elt) const;

References

include/llvm/Analysis/TargetTransformInfoImpl.h
  624               dyn_cast<ConstantInt>(VectorValue->getAggregateElement(i))) {
include/llvm/IR/PatternMatch.h
  237           Constant *Elt = C->getAggregateElement(i);
  296           Constant *Elt = C->getAggregateElement(i);
lib/Analysis/ConstantFolding.cpp
   72       Element = C->getAggregateElement(NumSrcElts - i - 1);
   74       Element = C->getAggregateElement(i);
  214         Constant *Src = C->getAggregateElement(SrcElt++);
  244     auto *Element = C->getAggregateElement(i);
  361         ElemC = C->getAggregateElement(Elem++);
  365       C = C->getAggregateElement(0u);
  472       if (!ReadDataFromGlobal(C->getAggregateElement(Index), Offset, CurPtr,
 2002               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2012               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2236               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2246               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2256               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2266               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2409       auto *MaskElt = Mask->getAggregateElement(I);
 2412       auto *PassthruElt = Passthru->getAggregateElement(I);
 2413       auto *VecElt = VecData ? VecData->getAggregateElement(I) : nullptr;
 2448       Constant *Agg = Operands[J]->getAggregateElement(I);
lib/Analysis/InstructionSimplify.cpp
  911       Constant *Elt = Op1C->getAggregateElement(i);
 1185       if (!isUndefShift(C->getAggregateElement(I)))
lib/Analysis/Lint.cpp
  572     Constant *Elem = C->getAggregateElement(I);
lib/Analysis/ValueTracking.cpp
 1682       Constant *Element = CV->getAggregateElement(i);
 2021         Constant *Elt = C->getAggregateElement(i);
 2347     auto *Elt = dyn_cast_or_null<ConstantInt>(CV->getAggregateElement(i));
 2961         auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
 3173     Constant *Elt = cast<Constant>(V)->getAggregateElement(i);
 3382     C = C->getAggregateElement(idx_range[0]);
lib/Analysis/VectorUtils.cpp
  269     return C->getAggregateElement(EltNo);
  301     if (Constant *Elt = C->getAggregateElement(EltNo))
  760     if (auto *MaskElt = ConstMask->getAggregateElement(I))
  777     if (auto *MaskElt = ConstMask->getAggregateElement(I))
  793       if (CV->getAggregateElement(i)->isNullValue())
lib/CodeGen/GlobalISel/IRTranslator.cpp
  202     while (auto Elt = C.getAggregateElement(Idx++)) {
lib/CodeGen/MachineOperand.cpp
  949       C->getAggregateElement(I)->printAsOperand(OS, false, MST);
lib/CodeGen/MachineVerifier.cpp
 1418     if (!Mask->getAggregateElement(0u)) {
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
   86     Constant *CElt = C->getAggregateElement(i);
  165       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  298       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  413       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  537       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  623       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
  733       if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue())
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2942             if (Constant *Elt = Cst->getAggregateElement(i)) {
 3911               if (Constant *Elt = Cst->getAggregateElement(i)) {
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1626       HexString += scalarConstantToHexString(C->getAggregateElement(I));
lib/IR/AsmWriter.cpp
 1479     WriteAsOperandInternal(Out, CV->getAggregateElement(0U), &TypePrinter,
 1485       WriteAsOperandInternal(Out, CV->getAggregateElement(i), &TypePrinter,
lib/IR/AutoUpgrade.cpp
  859         EltTy, Ctor->getAggregateElement(0u), Ctor->getAggregateElement(1),
  859         EltTy, Ctor->getAggregateElement(0u), Ctor->getAggregateElement(1),
lib/IR/ConstantFold.cpp
  904   if (Constant *C = Agg->getAggregateElement(Idxs[0]))
  925     Constant *C = Agg->getAggregateElement(i);
lib/IR/Constants.cpp
  191       Constant *Elt = this->getAggregateElement(i);
  208     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  221     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  234     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  247     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  272     if (isa<UndefValue>(getAggregateElement(i)))
  282     if (isa<ConstantExpr>(getAggregateElement(i)))
  381     return getAggregateElement(CI->getZExtValue());
 1424   const Constant *C = this->getAggregateElement(0U);
lib/IR/Instructions.cpp
 1894   Constant *C = Mask->getAggregateElement(i);
 1910     Constant *C = Mask->getAggregateElement(i);
lib/Linker/IRMover.cpp
  835     Dest.push_back(C->getAggregateElement(i));
  906           dyn_cast<GlobalValue>(E->getAggregateElement(2)->stripPointerCasts());
lib/Target/X86/X86ISelLowering.cpp
 6114       if (!CollectConstantBits(Cst->getAggregateElement(i), SrcEltBits[i],
39001                 dyn_cast<ConstantInt>(Init->getAggregateElement(j));
lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
   60       Constant *COp = C->getAggregateElement(i);
   80     Constant *COp = C->getAggregateElement(i);
lib/Transforms/IPO/GlobalOpt.cpp
  484       Constant *In = Init->getAggregateElement(i);
  519       Constant *In = Init->getAggregateElement(i);
 2400       Elts.push_back(Init->getAggregateElement(i));
 2418     Elts.push_back(Init->getAggregateElement(i));
 2550         Elts.push_back(Init->getAggregateElement(i));
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1663       Constant *Elt = C->getAggregateElement(i);
 2093     Constant *EltC1 = C1->getAggregateElement(i);
 2094     Constant *EltC2 = C2->getAggregateElement(i);
lib/Transforms/InstCombine/InstCombineCalls.cpp
  482     auto *CElt = CShift->getAggregateElement(I);
  739       C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0))
  878       C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0))
  881       C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0))
  933     Constant *COp = V->getAggregateElement(I);
  980     Constant *COp = V->getAggregateElement(I);
 1028     Constant *COp = V->getAggregateElement(I);
 1417     Constant *COp = C->getAggregateElement(I);
 2915         C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)0))
 2918         C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1))
 2978         C1 ? dyn_cast_or_null<ConstantInt>(C1->getAggregateElement((unsigned)1))
 3171         Constant *Elt = Mask->getAggregateElement(i);
 3191           if (isa<UndefValue>(Mask->getAggregateElement(i)))
 3194             cast<ConstantInt>(Mask->getAggregateElement(i))->getZExtValue();
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1485     auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
lib/Transforms/InstCombine/InstCombineCompares.cpp
  224     Constant *Elt = Init->getAggregateElement(i);
 5177       Constant *Elt = C->getAggregateElement(i);
lib/Transforms/InstCombine/InstCombineInternal.h
  290     Constant *C = In->getAggregateElement(i);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  112     Constant *Elt = C->getAggregateElement(I);
 1439       Constant *Elt = C->getAggregateElement(i);
 1453         Elts[i] = C->getAggregateElement(i);  // Handle undef, etc.
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1809     Constant *Elt = CondC->getAggregateElement(i);
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1126       Constant *Elt = C->getAggregateElement(i);
 1374         Constant *CElt = CV->getAggregateElement(i);
 1473           Constant *CElt = CV->getAggregateElement(i);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  842     NewMaskVec[i] = i == IdxC ? Zero : Shuf->getMask()->getAggregateElement(i);
  881       NewMaskVec[i] = OldMask->getAggregateElement(i);
  882     } else if (OldMask->getAggregateElement(i) == NewMaskEltC) {
  887       assert(isa<UndefValue>(OldMask->getAggregateElement(i)) &&
  972         NewShufElts[I] = ShufConstVec->getAggregateElement(I);
  973         NewMaskElts[I] = Mask->getAggregateElement(I);
 1550     if (isa<UndefValue>(Mask->getAggregateElement(i)))
 1551       NewMask[i] = Mask->getAggregateElement(i);
 1749     Constant *ExtractMaskElt = Shuf.getMask()->getAggregateElement(i);
 1750     Constant *MaskElt = Mask->getAggregateElement(i);
lib/Transforms/InstCombine/InstructionCombining.cpp
  811       Constant *Elt = CV->getAggregateElement(i);
 1509       Constant *CElt = C->getAggregateElement(I);
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2142         ConstantStruct::get(LivenessTy, Initializer->getAggregateElement(0u),
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2145                 dyn_cast<ConstantInt>(ConstArg->getAggregateElement(Idx))) {
lib/Transforms/Scalar/SCCP.cpp
  538       Constant *Elt = C->getAggregateElement(i);
lib/Transforms/Utils/ValueMapper.cpp
  963       Elements.push_back(InitPrefix->getAggregateElement(I));
tools/clang/lib/CodeGen/CGDecl.cpp
 1021       CurOp = cast<llvm::Constant>(constant->getAggregateElement(i));
 1059         OpValue = constant->getAggregateElement(Op);
tools/clang/lib/CodeGen/CGExpr.cpp
  617   return cast<llvm::ConstantInt>(Elts->getAggregateElement(Idx))
 3851     CElts.push_back(BaseElts->getAggregateElement(Indices[i]));
tools/clang/lib/CodeGen/CGExprComplex.cpp
  133     return ComplexPairTy(pair->getAggregateElement(0U),
  134                          pair->getAggregateElement(1U));
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2912       Val->getAggregateElement(0U) : Val;
 2932     if (Val->getAggregateElement(I) != Fields[I])
 4215       cast<llvm::ConstantInt>(CTA->getInitializer()->getAggregateElement(0U))