/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | SmallVector.h | 188 bool isSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in isSafeToReferenceAfterResize() argument 190 if (LLVM_LIKELY(!isReferenceToStorage(Elt))) in isSafeToReferenceAfterResize() 195 return Elt < this->begin() + NewSize; in isSafeToReferenceAfterResize() 202 void assertSafeToReferenceAfterResize(const void *Elt, size_t NewSize) { in assertSafeToReferenceAfterResize() argument 203 assert(isSafeToReferenceAfterResize(Elt, NewSize) && in assertSafeToReferenceAfterResize() 210 void assertSafeToAdd(const void *Elt, size_t N = 1) { 211 this->assertSafeToReferenceAfterResize(Elt, this->size() + N); 243 static const T *reserveForParamAndGetAddressImpl(U *This, const T &Elt, in reserveForParamAndGetAddressImpl() argument 247 return &Elt; in reserveForParamAndGetAddressImpl() 252 if (LLVM_UNLIKELY(This->isReferenceToStorage(&Elt))) { in reserveForParamAndGetAddressImpl() [all …]
|
H A D | TinyPtrVector.h | 310 iterator insert(iterator I, const EltTy &Elt) { in insert() argument 314 push_back(Elt); in insert() 321 Val = Elt; in insert() 326 return cast<VecTy *>(Val)->insert(I, Elt); in insert()
|
H A D | EquivalenceClasses.h | 79 ECValue(const ElemTy &Elt) in ECValue() argument 80 : Leader(this), Next((ECValue*)(intptr_t)1), Data(Elt) {} in ECValue()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ASTVector.h | 162 void push_back(const_reference Elt, const ASTContext &C) { in push_back() argument 165 new (End) T(Elt); in push_back() 202 void append(const ASTContext &C, size_type NumInputs, const T &Elt) { in append() argument 208 std::uninitialized_fill_n(this->end(), NumInputs, Elt); in append() 219 iterator insert(const ASTContext &C, iterator I, const T &Elt) { in insert() argument 221 push_back(Elt, C); in insert() 231 *I = Elt; in insert() 241 const T &Elt) { in insert() argument 246 append(C, NumToInsert, Elt); in insert() 267 std::fill_n(I, NumToInsert, Elt); in insert() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | HTMLLogger.cpp | 334 for (const auto &Elt : B.Elements) { in writeBlock() local 337 Elt.dumpToStream(DumpS); in writeBlock() 375 unsigned Elt = Missing; in writeCode() member 386 void assign(unsigned BB, unsigned Elt, unsigned RangeLen) { in writeCode() 396 Elts.push_back(Elt); in writeCode() 397 if (this->Elt == Missing || EltPriority > RangeLen) in writeCode() 398 this->Elt = Elt; in writeCode() 401 return std::tie(BB, Elt, Elts) == in writeCode() 402 std::tie(Other.BB, Other.Elt, Other.Elts); in writeCode() 409 for (unsigned Elt : Elts) in writeCode() local [all …]
|
H A D | TypeErasedDataflowAnalysis.cpp | 313 builtinTransferStatement(unsigned CurBlockID, const CFGStmt &Elt, in builtinTransferStatement() argument 316 const Stmt *S = Elt.getStmt(); in builtinTransferStatement() 324 builtinTransferInitializer(const CFGInitializer &Elt, in builtinTransferInitializer() argument 326 const CXXCtorInitializer *Init = Elt.getInitializer(); in builtinTransferInitializer() 379 static void builtinTransfer(unsigned CurBlockID, const CFGElement &Elt, in builtinTransfer() argument 382 switch (Elt.getKind()) { in builtinTransfer() 384 builtinTransferStatement(CurBlockID, Elt.castAs<CFGStmt>(), State, AC); in builtinTransfer() 387 builtinTransferInitializer(Elt.castAs<CFGInitializer>(), State); in builtinTransfer() 395 if (const ValueDecl *VD = Elt.castAs<CFGLifetimeEnds>().getVarDecl()) in builtinTransfer()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 410 Constant *Elt, in ConstantFoldInsertElementInstruction() argument 417 if (isa<ConstantAggregateZero>(Val) && Elt->isNullValue()) in ConstantFoldInsertElementInstruction() 440 Result.push_back(Elt); in ConstantFoldInsertElementInstruction() 460 if (all_of(Mask, [](int Elt) { return Elt == PoisonMaskElem; })) { in ConstantFoldShuffleVectorInstruction() argument 466 if (all_of(Mask, [](int Elt) { return Elt == 0; })) { in ConstantFoldShuffleVectorInstruction() argument 468 Constant *Elt = in ConstantFoldShuffleVectorInstruction() local 471 if (Elt->isNullValue()) { in ConstantFoldShuffleVectorInstruction() 475 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction() 488 int Elt = Mask[i]; in ConstantFoldShuffleVectorInstruction() local 489 if (Elt == -1) { in ConstantFoldShuffleVectorInstruction() [all …]
|
H A D | Constants.cpp | 153 Constant *Elt = getAggregateElement(I); in isNotOneValue() local 154 if (!Elt || !Elt->isNotOneValue()) in isNotOneValue() 198 Constant *Elt = getAggregateElement(I); in isNotMinSignedValue() local 199 if (!Elt || !Elt->isNotMinSignedValue()) in isNotMinSignedValue() 432 Constant *Constant::getAggregateElement(unsigned Elt) const { in getAggregateElement() 437 return Elt < CC->getNumOperands() ? CC->getOperand(Elt) : nullptr; in getAggregateElement() 440 return Elt < CAZ->getElementCount().getKnownMinValue() in getAggregateElement() 441 ? CAZ->getElementValue(Elt) in getAggregateElement() 449 return Elt < PV->getNumElements() ? PV->getElementValue(Elt) : nullptr; in getAggregateElement() 452 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCMachineFunctionInfo.cpp | 106 for (const auto &Elt : ParamtersType) { in getVecExtParmsType() local 107 switch (Elt) { in getVecExtParmsType() 148 for (const auto &Elt : ParamtersType) { in getParmsType() local 150 if (Bits > 31 || (Bits > 30 && (Elt != FixedType || hasVectorParms()))) in getParmsType() 153 switch (Elt) { in getParmsType()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SmallPtrSet.cpp | 110 const void *Elt = *BucketPtr; in Grow() local 111 if (Elt != getTombstoneMarker() && Elt != getEmptyMarker()) in Grow() 112 *const_cast<void**>(FindBucketFor(Elt)) = const_cast<void*>(Elt); in Grow()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
H A D | BumpVector.h | 168 void push_back(const_reference Elt, BumpVectorContext &C) { in push_back() argument 171 new (End) T(Elt); in push_back() 211 void construct_range(T *S, T *E, const T &Elt) { in construct_range() argument 213 new (S) T(Elt); in construct_range()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/ |
H A D | PointerTypeAnalysis.cpp | 147 const Constant *Elt = C->getAggregateElement(I); in classifyConstantWithOpaquePtr() local 148 Type *EltTy = classifyConstantWithOpaquePtr(Elt, Map); in classifyConstantWithOpaquePtr() 155 for (auto &Elt : CA->operands()) { in classifyConstantWithOpaquePtr() local 156 Type *EltTy = classifyConstantWithOpaquePtr(cast<Constant>(&Elt), Map); in classifyConstantWithOpaquePtr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FixupVectorConstants.cpp | 107 Constant *Elt = CV->getOperand(I); in extractConstantBits() local 108 std::optional<APInt> SubBits = extractConstantBits(Elt); in extractConstantBits() 171 if (Constant *Elt = CV->getAggregateElement(Idx)) { in getSplatableConstant() local 172 if (isa<UndefValue>(Elt)) in getSplatableConstant() 175 if (!Sequence[SplatIdx] || Sequence[SplatIdx] == Elt) { in getSplatableConstant() 176 Sequence[SplatIdx] = Elt; in getSplatableConstant() 308 APInt Elt = Bits->extractBits(DstEltBitWidth, I * DstEltBitWidth); in rebuildExtCst() local 309 if ((IsSExt && Elt.getSignificantBits() > SrcEltBitWidth) || in rebuildExtCst() 310 (!IsSExt && Elt.getActiveBits() > SrcEltBitWidth)) in rebuildExtCst() 312 TruncBits.insertBits(Elt.trunc(SrcEltBitWidth), I * SrcEltBitWidth); in rebuildExtCst()
|
H A D | X86ShuffleDecodeConstantPool.cpp | 72 auto *Elt = cast<ConstantInt>(COp); in extractConstantMask() local 73 RawMask[i] = Elt->getValue().getZExtValue(); in extractConstantMask()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | CXXPredicates.cpp | 22 [&](auto &Elt) { return Elt.second.get(); }); in getSorted() argument
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | TableGen.cpp | 60 for (Record *Elt : *Elts) in PrintSets() 61 OS << ' ' << Elt->getName(); in PrintSets()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constant.h | 146 Constant *getAggregateElement(unsigned Elt) const; 147 Constant *getAggregateElement(Constant *Elt) const;
|
H A D | Constants.h | 370 Constant *getStructElement(unsigned Elt) const; 527 static Constant *getSplat(ElementCount EC, Constant *Elt); 684 const char *getElementPointer(unsigned Elt) const; 816 static Constant *getSplat(unsigned NumElts, Constant *Elt); 1285 static Constant *getInsertElement(Constant *Vec, Constant *Elt, Constant *Idx, 1407 UndefValue *getStructElement(unsigned Elt) const; 1452 PoisonValue *getStructElement(unsigned Elt) const;
|
H A D | ConstantFold.h | 42 Constant *ConstantFoldInsertElementInstruction(Constant *Val, Constant *Elt,
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | OpDescriptor.cpp | 46 for (Constant *Elt : EleCs) { in makeConstantsWithType() 47 Cs.push_back(ConstantVector::getSplat(EC, Elt)); in makeConstantsWithType()
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
H A D | DataflowAnalysis.h | 355 &Diagnostics](const CFGElement &Elt, 358 Elt, ASTCtx, 369 &Diagnostics](const CFGElement &Elt, 372 Elt, ASTCtx,
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineOrder.cpp | 246 void push(const T &Elt) override { in push() argument 247 CallBase *CB = Elt.first; in push() 248 const int InlineHistoryID = Elt.second; in push()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUIGroupLP.cpp | 1865 for (auto &Elt : SyncPipe[0].DAG->SUnits) { in apply() local 1866 if (TII->isMFMAorWMMA(*Elt.getInstr())) { in apply() 1870 Cache->push_back(&Elt); in apply() 1877 for (auto &Elt : *Cache) { in apply() 1878 if (DAG->IsReachable(Elt, const_cast<SUnit *>(SU))) in apply() 1916 return llvm::any_of(*Cache, [&SU](SUnit *Elt) { in apply() argument 1917 return llvm::any_of(SU->Succs, [&Elt](const SDep &ThisSucc) { in apply() 1918 return ThisSucc.getSUnit() == Elt; in apply() 1946 OtherGroup->Collection.end(), [&SU](SUnit *Elt) { in apply() argument 1947 return std::any_of(Elt->Succs.begin(), in apply() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SpillPlacement.cpp | 182 for (const auto &Elt : Links) { in getDissentingNeighbors() local 183 unsigned n = Elt.second; in getDissentingNeighbors()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 140 Value *Elt = EI.getIndexOperand(); in scalarizePHI() local 149 ExtractElementInst::Create(B0->getOperand(opId), Elt, in scalarizePHI() 158 Instruction *newEI = ExtractElementInst::Create(PHIInVal, Elt, ""); in scalarizePHI() 231 if (Value *Elt = findScalarElement(X, ExtIndexC)) in foldBitcastExtElt() local 232 return new BitCastInst(Elt, DestTy); in foldBitcastExtElt() 928 std::optional<Instruction *> &Elt = AggElts[Indices.front()]; in foldAggregateConstructionIntoAggregateReuse() local 929 Elt = Elt.value_or(InsertedValue); in foldAggregateConstructionIntoAggregateReuse() 972 [&](Instruction *Elt, unsigned EltIdx, std::optional<BasicBlock *> UseBB, in foldAggregateConstructionIntoAggregateReuse() 976 Elt = dyn_cast<Instruction>(Elt->DoPHITranslation(*UseBB, *PredBB)); in foldAggregateConstructionIntoAggregateReuse() 980 auto *EVI = dyn_cast_or_null<ExtractValueInst>(Elt); in foldAggregateConstructionIntoAggregateReuse() [all …]
|