Home
last modified time | relevance | path

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

1234

/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/swiftshader/third_party/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/swiftshader/third_party/LLVM/lib/Support/
DSmallPtrSet.cpp154 const void *Elt = *BucketPtr; in Grow() local
155 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
162 const void *Elt = *BucketPtr; in Grow() local
163 if (Elt != getTombstoneMarker() && Elt != getEmptyMarker()) in Grow()
164 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
/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/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DInlineSimple.cpp107 const Constant *Elt = InitList->getOperand(i); in doInitialization() local
109 if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(Elt)) in doInitialization()
111 Elt = CE->getOperand(0); in doInitialization()
114 if (const Function *F = dyn_cast<Function>(Elt)) in doInitialization()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallVector.h211 void push_back(const T &Elt) { in push_back() argument
214 ::new ((void*) this->end()) T(Elt); in push_back()
218 void push_back(T &&Elt) { in push_back() argument
221 ::new ((void*) this->end()) T(::std::move(Elt)); in push_back()
306 void push_back(const T &Elt) { in push_back() argument
309 memcpy(this->end(), &Elt, sizeof(T)); in push_back()
404 void append(size_type NumInputs, const T &Elt) { in append() argument
410 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
418 void assign(size_type NumElts, const T &Elt) { in assign() argument
423 std::uninitialized_fill(this->begin(), this->end(), Elt); in assign()
[all …]
DSmallString.h46 void assign(size_t NumElts, char Elt) { in assign() argument
47 this->SmallVectorImpl<char>::assign(NumElts, Elt); in assign()
79 void append(size_t NumInputs, char Elt) { in append() argument
80 SmallVectorImpl<char>::append(NumInputs, Elt); in append()
/external/llvm/include/llvm/ADT/
DSmallVector.h208 void push_back(const T &Elt) { in push_back() argument
211 ::new ((void*) this->end()) T(Elt); in push_back()
215 void push_back(T &&Elt) { in push_back() argument
218 ::new ((void*) this->end()) T(::std::move(Elt)); in push_back()
302 void push_back(const T &Elt) { in push_back() argument
305 memcpy(this->end(), &Elt, sizeof(T)); in push_back()
401 void append(size_type NumInputs, const T &Elt) { in append() argument
407 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
415 void assign(size_type NumElts, const T &Elt) { in assign() argument
420 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.h291 iterator insert(iterator I, const EltTy &Elt) { in insert() argument
295 push_back(Elt); in insert()
301 Val = Elt; in insert()
306 return Val.template get<VecTy*>()->insert(I, Elt); in insert()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DDebugInfo.cpp55 DIDescriptor::getStringField(unsigned Elt) const { in getStringField()
59 if (Elt < DbgNode->getNumOperands()) in getStringField()
60 if (MDString *MDS = dyn_cast_or_null<MDString>(DbgNode->getOperand(Elt))) in getStringField()
66 uint64_t DIDescriptor::getUInt64Field(unsigned Elt) const { in getUInt64Field()
70 if (Elt < DbgNode->getNumOperands()) in getUInt64Field()
71 if (ConstantInt *CI = dyn_cast<ConstantInt>(DbgNode->getOperand(Elt))) in getUInt64Field()
77 DIDescriptor DIDescriptor::getDescriptorField(unsigned Elt) const { in getDescriptorField()
81 if (Elt < DbgNode->getNumOperands()) in getDescriptorField()
83 DIDescriptor(dyn_cast_or_null<const MDNode>(DbgNode->getOperand(Elt))); in getDescriptorField()
87 GlobalVariable *DIDescriptor::getGlobalVariableField(unsigned Elt) const { in getGlobalVariableField()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSmallVector.h322 void push_back(const T &Elt) { in push_back() argument
325 new (this->end()) T(Elt); in push_back()
364 void append(size_type NumInputs, const T &Elt) { in append() argument
370 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append()
374 void assign(unsigned NumElts, const T &Elt) { in assign() argument
379 construct_range(this->begin(), this->end(), Elt); in assign()
401 iterator insert(iterator I, const T &Elt) { in insert() argument
403 push_back(Elt); in insert()
416 const T *EltPtr = &Elt; in insert()
429 iterator insert(iterator I, size_type NumToInsert, const T &Elt) { in insert() argument
[all …]
/external/llvm/lib/Support/
DSmallPtrSet.cpp131 const void *Elt = *BucketPtr; in Grow() local
132 if (Elt != getTombstoneMarker() && Elt != getEmptyMarker()) in Grow()
133 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DSmallPtrSet.cpp132 const void *Elt = *BucketPtr; in Grow() local
133 if (Elt != getTombstoneMarker() && Elt != getEmptyMarker()) in Grow()
134 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DDebugInfo.h67 StringRef getStringField(unsigned Elt) const;
68 unsigned getUnsignedField(unsigned Elt) const { in getUnsignedField() argument
69 return (unsigned)getUInt64Field(Elt); in getUnsignedField()
71 uint64_t getUInt64Field(unsigned Elt) const;
72 DIDescriptor getDescriptorField(unsigned Elt) const;
75 DescTy getFieldAs(unsigned Elt) const { in getFieldAs() argument
76 return DescTy(getDescriptorField(Elt)); in getFieldAs()
79 GlobalVariable *getGlobalVariableField(unsigned Elt) const;
80 Constant *getConstantField(unsigned Elt) const;
81 Function *getFunctionField(unsigned Elt) const;
/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/lib/IR/
DConstants.cpp265 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()
[all …]
/external/llvm/include/llvm/IR/
DConstant.h98 Constant *getAggregateElement(unsigned Elt) const;
99 Constant *getAggregateElement(Constant *Elt) const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DConstant.h100 Constant *getAggregateElement(unsigned Elt) const;
101 Constant *getAggregateElement(Constant *Elt) const;
/external/swiftshader/third_party/subzero/crosstest/
Dtest_vector_ops_main.cpp80 ElementTy Elt = TestElements[EI]; in testInsertElement() local
82 Ty ResultLlc = VectorOps<T>::insertelement(Vect, Elt, I); in testInsertElement()
83 Ty ResultSz = VectorOps<T>::Subzero_insertelement(Vect, Elt, I); in testInsertElement()
91 << ", Element=" << (typename VectorOps<T>::CastTy)Elt in testInsertElement()
/external/llvm/utils/TableGen/
DTableGen.cpp166 for (Record *Elt : *Elts) in LLVMTableGenMain()
167 OS << ' ' << Elt->getName(); in LLVMTableGenMain()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp171 if (Value *Elt = FindScalarElement(EI.getOperand(0), IndexVal)) in visitExtractElementInst() local
172 return ReplaceInstUsesWith(EI, Elt); in visitExtractElementInst()
181 if (Value *Elt = FindScalarElement(BCI->getOperand(0), IndexVal)) in visitExtractElementInst() local
182 return new BitCastInst(Elt, EI.getType()); in visitExtractElementInst()
214 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) { in visitExtractElementInst() local
215 int SrcIdx = getShuffleMask(SVI)[Elt->getZExtValue()]; in visitExtractElementInst()
/external/llvm/include/llvm/TableGen/
DRecord.h423 unsigned Elt) const = 0;
522 unsigned Elt) const override { in resolveListElementReference() argument
563 unsigned Elt) const override { in resolveListElementReference() argument
601 unsigned Elt) const override { in resolveListElementReference() argument
640 unsigned Elt) const override { in resolveListElementReference() argument
711 unsigned Elt) const override;
744 unsigned Elt) const override;
936 unsigned Elt) const override;
1021 unsigned Elt) const override;
1066 unsigned Elt) const override { in resolveListElementReference() argument
[all …]
/external/llvm/unittests/IR/
DConstantsTest.cpp218 Constant *Elt = ConstantInt::get(Int16Ty, 2015); in TEST() local
295 EXPECT_EQ(Elt, ConstantExpr::getExtractElement( in TEST()
296 ConstantExpr::getInsertElement(P6, Elt, One), One)); in TEST()
297 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Two)); in TEST()
298 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Big)); in TEST()
299 EXPECT_EQ(UndefV16, ConstantExpr::getInsertElement(P6, Elt, Undef64)); in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp693 unsigned Elt = 0; in ConvertScalar_ExtractValue() local
696 Elt = Offset/EltSize; in ConvertScalar_ExtractValue()
697 assert(EltSize*Elt == Offset && "Invalid modulus in validity checking"); in ConvertScalar_ExtractValue()
700 Value *V = Builder.CreateExtractElement(FromVal, Builder.getInt32(Elt)); in ConvertScalar_ExtractValue()
712 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), in ConvertScalar_ExtractValue() local
715 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
724 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), in ConvertScalar_ExtractValue() local
726 Res = Builder.CreateInsertValue(Res, Elt, i); in ConvertScalar_ExtractValue()
811 unsigned Elt = Offset/EltSize; in ConvertScalar_InsertValue() local
812 return Builder.CreateInsertElement(Old, SV, Builder.getInt32(Elt)); in ConvertScalar_InsertValue()
[all …]

1234