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

Declarations

include/llvm/IR/Constants.h
  628   Constant *getElementAsConstant(unsigned i) const;

References

lib/Analysis/LoopUnrollAnalyzer.cpp
  135   Constant *CV = CDS->getElementAsConstant(Index);
lib/Analysis/TargetTransformInfo.cpp
  567         if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I)))
lib/Analysis/ValueTracking.cpp
 3269       if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL))))
lib/CodeGen/GlobalISel/IRTranslator.cpp
 2141       return translate(*CV->getElementAsConstant(0), Reg);
 2144       Constant &Elt = *CV->getElementAsConstant(i);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1491         SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode();
lib/IR/AsmWriter.cpp
 1430     WriteAsOperandInternal(Out, CA->getElementAsConstant(0),
 1437       WriteAsOperandInternal(Out, CA->getElementAsConstant(i), &TypePrinter,
lib/IR/ConstantFold.cpp
 2376         auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I));
lib/IR/Constants.cpp
  370     return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt)
 2812   return isSplat() ? getElementAsConstant(0) : nullptr;
lib/IR/Core.cpp
 1384   return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx));
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  750                                CV->getElementAsConstant((unsigned)eltNo));
 1662       Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr;
 1663       Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr;
 1664       Constant *celt2 = CDV2 ? CDV2->getElementAsConstant(i) : nullptr;
lib/Target/BPF/BPFISelDAGToDAG.cpp
  431     if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) ==
  434     Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType());
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1942         bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0,
lib/Transforms/InstCombine/InstCombineCalls.cpp
   99     Constant *Elt = V->getElementAsConstant(I);
  376       auto SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx));
tools/clang/lib/CodeGen/CGDecl.cpp
  884       llvm::Constant *Elt = CDS->getElementAsConstant(i);
  913       llvm::Constant *Elt = CDS->getElementAsConstant(i);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  351                               return CDS->getElementAsConstant(Elem);