Lines Matching refs:Elt
265 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement()
267 return Elt < CC->getNumOperands() ? CC->getOperand(Elt) : nullptr; in getAggregateElement()
270 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement()
273 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement()
276 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
281 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement()
282 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement()
283 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) in getAggregateElement()
748 Constant *ConstantAggregateZero::getStructElement(unsigned Elt) const { in getStructElement()
749 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement()
781 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
782 return UndefValue::get(getType()->getStructElementType(Elt)); in getStructElement()
811 static bool rangeOnlyContains(ItTy Start, ItTy End, EltTy Elt) { in rangeOnlyContains() argument
813 if (*Start != Elt) in rangeOnlyContains()
1309 Constant *Elt = getOperand(0); in getSplatValue() local
1312 if (getOperand(I) != Elt) in getSplatValue()
1314 return Elt; in getSplatValue()
2019 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement() argument
2023 assert(Elt->getType() == Val->getType()->getVectorElementType() && in getInsertElement()
2028 if (Constant *FC = ConstantFoldInsertElementInstruction(Val, Elt, Idx)) in getInsertElement()
2035 Constant *ArgVec[] = { Val, Elt, Idx }; in getInsertElement()
2326 const char *ConstantDataSequential::getElementPointer(unsigned Elt) const { in getElementPointer()
2327 assert(Elt < getNumElements() && "Invalid Elt"); in getElementPointer()
2328 return DataElements+Elt*getElementByteSize(); in getElementPointer()
2585 uint64_t ConstantDataSequential::getElementAsInteger(unsigned Elt) const { in getElementAsInteger()
2588 const char *EltPtr = getElementPointer(Elt); in getElementAsInteger()
2605 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const { in getElementAsAPFloat()
2606 const char *EltPtr = getElementPointer(Elt); in getElementAsAPFloat()
2626 float ConstantDataSequential::getElementAsFloat(unsigned Elt) const { in getElementAsFloat()
2629 const float *EltPtr = reinterpret_cast<const float *>(getElementPointer(Elt)); in getElementAsFloat()
2633 double ConstantDataSequential::getElementAsDouble(unsigned Elt) const { in getElementAsDouble()
2637 reinterpret_cast<const double *>(getElementPointer(Elt)); in getElementAsDouble()
2641 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant()
2644 return ConstantFP::get(getContext(), getElementAsAPFloat(Elt)); in getElementAsConstant()
2646 return ConstantInt::get(getElementType(), getElementAsInteger(Elt)); in getElementAsConstant()