Searched defs:Elt (Results 1 - 25 of 43) sorted by relevance

12

/external/llvm/include/llvm/ADT/
H A DSmallString.h45 void assign(size_t NumElts, char Elt) { argument
46 this->SmallVectorImpl<char>::assign(NumElts, Elt);
78 void append(size_t NumInputs, char Elt) { argument
79 SmallVectorImpl<char>::append(NumInputs, Elt);
H A DTinyPtrVector.h244 iterator insert(iterator I, const EltTy &Elt) { argument
248 push_back(Elt);
254 Val = Elt;
259 return Val.template get<VecTy*>()->insert(I, Elt);
H A DEquivalenceClasses.h74 ECValue(const ElemTy &Elt) argument
75 : Leader(this), Next((ECValue*)(intptr_t)1), Data(Elt) {}
H A DSmallVector.h225 void push_back(const T &Elt) {
228 ::new ((void*) this->end()) T(Elt);
232 void push_back(T &&Elt) { argument
235 ::new ((void*) this->end()) T(::std::move(Elt));
329 void push_back(const T &Elt) { argument
332 memcpy(this->end(), &Elt, sizeof(T));
432 void append(size_type NumInputs, const T &Elt) { argument
438 std::uninitialized_fill_n(this->end(), NumInputs, Elt);
442 void assign(unsigned NumElts, const T &Elt) { argument
447 std::uninitialized_fill(this->begin(), this->end(), Elt);
476 insert(iterator I, T &&Elt) argument
506 insert(iterator I, const T &Elt) argument
535 insert(iterator I, size_type NumToInsert, const T &Elt) argument
[all...]
/external/clang/include/clang/Analysis/Support/
H A DBumpVector.h149 void push_back(const_reference Elt, BumpVectorContext &C) { argument
152 new (End) T(Elt);
192 void construct_range(T *S, T *E, const T &Elt) { argument
194 new (S) T(Elt);
/external/llvm/utils/PerfectShuffle/
H A DPerfectShuffle.cpp35 static unsigned getMaskElt(unsigned Mask, unsigned Elt) { argument
36 return (Mask >> ((3-Elt)*4)) & 0xF;
39 static unsigned setMaskElt(unsigned Mask, unsigned Elt, unsigned NewVal) { argument
40 unsigned FieldShift = ((3-Elt)*4);
200 static void EvaluateOps(unsigned short Elt, unsigned short Vals[],
202 if (ShufTab[Elt].Cost == 0) return;
206 if (Vals[i] == Elt) return;
209 unsigned Arg0 = ShufTab[Elt].Arg0, Arg1 = ShufTab[Elt].Arg1;
215 Vals[NumVals++] = Elt;
[all...]
/external/clang/include/clang/AST/
H A DASTVector.h157 void push_back(const_reference Elt, const ASTContext &C) { argument
160 new (End) T(Elt);
199 void append(const ASTContext &C, size_type NumInputs, const T &Elt) { argument
205 std::uninitialized_fill_n(this->end(), NumInputs, Elt);
216 iterator insert(const ASTContext &C, iterator I, const T &Elt) { argument
218 push_back(Elt, C);
228 *I = Elt;
238 const T &Elt) {
240 append(C, NumToInsert, Elt);
264 std::fill_n(I, NumToInsert, Elt);
237 insert(const ASTContext &C, iterator I, size_type NumToInsert, const T &Elt) argument
354 construct_range(T *S, T *E, const T &Elt) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp955 Constant *Elt = C->getAggregateElement(i); local
956 if (!Elt) return nullptr;
958 if (isa<UndefValue>(Elt)) { // Already undef.
962 Elts.push_back(Elt);
H A DInstCombineVectorOps.cpp143 Value *Elt = EI.getIndexOperand(); local
152 ExtractElementInst::Create(B0->getOperand(opId), Elt,
153 B0->getOperand(opId)->getName() + ".Elt"),
160 Instruction *newEI = ExtractElementInst::Create(PHIInVal, Elt, "");
211 if (Value *Elt = FindScalarElement(EI.getOperand(0), IndexVal))
212 return ReplaceInstUsesWith(EI, Elt);
220 if (Value *Elt = FindScalarElement(BCI->getOperand(0), IndexVal))
221 return new BitCastInst(Elt, EI.getType());
261 if (ConstantInt *Elt = dyn_cast<ConstantInt>(EI.getOperand(1))) {
262 int SrcIdx = SVI->getMaskValue(Elt
[all...]
H A DInstCombineMulDivRem.cpp110 Constant *Elt = CV->getElementAsConstant(I); local
111 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2())
113 Elts.push_back(ConstantInt::get(Elt->getType(), IVal->logBase2()));
1302 Constant *Elt = C->getAggregateElement(i); local
1303 if (!Elt) {
1308 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elt))
H A DInstCombineCalls.cpp830 Constant *Elt = Mask->getAggregateElement(i); local
831 if (!Elt || !(isa<ConstantInt>(Elt) || isa<UndefValue>(Elt))) {
H A DInstCombineCasts.cpp1750 unsigned Elt = 0; local
1752 Elt = VecTy->getPrimitiveSizeInBits() / DestWidth - 1;
1753 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(Elt));
1774 unsigned Elt = ShAmt->getZExtValue() / DestWidth; local
1776 Elt = VecTy->getPrimitiveSizeInBits() / DestWidth - 1 - Elt;
1777 return ExtractElementInst::Create(VecInput, IC.Builder->getInt32(Elt));
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp175 Constant *Elt = Zero; local
183 Src = ConstantExpr::getZExt(Src, Elt->getType());
191 Elt = ConstantExpr::getOr(Elt, Src);
193 Result.push_back(Elt);
212 Constant *Elt = ConstantExpr::getLShr(Src, local
217 Result.push_back(ConstantExpr::getTrunc(Elt, DstEltTy));
H A DValueTracking.cpp264 APInt Elt(KnownZero.getBitWidth(), 0);
266 Elt = CDS->getElementAsInteger(i);
267 KnownZero &= ~Elt;
268 KnownOne &= Elt;
1522 Value *Elt = CA->getElementAsConstant(0); local
1523 Value *Val = isBytewiseValue(Elt);
1528 if (CA->getElementAsConstant(I) != Elt)
/external/llvm/lib/IR/
H A DConstantFold.cpp776 Constant *Elt,
786 Result.push_back(Elt);
816 int Elt = ShuffleVectorInst::getMaskValue(Mask, i); local
817 if (Elt == -1) {
822 if (unsigned(Elt) >= SrcNumElts*2)
824 else if (unsigned(Elt) >= SrcNumElts) {
828 ConstantInt::get(Ty, Elt - SrcNumElts));
831 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt));
775 ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt, Constant *Idx) argument
H A DDebugInfo.cpp55 static Value *getField(const MDNode *DbgNode, unsigned Elt) { argument
56 if (!DbgNode || Elt >= DbgNode->getNumOperands())
58 return DbgNode->getOperand(Elt);
61 static MDNode *getNodeField(const MDNode *DbgNode, unsigned Elt) { argument
62 return dyn_cast_or_null<MDNode>(getField(DbgNode, Elt));
65 static StringRef getStringField(const MDNode *DbgNode, unsigned Elt) { argument
66 if (MDString *MDS = dyn_cast_or_null<MDString>(getField(DbgNode, Elt)))
71 StringRef DIDescriptor::getStringField(unsigned Elt) const {
72 return ::getStringField(DbgNode, Elt);
75 uint64_t DIDescriptor::getUInt64Field(unsigned Elt) cons
131 replaceFunctionField(unsigned Elt, Function *F) argument
406 fieldIsMDNode(const MDNode *DbgNode, unsigned Elt) argument
416 fieldIsMDString(const MDNode *DbgNode, unsigned Elt) argument
429 fieldIsTypeRef(const MDNode *DbgNode, unsigned Elt) argument
444 fieldIsScopeRef(const MDNode *DbgNode, unsigned Elt) argument
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp405 Constant *Elt = C->getAggregateElement(i); local
407 if (!Elt)
409 else if (isa<UndefValue>(Elt))
412 LV.markConstant(Elt); // Constants are constant.
H A DScalarReplAggregates.cpp781 unsigned Elt = 0; local
784 Elt = Offset/EltSize;
785 assert(EltSize*Elt == Offset && "Invalid modulus in validity checking");
790 if (Elt)
792 Builder.getInt32(Elt),
797 Idx = Builder.getInt32(Elt);
812 Value *Elt = ConvertScalar_ExtractValue(FromVal, ST->getElementType(i), local
815 Res = Builder.CreateInsertValue(Res, Elt, i);
826 Value *Elt = ConvertScalar_ExtractValue(FromVal, AT->getElementType(), local
829 Res = Builder.CreateInsertValue(Res, Elt,
921 unsigned Elt = Offset/EltSize; local
941 Value *Elt = Builder.CreateExtractValue(SV, i); local
954 Value *Elt = Builder.CreateExtractValue(SV, i); local
2248 Value *Elt = new LoadInst(OtherElt, "tmp", false, OtherEltAlign, MI); local
2252 Value *Elt = new LoadInst(EltPtr, "tmp", MI); local
[all...]
/external/clang/lib/CodeGen/
H A DCGDecl.cpp721 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); local
722 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores))
731 llvm::Constant *Elt = CDS->getElementAsConstant(i); local
732 if (!canEmitInitWithFewStoresAfterMemset(Elt, NumStores))
760 llvm::Constant *Elt = CDS->getElementAsConstant(i); local
763 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt))
764 emitStoresForInitAfterMemset(Elt, Builder.CreateConstGEP2_32(Loc, 0, i),
774 llvm::Constant *Elt = cast<llvm::Constant>(Init->getOperand(i)); local
777 if (!Elt
[all...]
H A DCGExprConstant.cpp1140 const APValue &Elt = Value.getVectorElt(i); local
1141 if (Elt.isInt())
1142 Inits.push_back(llvm::ConstantInt::get(VMContext, Elt.getInt()));
1144 Inits.push_back(llvm::ConstantFP::get(VMContext, Elt.getFloat()));
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2554 Value *Vec, *Elt, *Idx; local
2557 cast<VectorType>(Vec->getType())->getElementType(), Elt) ||
2560 I = InsertElementInst::Create(Vec, Elt, Idx);
/external/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp811 Constant *Elt = CDS->getElementAsConstant(i); local
812 printConstant(Elt);
813 Out << constName << "_elems.push_back(" << getCppName(Elt) << ");";
/external/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp1493 int Elt = N->getConstantOperandVal(0); local
1516 if ((Elt & 1) == 0) {
1517 // Elt is even, in the range [-32,-18] + [16,30].
1523 SDValue EltVal = getI32Imm(Elt >> 1);
1528 } else if (Elt > 0) {
1529 // Elt is odd and positive, in the range [17,31].
1535 SDValue EltVal = getI32Imm(Elt - 16);
1543 // Elt is odd and negative, in the range [-31,-17].
1549 SDValue EltVal = getI32Imm(Elt + 16);
/external/llvm/lib/Target/R600/
H A DR600ISelLowering.cpp1898 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue(); local
1915 if (Elt < Ops.size()) {
1923 Ops[Elt] = InVal;
/external/clang/lib/AST/
H A DExprConstant.cpp1576 APValue &Elt = SVal.getVectorElt(i); local
1578 if (Elt.isInt()) {
1579 EltAsInt = Elt.getInt();
1580 } else if (Elt.isFloat()) {
1581 EltAsInt = Elt.getFloat().bitcastToAPInt();
5363 llvm::APInt Elt;
5365 Elt = SValInt.rotl(i*EltSize+FloatEltSize).trunc(FloatEltSize);
5367 Elt = SValInt.rotr(i*EltSize).trunc(FloatEltSize);
5368 Elts.push_back(APValue(APFloat(Sem, Elt)));
5372 llvm::APInt Elt;
[all...]

Completed in 3167 milliseconds

12