• Home
  • Raw
  • Download

Lines Matching refs:Elt

166       Constant *Elt = this->getAggregateElement(i);  in isNotOneValue()  local
167 if (!Elt || !Elt->isNotOneValue()) in isNotOneValue()
216 Constant *Elt = this->getAggregateElement(i); in isNotMinSignedValue() local
217 if (!Elt || !Elt->isNotMinSignedValue()) in isNotMinSignedValue()
410 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement()
412 return Elt < CC->getNumOperands() ? CC->getOperand(Elt) : nullptr; in getAggregateElement()
419 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement()
422 return Elt < PV->getNumElements() ? PV->getElementValue(Elt) : nullptr; in getAggregateElement()
425 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement()
428 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
433 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement()
434 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement()
435 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) { in getAggregateElement()
1038 Constant *ConstantAggregateZero::getStructElement(unsigned Elt) const { in getStructElement()
1039 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement()
1073 UndefValue *UndefValue::getStructElement(unsigned Elt) const { in getStructElement()
1074 return UndefValue::get(getType()->getStructElementType(Elt)); in getStructElement()
1108 PoisonValue *PoisonValue::getStructElement(unsigned Elt) const { in getStructElement()
1109 return PoisonValue::get(getType()->getStructElementType(Elt)); in getStructElement()
1129 static bool rangeOnlyContains(ItTy Start, ItTy End, EltTy Elt) { in rangeOnlyContains() argument
1131 if (*Start != Elt) in rangeOnlyContains()
1669 Constant *Elt = getOperand(0); in getSplatValue() local
1673 if (OpC == Elt) in getSplatValue()
1685 if (isa<UndefValue>(Elt)) in getSplatValue()
1686 Elt = OpC; in getSplatValue()
1688 if (OpC != Elt) in getSplatValue()
1691 return Elt; in getSplatValue()
2492 Constant *ConstantExpr::getInsertElement(Constant *Val, Constant *Elt, in getInsertElement() argument
2496 assert(Elt->getType() == cast<VectorType>(Val->getType())->getElementType() && in getInsertElement()
2501 if (Constant *FC = ConstantFoldInsertElementInstruction(Val, Elt, Idx)) in getInsertElement()
2508 Constant *ArgVec[] = { Val, Elt, Idx }; in getInsertElement()
2714 Constant *Elt = C->getAggregateElement(I); in getExactLogBase2() local
2715 if (!Elt) in getExactLogBase2()
2718 if (isa<UndefValue>(Elt)) { in getExactLogBase2()
2722 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getExactLogBase2()
2863 const char *ConstantDataSequential::getElementPointer(unsigned Elt) const { in getElementPointer()
2864 assert(Elt < getNumElements() && "Invalid Elt"); in getElementPointer()
2865 return DataElements+Elt*getElementByteSize(); in getElementPointer()
3108 uint64_t ConstantDataSequential::getElementAsInteger(unsigned Elt) const { in getElementAsInteger()
3111 const char *EltPtr = getElementPointer(Elt); in getElementAsInteger()
3128 APInt ConstantDataSequential::getElementAsAPInt(unsigned Elt) const { in getElementAsAPInt()
3131 const char *EltPtr = getElementPointer(Elt); in getElementAsAPInt()
3156 APFloat ConstantDataSequential::getElementAsAPFloat(unsigned Elt) const { in getElementAsAPFloat()
3157 const char *EltPtr = getElementPointer(Elt); in getElementAsAPFloat()
3181 float ConstantDataSequential::getElementAsFloat(unsigned Elt) const { in getElementAsFloat()
3184 return *reinterpret_cast<const float *>(getElementPointer(Elt)); in getElementAsFloat()
3187 double ConstantDataSequential::getElementAsDouble(unsigned Elt) const { in getElementAsDouble()
3190 return *reinterpret_cast<const double *>(getElementPointer(Elt)); in getElementAsDouble()
3193 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant()
3196 return ConstantFP::get(getContext(), getElementAsAPFloat(Elt)); in getElementAsConstant()
3198 return ConstantInt::get(getElementType(), getElementAsInteger(Elt)); in getElementAsConstant()