Home
last modified time | relevance | path

Searched refs:Elt (Results 1 – 25 of 59) sorted by relevance

123

/external/llvm/utils/PerfectShuffle/
DPerfectShuffle.cpp35 static unsigned getMaskElt(unsigned Mask, unsigned Elt) { in getMaskElt() argument
36 return (Mask >> ((3-Elt)*4)) & 0xF; in getMaskElt()
39 static unsigned setMaskElt(unsigned Mask, unsigned Elt, unsigned NewVal) { in setMaskElt() argument
40 unsigned FieldShift = ((3-Elt)*4); in setMaskElt()
200 static void EvaluateOps(unsigned short Elt, unsigned short Vals[], in EvaluateOps() argument
202 if (ShufTab[Elt].Cost == 0) return; in EvaluateOps()
206 if (Vals[i] == Elt) return; in EvaluateOps()
209 unsigned Arg0 = ShufTab[Elt].Arg0, Arg1 = ShufTab[Elt].Arg1; in EvaluateOps()
215 Vals[NumVals++] = Elt; in EvaluateOps()
477 template<unsigned Elt>
[all …]
/external/clang/include/clang/AST/
DASTVector.h157 void push_back(const_reference Elt, const ASTContext &C) { in push_back() argument
160 new (End) T(Elt); in push_back()
199 void append(const ASTContext &C, size_type NumInputs, const T &Elt) { in append() argument
205 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
216 iterator insert(const ASTContext &C, iterator I, const T &Elt) { in insert() argument
218 push_back(Elt, C); in insert()
228 *I = Elt; in insert()
238 const T &Elt) { in insert() argument
243 append(C, NumToInsert, Elt); in insert()
264 std::fill_n(I, NumToInsert, Elt); in insert()
[all …]
/external/llvm/lib/Support/
DSmallPtrSet.cpp151 const void *Elt = *BucketPtr; in Grow() local
152 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
159 const void *Elt = *BucketPtr; in Grow() local
160 if (Elt != getTombstoneMarker() && Elt != getEmptyMarker()) in Grow()
161 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
/external/llvm/include/llvm/ADT/
DSmallVector.h229 void push_back(const T &Elt) { in push_back() argument
232 ::new ((void*) this->end()) T(Elt); in push_back()
236 void push_back(T &&Elt) { in push_back() argument
239 ::new ((void*) this->end()) T(::std::move(Elt)); in push_back()
337 void push_back(const T &Elt) { in push_back() argument
340 memcpy(this->end(), &Elt, sizeof(T)); in push_back()
435 void append(size_type NumInputs, const T &Elt) { in append() argument
441 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
449 void assign(size_type NumElts, const T &Elt) { in assign() argument
454 std::uninitialized_fill(this->begin(), this->end(), Elt); in assign()
[all …]
DSmallString.h45 void assign(size_t NumElts, char Elt) { in assign() argument
46 this->SmallVectorImpl<char>::assign(NumElts, Elt); in assign()
78 void append(size_t NumInputs, char Elt) { in append() argument
79 SmallVectorImpl<char>::append(NumInputs, Elt); in append()
DTinyPtrVector.h263 iterator insert(iterator I, const EltTy &Elt) { in insert() argument
267 push_back(Elt); in insert()
273 Val = Elt; in insert()
278 return Val.template get<VecTy*>()->insert(I, Elt); in insert()
DEquivalenceClasses.h75 ECValue(const ElemTy &Elt) in ECValue() argument
76 : Leader(this), Next((ECValue*)(intptr_t)1), Data(Elt) {} in ECValue()
/external/llvm/lib/IR/
DConstants.cpp270 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement()
272 return Elt < CS->getNumOperands() ? CS->getOperand(Elt) : nullptr; in getAggregateElement()
275 return Elt < CA->getNumOperands() ? CA->getOperand(Elt) : nullptr; in getAggregateElement()
278 return Elt < CV->getNumOperands() ? CV->getOperand(Elt) : nullptr; in getAggregateElement()
281 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement()
284 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement()
287 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
292 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement()
293 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement()
294 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) in getAggregateElement()
[all …]
DConstantFold.h38 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt,
DConstantFold.cpp801 Constant *Elt, in ConstantFoldInsertElementInstruction() argument
819 Result.push_back(Elt); in ConstantFoldInsertElementInstruction()
848 int Elt = ShuffleVectorInst::getMaskValue(Mask, i); in ConstantFoldShuffleVectorInstruction() local
849 if (Elt == -1) { in ConstantFoldShuffleVectorInstruction()
854 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() local
856 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() local
860 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
863 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt)); in ConstantFoldShuffleVectorInstruction()
/external/clang/include/clang/Analysis/Support/
DBumpVector.h154 void push_back(const_reference Elt, BumpVectorContext &C) { in push_back() argument
157 new (End) T(Elt); in push_back()
197 void construct_range(T *S, T *E, const T &Elt) { in construct_range() argument
199 new (S) T(Elt); in construct_range()
/external/llvm/include/llvm/IR/
DConstant.h100 Constant *getAggregateElement(unsigned Elt) const;
101 Constant *getAggregateElement(Constant *Elt) const;
DConstants.h332 Constant *getStructElement(unsigned Elt) const;
481 static Constant *getSplat(unsigned NumElts, Constant *Elt);
672 const char *getElementPointer(unsigned Elt) const;
778 static Constant *getSplat(unsigned NumElts, Constant *Elt);
1158 static Constant *getInsertElement(Constant *Vec, Constant *Elt, Constant *Idx,
1273 UndefValue *getStructElement(unsigned Elt) const;
/external/llvm/utils/TableGen/
DTableGen.cpp162 for (Record *Elt : *Elts) in LLVMTableGenMain()
163 OS << ' ' << Elt->getName(); in LLVMTableGenMain()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp787 unsigned Elt = 0; in ConvertScalar_ExtractValue() local
790 Elt = Offset/EltSize; in ConvertScalar_ExtractValue()
791 assert(EltSize*Elt == Offset && "Invalid modulus in validity checking"); in ConvertScalar_ExtractValue()
796 if (Elt) in ConvertScalar_ExtractValue()
798 Builder.getInt32(Elt), in ConvertScalar_ExtractValue()
803 Idx = Builder.getInt32(Elt); in ConvertScalar_ExtractValue()
818 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue() local
821 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
832 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue() local
835 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
[all …]
/external/llvm/unittests/IR/
DConstantsTest.cpp194 Constant *Elt = ConstantInt::get(Int16Ty, 2015); in TEST() local
271 EXPECT_EQ(Elt, ConstantExpr::getExtractElement( in TEST()
272 ConstantExpr::getInsertElement(P6, Elt, One), One)); in TEST()
273 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Two)); in TEST()
274 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Big)); in TEST()
275 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Undef64)); in TEST()
/external/llvm/lib/TableGen/
DRecord.cpp561 unsigned Elt) const { in resolveListElementReference()
562 if (Elt >= size()) in resolveListElementReference()
564 Init *E = getElement(Elt); in resolveListElementReference()
583 unsigned Elt) const { in resolveListElementReference()
592 if (Init *New = Typed->resolveListElementReference(R, IRV, Elt)) in resolveListElementReference()
594 return VarListElementInit::get(Typed, Elt); in resolveListElementReference()
1239 unsigned Elt) const { in resolveListElementReference()
1247 return VarListElementInit::get(cast<TypedInit>(RV->getValue()), Elt); in resolveListElementReference()
1249 if (Elt >= LI->size()) in resolveListElementReference()
1251 Init *E = LI->getElement(Elt); in resolveListElementReference()
[all …]
/external/clang/lib/CodeGen/
DCGDecl.cpp816 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); in canEmitInitWithFewStoresAfterMemset() local
817 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores)) in canEmitInitWithFewStoresAfterMemset()
826 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterMemset() local
827 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores)) in canEmitInitWithFewStoresAfterMemset()
855 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterMemset() local
858 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
860 Elt, Builder.CreateConstGEP2_32(Init->getType(), Loc, 0, i), in emitStoresForInitAfterMemset()
870 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); in emitStoresForInitAfterMemset() local
873 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
875 Elt, Builder.CreateConstGEP2_32(Init->getType(), Loc, 0, i), in emitStoresForInitAfterMemset()
/external/llvm/include/llvm/TableGen/
DRecord.h399 unsigned Elt) const = 0;
495 unsigned Elt) const override { in resolveListElementReference() argument
536 unsigned Elt) const override { in resolveListElementReference() argument
573 unsigned Elt) const override { in resolveListElementReference() argument
639 unsigned Elt) const override;
671 unsigned Elt) const override;
859 unsigned Elt) const override;
944 unsigned Elt) const override;
989 unsigned Elt) const override { in resolveListElementReference() argument
1017 unsigned Elt) const override;
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp96 Value *Elt = EI.getIndexOperand(); in scalarizePHI() local
105 ExtractElementInst::Create(B0->getOperand(opId), Elt, in scalarizePHI()
113 Instruction *newEI = ExtractElementInst::Create(PHIInVal, Elt, ""); in scalarizePHI()
171 if (Value *Elt = findScalarElement(BCI->getOperand(0), IndexVal)) in visitExtractElementInst() local
172 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst()
212 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst() local
213 int SrcIdx = SVI->getMaskValue(Elt->getZExtValue()); in visitExtractElementInst()
DInstCombineMulDivRem.cpp124 Constant *Elt = CV->getElementAsConstant(I); in getLogBase2Vector() local
125 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2Vector()
127 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector()
1456 Constant *Elt = C->getAggregateElement(i); in visitSRem() local
1457 if (!Elt) { in visitSRem()
1462 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elt)) in visitSRem()
DInstCombineSimplifyDemanded.cpp914 Constant *Elt = C->getAggregateElement(i); in SimplifyDemandedVectorElts() local
915 if (!Elt) return nullptr; in SimplifyDemandedVectorElts()
917 if (isa<UndefValue>(Elt)) { // Already undef. in SimplifyDemandedVectorElts()
921 Elts.push_back(Elt); in SimplifyDemandedVectorElts()
DInstCombineCalls.cpp456 APInt Elt = CI0->getValue(); in SimplifyX86extrq() local
457 Elt = Elt.lshr(Index).zextOrTrunc(Length); in SimplifyX86extrq()
458 return LowConstantHighUndef(Elt.getZExtValue()); in SimplifyX86extrq()
1508 Constant *Elt = Mask->getAggregateElement(i); in visitCallInst() local
1509 if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) { in visitCallInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1560 GenericValue Elt; in executeBitCastInst() local
1561 Elt.IntVal = 0; in executeBitCastInst()
1562 Elt.IntVal = Elt.IntVal.zext(DstBitSize); in executeBitCastInst()
1571 Elt.IntVal |= Tmp; in executeBitCastInst()
1573 TempDst.AggregateVal.push_back(Elt); in executeBitCastInst()
1581 GenericValue Elt; in executeBitCastInst() local
1582 Elt.IntVal = Elt.IntVal.zext(SrcBitSize); in executeBitCastInst()
1583 Elt.IntVal = TempSrc.AggregateVal[i].IntVal; in executeBitCastInst()
1584 Elt.IntVal = Elt.IntVal.lshr(ShiftAmt); in executeBitCastInst()
1587 Elt.IntVal = Elt.IntVal.trunc(DstBitSize); in executeBitCastInst()
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp175 Constant *Elt = Zero; in FoldBitCast() local
183 Src = ConstantExpr::getZExt(Src, Elt->getType()); in FoldBitCast()
191 Elt = ConstantExpr::getOr(Elt, Src); in FoldBitCast()
193 Result.push_back(Elt); in FoldBitCast()
212 Constant *Elt = ConstantExpr::getLShr(Src, in FoldBitCast() local
220 Constant *CE = ConstantExpr::getTrunc(Elt, DstIntTy); in FoldBitCast()
226 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy)); in FoldBitCast()

123