Searched refs:Elts (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DSetTheory.h77 /// in Elts.
78 virtual void apply(SetTheory&, DagInit *Expr, RecSet &Elts,
91 virtual void expand(SetTheory&, Record*, RecSet &Elts) = 0;
118 /// dag Elts = d;
126 /// evaluate - Evaluate Expr and append the resulting set to Elts.
127 void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc);
129 /// evaluate - Evaluate a sequence of Inits and append to Elts.
131 void evaluate(Iter begin, Iter end, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument
133 evaluate(*begin++, Elts, Loc);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DSetTheory.cpp40 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
42 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc);
48 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
58 Elts.insert(*I);
64 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
74 Elts.insert(*I);
81 RecSet &Elts, ArrayRef<SMLoc> Loc) = 0;
83 void apply(SetTheory &ST, DagInit *Expr, RecSet &Elts,
94 apply2(ST, Expr, Set, II->getValue(), Elts, Loc);
101 RecSet &Elts, ArrayRe
282 evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
324 RecSet Elts; local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h246 APValue *Elts; member in struct:clang::APValue::Vec
248 Vec() : Elts(nullptr), NumElts(0) {}
249 ~Vec() { delete[] Elts; }
252 APValue *Elts; member in struct:clang::APValue::Arr
258 APValue *Elts; member in struct:clang::APValue::StructData
457 return ((Vec*)(char*)Data.buffer)->Elts[I];
470 return ((Arr*)(char*)Data.buffer)->Elts[I];
481 return ((Arr*)(char*)Data.buffer)->Elts[getArrayInitializedElts()];
505 return ((StructData*)(char*)Data.buffer)->Elts[i];
509 return ((StructData*)(char*)Data.buffer)->Elts[getStructNumBase
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/
H A DTableGen.cpp212 const std::vector<Record*> *Elts = Sets.expand(Rec); local
213 assert(Elts && "Couldn't expand Set instance");
214 for (Record *Elt : *Elts)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h703 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) { argument
704 const char *Data = reinterpret_cast<const char *>(Elts.data());
705 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
712 static Constant *get(LLVMContext &Context, ArrayTy &Elts) { argument
713 return ConstantDataArray::get(Context, makeArrayRef(Elts));
732 static Constant *getFP(LLVMContext &Context, ArrayRef<uint16_t> Elts);
733 static Constant *getFP(LLVMContext &Context, ArrayRef<uint32_t> Elts);
734 static Constant *getFP(LLVMContext &Context, ArrayRef<uint64_t> Elts);
774 static Constant *get(LLVMContext &Context, ArrayRef<uint8_t> Elts);
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp995 SmallVector<ElementTy, 16> Elts; local
998 Elts.push_back(CI->getZExtValue());
1001 return SequentialTy::get(V[0]->getContext(), Elts);
1008 SmallVector<ElementTy, 16> Elts; local
1011 Elts.push_back(CFP->getValueAPF().bitcastToAPInt().getLimitedValue());
1014 return SequentialTy::getFP(V[0]->getContext(), Elts);
1208 SmallVector<Constant*, 32> Elts(NumElts, V);
1209 return get(Elts);
2629 ArrayRef<uint16_t> Elts) {
2630 Type *Ty = ArrayType::get(Type::getHalfTy(Context), Elts
2628 getFP(LLVMContext &Context, ArrayRef<uint16_t> Elts) argument
2634 getFP(LLVMContext &Context, ArrayRef<uint32_t> Elts) argument
2640 getFP(LLVMContext &Context, ArrayRef<uint64_t> Elts) argument
2663 get(LLVMContext &Context, ArrayRef<uint8_t> Elts) argument
2668 get(LLVMContext &Context, ArrayRef<uint16_t> Elts) argument
2673 get(LLVMContext &Context, ArrayRef<uint32_t> Elts) argument
2678 get(LLVMContext &Context, ArrayRef<uint64_t> Elts) argument
2683 get(LLVMContext &Context, ArrayRef<float> Elts) argument
2688 get(LLVMContext &Context, ArrayRef<double> Elts) argument
2699 getFP(LLVMContext &Context, ArrayRef<uint16_t> Elts) argument
2705 getFP(LLVMContext &Context, ArrayRef<uint32_t> Elts) argument
2711 getFP(LLVMContext &Context, ArrayRef<uint64_t> Elts) argument
[all...]
H A DDebugInfo.cpp965 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), local
969 LineNumber, SizeInBits, AlignInBits, Elts, unwrapDI<DIType>(ClassTy)));
978 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), local
983 Elts, RunTimeLang, {UniqueId, UniqueIdLen}));
1035 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), local
1040 unwrapDI<DIType>(DerivedFrom), Elts, RunTimeLang,
1209 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), local
1216 Elts, unwrapDI<DIType>(VTableHolder),
1266 auto Elts = unwrap(Builder)->getOrCreateTypeArray({unwrap(ParameterTypes), local
1269 Elts, map_from_llvmDIFlag
[all...]
H A DDIBuilder.cpp614 SmallVector<llvm::Metadata *, 16> Elts; local
617 Elts.push_back(cast<DIType>(Elements[i]));
619 Elts.push_back(Elements[i]);
621 return DITypeRefArray(MDNode::get(VMContext, Elts));
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h124 explicit TinyPtrVector(ArrayRef<EltTy> Elts) argument
125 : Val(Elts.empty()
127 : Elts.size() == 1
128 ? PtrUnion(Elts[0])
129 : PtrUnion(new VecTy(Elts.begin(), Elts.end()))) {}
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp118 uint64_t Elts = 0;
120 Elts = CArrTy->getSize().getZExtValue();
121 if (Elts == 0)
128 visitRecord(RT->getDecl(), Elts);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DThinLTOBitcodeWriter.cpp325 SmallVector<Metadata *, 4> Elts; local
326 Elts.push_back(MDString::get(Ctx, F.getName()));
334 Elts.push_back(ConstantAsMetadata::get(
337 Elts.push_back(Type);
338 CfiFunctionMDs.push_back(MDTuple::get(Ctx, Elts));
354 Metadata *Elts[] = { local
363 FunctionAliases.push_back(MDTuple::get(Ctx, Elts));
H A DGlobalOpt.cpp2417 SmallVector<Constant*, 32> Elts;
2421 Elts.push_back(Init->getAggregateElement(i));
2427 Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1);
2430 return ConstantStruct::get(STy, Elts);
2439 Elts.push_back(Init->getAggregateElement(i));
2442 Elts[CI->getZExtValue()] =
2443 EvaluateStoreInto(Elts[CI->getZExtValue()], Val, Addr, OpNo+1);
2446 return ConstantArray::get(cast<ArrayType>(InitTy), Elts);
2447 return ConstantVector::get(Elts);
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp2680 SmallVector<Type*, 8> Elts;
2681 if (ParseStructBody(Elts)) return true;
2683 Result = StructType::get(Context, Elts, Packed);
3118 SmallVector<Constant*, 16> Elts;
3119 if (ParseGlobalValueVector(Elts) ||
3123 ID.ConstantStructElts = std::make_unique<Constant *[]>(Elts.size());
3124 ID.UIntVal = Elts.size();
3125 memcpy(ID.ConstantStructElts.get(), Elts.data(),
3126 Elts.size() * sizeof(Elts[
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1522 void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
1526 Elts.insert(Elts2.begin(), Elts2.begin() + (Elts2.size() / 2));
1532 void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
1536 Elts.insert(Elts2.begin() + (Elts2.size() / 2), Elts2.end());
1546 void apply(SetTheory &ST, DagInit *Expr, SetTheory::RecSet &Elts,
1561 Elts.insert(Revved.begin(), Revved.end());
1571 void expand(SetTheory &ST, Record *R, SetTheory::RecSet &Elts) override {
1580 Elts.insert(R->getRecords().getDef("sv" + utostr(I + Addend)));
1593 SetTheory::RecSet Elts;
1600 ST.evaluate(DI->getArg(2), Elts, Non
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1050 SmallVector<llvm::Constant*, 2> Elts;
1052 Elts.push_back(C);
1063 Elts.push_back(llvm::UndefValue::get(Ty));
1068 return llvm::ConstantStruct::get(STy, Elts);
1201 SmallVector<llvm::Constant*, 16> Elts; local
1203 Elts.reserve(NumInitableElts + 1);
1205 Elts.reserve(NumElements);
1217 Elts.push_back(C);
1222 return EmitArrayConstant(CGM, Desired, CommonElementType, NumElements, Elts,
2114 SmallVector<llvm::Constant*, 16> Elts; local
[all...]
H A DCGValue.h394 static LValue MakeExtVectorElt(Address vecAddress, llvm::Constant *Elts, argument
400 R.VectorElts = Elts;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DMetadataLoader.cpp1170 SmallVector<Metadata *, 8> Elts; local
1176 Elts.push_back(getMD(Record[i + 1]));
1182 Elts.push_back(MD);
1184 Elts.push_back(nullptr);
1186 MetadataList.assignValue(MDNode::get(Context, Elts), NextMetadataNo);
1208 SmallVector<Metadata *, 8> Elts; local
1209 Elts.reserve(Record.size());
1211 Elts.push_back(getMDOrNull(ID));
1212 MetadataList.assignValue(IsDistinct ? MDNode::getDistinct(Context, Elts)
1213 : MDNode::get(Context, Elts),
1821 auto Elts = MutableArrayRef<uint64_t>(Record).slice(1); local
[all...]
H A DBitcodeReader.cpp2436 SmallVector<Constant*, 16> Elts; local
2440 Elts.push_back(ValueList.getConstantFwdRef(Record[i],
2442 V = ConstantStruct::get(STy, Elts);
2446 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
2447 V = ConstantArray::get(ATy, Elts);
2451 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
2452 V = ConstantVector::get(Elts);
2463 SmallString<16> Elts(Record.begin(), Record.end());
2464 V = ConstantDataArray::getString(Context, Elts,
2474 SmallVector<uint8_t, 16> Elts(Recor
2599 SmallVector<Constant*, 16> Elts; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp110 SmallVector<Constant *, 4> Elts;
116 Elts.push_back(UndefValue::get(Ty->getScalarType()));
121 Elts.push_back(ConstantInt::get(Ty->getScalarType(), IVal->logBase2()));
124 return ConstantVector::get(Elts);
1461 SmallVector<Constant *, 16> Elts(VWidth);
1463 Elts[i] = C->getAggregateElement(i); // Handle undef, etc.
1464 if (ConstantInt *RHS = dyn_cast<ConstantInt>(Elts[i])) {
1466 Elts[i] = cast<ConstantInt>(ConstantExpr::getNeg(RHS));
1470 Constant *NewRHSV = ConstantVector::get(Elts);
H A DInstCombineSimplifyDemanded.cpp1148 SmallVector<Constant*, 16> Elts; local
1151 Elts.push_back(Undef);
1160 Elts.push_back(Undef);
1163 Elts.push_back(Elt);
1168 Constant *NewCV = ConstantVector::get(Elts);
1399 SmallVector<Constant*, 16> Elts; local
1402 Elts.push_back(UndefValue::get(Type::getInt32Ty(I->getContext())));
1404 Elts.push_back(ConstantInt::get(Type::getInt32Ty(I->getContext()),
1407 I->setOperand(2, ConstantVector::get(Elts));
H A DInstCombineVectorOps.cpp1916 SmallVector<Constant*, 16> Elts; local
1920 Elts.push_back(UndefValue::get(Int32Ty));
1922 Elts.push_back(ConstantInt::get(Int32Ty, Mask[i] % LHSWidth));
1926 SVI.setOperand(2, ConstantVector::get(Elts));
2227 SmallVector<Constant*, 16> Elts; local
2230 Elts.push_back(UndefValue::get(Int32Ty));
2232 Elts.push_back(ConstantInt::get(Int32Ty, newMask[i]));
2237 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts));
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp220 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]),
222 APValue::Arr::~Arr() { delete [] Elts; }
225 Elts(new APValue[NumBases+NumFields]),
228 delete [] Elts;
257 setVector(((const Vec *)(const char *)RHS.Data.buffer)->Elts,
H A DDeclObjC.cpp44 void ObjCListBase::set(void *const* InList, unsigned Elts, ASTContext &Ctx) { argument
46 if (Elts == 0) return; // Setting to an empty list is a noop.
48 List = new (Ctx) void*[Elts];
49 NumElts = Elts;
50 memcpy(List, InList, sizeof(void*)*Elts);
53 void ObjCProtocolList::set(ObjCProtocolDecl* const* InList, unsigned Elts, argument
55 if (Elts == 0)
58 Locations = new (Ctx) SourceLocation[Elts];
59 memcpy(Locations, Locs, sizeof(SourceLocation) * Elts);
60 set(InList, Elts, Ct
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/tools/bugpoint/
H A DExtractFunction.cpp235 Constant *Elts[] = {ConstantInt::get(Int32Ty, TorList[i].second), local
237 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp1365 SmallSetVector<Metadata *, 16> Elts; local
1368 Elts.insert(DstValue->op_begin(), DstValue->op_end());
1369 Elts.insert(SrcValue->op_begin(), SrcValue->op_end());
1372 makeArrayRef(Elts.begin(), Elts.end())));

Completed in 598 milliseconds

12