Home
last modified time | relevance | path

Searched refs:Elt (Results 1 – 25 of 54) 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.h222 void push_back(const T &Elt) { in push_back() argument
225 ::new ((void*) this->end()) T(Elt); in push_back()
229 void push_back(T &&Elt) { in push_back() argument
232 ::new ((void*) this->end()) T(::std::move(Elt)); in push_back()
328 void push_back(const T &Elt) { in push_back() argument
331 memcpy(this->end(), &Elt, sizeof(T)); in push_back()
426 void append(size_type NumInputs, const T &Elt) { in append() argument
432 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
440 void assign(size_type NumElts, const T &Elt) { in assign() argument
445 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.h264 iterator insert(iterator I, const EltTy &Elt) { in insert() argument
268 push_back(Elt); in insert()
274 Val = Elt; in insert()
279 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/clang/include/clang/Analysis/Support/
DBumpVector.h149 void push_back(const_reference Elt, BumpVectorContext &C) { in push_back() argument
152 new (End) T(Elt); in push_back()
192 void construct_range(T *S, T *E, const T &Elt) { in construct_range() argument
194 new (S) T(Elt); in construct_range()
/external/llvm/lib/IR/
DConstants.cpp250 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement()
252 return Elt < CS->getNumOperands() ? CS->getOperand(Elt) : nullptr; in getAggregateElement()
255 return Elt < CA->getNumOperands() ? CA->getOperand(Elt) : nullptr; in getAggregateElement()
258 return Elt < CV->getNumOperands() ? CV->getOperand(Elt) : nullptr; in getAggregateElement()
261 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement()
264 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement()
267 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
272 Constant *Constant::getAggregateElement(Constant *Elt) const { in getAggregateElement()
273 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer"); in getAggregateElement()
274 if (ConstantInt *CI = dyn_cast<ConstantInt>(Elt)) in getAggregateElement()
[all …]
DConstantFold.h38 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt,
DConstantFold.cpp802 Constant *Elt, in ConstantFoldInsertElementInstruction() argument
812 Result.push_back(Elt); in ConstantFoldInsertElementInstruction()
842 int Elt = ShuffleVectorInst::getMaskValue(Mask, i); in ConstantFoldShuffleVectorInstruction() local
843 if (Elt == -1) { in ConstantFoldShuffleVectorInstruction()
848 if (unsigned(Elt) >= SrcNumElts*2) in ConstantFoldShuffleVectorInstruction() local
850 else if (unsigned(Elt) >= SrcNumElts) { in ConstantFoldShuffleVectorInstruction() local
854 ConstantInt::get(Ty, Elt - SrcNumElts)); in ConstantFoldShuffleVectorInstruction()
857 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt)); in ConstantFoldShuffleVectorInstruction()
/external/llvm/include/llvm/IR/
DConstant.h118 Constant *getAggregateElement(unsigned Elt) const;
119 Constant *getAggregateElement(Constant *Elt) const;
DConstants.h318 Constant *getStructElement(unsigned Elt) const;
458 static Constant *getSplat(unsigned NumElts, Constant *Elt);
646 const char *getElementPointer(unsigned Elt) const;
752 static Constant *getSplat(unsigned NumElts, Constant *Elt);
1101 static Constant *getInsertElement(Constant *Vec, Constant *Elt, Constant *Idx,
1212 UndefValue *getStructElement(unsigned Elt) const;
/external/llvm/utils/TableGen/
DTableGen.cpp159 for (Record *Elt : *Elts) in LLVMTableGenMain()
160 OS << ' ' << Elt->getName(); in LLVMTableGenMain()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp786 unsigned Elt = 0; in ConvertScalar_ExtractValue() local
789 Elt = Offset/EltSize; in ConvertScalar_ExtractValue()
790 assert(EltSize*Elt == Offset && "Invalid modulus in validity checking"); in ConvertScalar_ExtractValue()
795 if (Elt) in ConvertScalar_ExtractValue()
797 Builder.getInt32(Elt), in ConvertScalar_ExtractValue()
802 Idx = Builder.getInt32(Elt); in ConvertScalar_ExtractValue()
817 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue() local
820 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
831 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue() local
834 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
[all …]
/external/llvm/lib/TableGen/
DRecord.cpp704 unsigned Elt) const { in resolveListElementReference()
705 if (Elt >= getSize()) in resolveListElementReference()
707 Init *E = getElement(Elt); in resolveListElementReference()
726 unsigned Elt) const { in resolveListElementReference()
737 Init *New = Typed->resolveListElementReference(R, IRV, Elt); in resolveListElementReference()
740 return VarListElementInit::get(Typed, Elt); in resolveListElementReference()
1352 unsigned Elt) const { in resolveListElementReference()
1362 return VarListElementInit::get(VI, Elt); in resolveListElementReference()
1365 if (Elt >= LI->getSize()) in resolveListElementReference()
1367 Init *E = LI->getElement(Elt); in resolveListElementReference()
[all …]
/external/clang/lib/CodeGen/
DCGDecl.cpp758 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); in canEmitInitWithFewStoresAfterMemset() local
759 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores)) in canEmitInitWithFewStoresAfterMemset()
768 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterMemset() local
769 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores)) in canEmitInitWithFewStoresAfterMemset()
797 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterMemset() local
800 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
802 Elt, Builder.CreateConstGEP2_32(Init->getType(), Loc, 0, i), in emitStoresForInitAfterMemset()
812 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); in emitStoresForInitAfterMemset() local
815 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
817 Elt, Builder.CreateConstGEP2_32(Init->getType(), Loc, 0, i), in emitStoresForInitAfterMemset()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp144 Value *Elt = EI.getIndexOperand(); in scalarizePHI() local
153 ExtractElementInst::Create(B0->getOperand(opId), Elt, in scalarizePHI()
161 Instruction *newEI = ExtractElementInst::Create(PHIInVal, Elt, ""); in scalarizePHI()
212 if (Value *Elt = FindScalarElement(EI.getOperand(0), IndexVal)) in visitExtractElementInst() local
213 return ReplaceInstUsesWith(EI, Elt); in visitExtractElementInst()
221 if (Value *Elt = FindScalarElement(BCI->getOperand(0), IndexVal)) in visitExtractElementInst() local
222 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst()
262 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst() local
263 int SrcIdx = SVI->getMaskValue(Elt->getZExtValue()); in visitExtractElementInst()
DInstCombineCasts.cpp1712 unsigned Elt = 0; in OptimizeIntToFloatBitCast() local
1714 Elt = VecTy->getPrimitiveSizeInBits() / DestWidth - 1; in OptimizeIntToFloatBitCast()
1715 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(Elt)); in OptimizeIntToFloatBitCast()
1736 unsigned Elt = ShAmt->getZExtValue() / DestWidth; in OptimizeIntToFloatBitCast() local
1738 Elt = VecTy->getPrimitiveSizeInBits() / DestWidth - 1 - Elt; in OptimizeIntToFloatBitCast()
1739 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(Elt)); in OptimizeIntToFloatBitCast()
DInstCombineMulDivRem.cpp117 Constant *Elt = CV->getElementAsConstant(I); in getLogBase2Vector() local
118 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2Vector()
120 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2())); in getLogBase2Vector()
1446 Constant *Elt = C->getAggregateElement(i); in visitSRem() local
1447 if (!Elt) { in visitSRem()
1452 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elt)) in visitSRem()
DInstCombineSimplifyDemanded.cpp998 Constant *Elt = C->getAggregateElement(i); in SimplifyDemandedVectorElts() local
999 if (!Elt) return nullptr; in SimplifyDemandedVectorElts()
1001 if (isa<UndefValue>(Elt)) { // Already undef. in SimplifyDemandedVectorElts()
1005 Elts.push_back(Elt); in SimplifyDemandedVectorElts()
/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/include/llvm/TableGen/
DRecord.h592 unsigned Elt) const = 0;
696 unsigned Elt) const override { in resolveListElementReference() argument
739 unsigned Elt) const override { in resolveListElementReference() argument
779 unsigned Elt) const override { in resolveListElementReference() argument
848 unsigned Elt) const override;
884 unsigned Elt) const override;
1082 unsigned Elt) const override;
1173 unsigned Elt) const override;
1220 unsigned Elt) const override { in resolveListElementReference() argument
1253 unsigned Elt) const override;
[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()
/external/llvm/lib/Target/R600/
DAMDGPUISelLowering.cpp706 Constant *Elt = Init->getAggregateElement(I); in LowerConstantInitializer() local
707 Chains.push_back(LowerConstantInitializer(Elt, GV, Ptr, Chain, DAG)); in LowerConstantInitializer()
730 Constant *Elt = Init->getAggregateElement(i); in LowerConstantInitializer() local
731 Chains.push_back(LowerConstantInitializer(Elt, GV, Ptr, Chain, DAG)); in LowerConstantInitializer()
1303 SDValue Elt = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, ElemVT, Value, in MergeVectorStore() local
1305 Elt = DAG.getZExtOrTrunc(Elt, DL, MVT::i32); in MergeVectorStore()
1306 Elt = DAG.getNode(ISD::AND, DL, MVT::i32, Elt, Mask); // getZeroExtendInReg in MergeVectorStore()
1309 Elt = DAG.getNode(ISD::SHL, DL, MVT::i32, Elt, Shift); in MergeVectorStore()
1312 PackedValue = Elt; in MergeVectorStore()
1314 PackedValue = DAG.getNode(ISD::OR, DL, MVT::i32, PackedValue, Elt); in MergeVectorStore()

123