| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Descriptor.cpp | 76 const unsigned ElemSize = in ctorArrayDesc() local 80 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc() 101 const unsigned ElemSize = in dtorArrayDesc() local 105 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc() 117 const unsigned ElemSize = in moveArrayDesc() local 121 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc() 232 : Source(D), ElemSize(primSize(Type)), Size(ElemSize), in Descriptor() 244 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor() 269 Size(ElemSize * NumElems), MDSize(MD.value_or(0)), in Descriptor() 292 Size(ElemSize), MDSize(MD.value_or(0)), AllocSize(Size + MDSize), in Descriptor() [all …]
|
| H A D | Program.cpp | 332 unsigned ElemSize = primSize(*T); in createDescriptor() local 333 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor() 345 unsigned ElemSize = in createDescriptor() local 347 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor()
|
| H A D | Descriptor.h | 84 const unsigned ElemSize; member 175 unsigned getElemSize() const { return ElemSize; } in getElemSize()
|
| H A D | Pointer.h | 359 if (auto ElemSize = elemSize()) in getIndex() local 360 return getOffset() / ElemSize; in getIndex()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LoopCacheAnalysis.cpp | 81 static bool isOneDimensionalArray(const SCEV &AccessFn, const SCEV &ElemSize, in isOneDimensionalArray() argument 103 return StepRec == &ElemSize; in isOneDimensionalArray() 109 static const SCEV *computeTripCount(const Loop &L, const SCEV &ElemSize, in computeTripCount() argument 120 TripCount = SE.getConstant(ElemSize.getType(), DefaultTripCount); in computeTripCount() 372 const SCEV *ElemSize = SE.getElementSize(&StoreOrLoadInst); in delinearize() local 392 Sizes.push_back(ElemSize); in delinearize() 411 if (!isOneDimensionalArray(*AccessFn, *ElemSize, *L, SE)) { in delinearize() 432 const SCEV *Div = SE.getUDivExactExpr(AccessFn, ElemSize); in delinearize() 434 Sizes.push_back(ElemSize); in delinearize() 476 const SCEV *ElemSize = Sizes.back(); in isConsecutive() local [all …]
|
| H A D | TypeMetadataUtils.cpp | 154 uint64_t ElemSize = DL.getTypeAllocSize(VTableTy->getElementType()); in getPointerAtOffset() local 156 unsigned Op = Offset / ElemSize; in getPointerAtOffset() 161 Offset % ElemSize, M, TopLevelGlobal); in getPointerAtOffset()
|
| H A D | LoopUnrollAnalyzer.cpp | 127 unsigned ElemSize = CDS->getElementType()->getPrimitiveSizeInBits() / 8U; in visitLoad() local 136 uint64_t Index = static_cast<uint64_t>(SimplifiedAddrOpV) / ElemSize; in visitLoad()
|
| H A D | MemoryBuiltins.cpp | 781 TypeSize ElemSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst() local 782 if (ElemSize.isScalable() && Options.EvalMode != ObjectSizeOpts::Mode::Min) in visitAllocaInst() 784 APInt Size(IntTyBits, ElemSize.getKnownMinValue()); in visitAllocaInst()
|
| H A D | LoopAccessAnalysis.cpp | 2748 TypeSize ElemSize = GEPTI.isStruct() in getGEPInductionOperand() local 2751 if (ElemSize != GEPAllocSize) in getGEPInductionOperand()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundCheckerV2.cpp | 272 if (int64_t ElemSize = ACtx.getTypeSizeInChars(ElemType).getQuantity()) { in getExceedsMsgs() local 273 const bool OffsetHasRemainder = OffsetN && *OffsetN % ElemSize; in getExceedsMsgs() 274 const bool ExtentHasRemainder = ExtentN && *ExtentN % ElemSize; in getExceedsMsgs() 278 *OffsetN /= ElemSize; in getExceedsMsgs() 280 *ExtentN /= ElemSize; in getExceedsMsgs()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 947 static APInt getElementIndex(TypeSize ElemSize, APInt &Offset) { in getElementIndex() argument 952 if (ElemSize.isScalable() || ElemSize == 0 || in getElementIndex() 953 !isUIntN(BitWidth - 1, ElemSize)) { in getElementIndex() 957 APInt Index = Offset.sdiv(ElemSize); in getElementIndex() 958 Offset -= Index * ElemSize; in getElementIndex() 962 Offset += ElemSize; in getElementIndex()
|
| H A D | Attributes.cpp | 467 unsigned ElemSize; in getAsString() local 469 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString() 472 ? "allocsize(" + Twine(ElemSize) + "," + Twine(*NumElems) + ")" in getAsString() 473 : "allocsize(" + Twine(ElemSize) + ")") in getAsString() 1809 AttrBuilder::addAllocSizeAttr(unsigned ElemSize, in addAllocSizeAttr() argument 1811 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 82 bool isLegalTypeAndAlignment(unsigned NumElements, unsigned ElemSize, 172 unsigned ElemSize, in isLegalTypeAndAlignment() argument 175 (ElemSize == 32 || ElemSize == 16 || ElemSize == 8)) || in isLegalTypeAndAlignment() 176 (NumElements == 8 && (ElemSize == 16 || ElemSize == 8)) || in isLegalTypeAndAlignment() 177 (NumElements == 16 && ElemSize == 8)) && in isLegalTypeAndAlignment() 178 Alignment >= ElemSize / 8) in isLegalTypeAndAlignment()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 333 CharUnits ElemSize = getSize(ElemTy); in split() local 357 CharUnits ElemSize = getSize(CDS->getElementType()); in split() local 366 [&](unsigned Elem) { return Offset + Elem * ElemSize; })); in split() 372 CharUnits ElemSize = getSize(C); in split() local 373 assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split"); in split() 375 {getZeroes(Hint - Offset), getZeroes(Offset + ElemSize - Hint)}); in split() 419 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom() local 428 Offset(I) % ElemSize != 0) { in buildFrom() 432 ArrayElements.resize(Offset(I) / ElemSize + 1, Filler); in buildFrom() 646 CharUnits ElemSize = Emitter.CGM.getContext().getTypeSizeInChars(ElemType); in EmitDesignatedInitUpdater() local [all …]
|
| H A D | CGOpenMPRuntime.cpp | 6681 llvm::Value *ElemSize; in getExprTypeSize() local 6683 ElemSize = CGF.getTypeSize(PTy->getPointeeType().getCanonicalType()); in getExprTypeSize() 6687 ElemSize = CGF.getTypeSize(ATy->getElementType().getCanonicalType()); in getExprTypeSize() 6693 return ElemSize; in getExprTypeSize() 6700 return CGF.Builder.CreateNUWMul(LengthVal, ElemSize); in getExprTypeSize() 6710 LBVal = CGF.Builder.CreateNUWMul(LBVal, ElemSize); in getExprTypeSize()
|
| H A D | CGExprScalar.cpp | 2978 llvm::Value* ElemSize = llvm::ConstantInt::get(ResultType, in VisitOffsetOfExpr() local 2982 Offset = Builder.CreateMul(Idx, ElemSize); in VisitOffsetOfExpr()
|
| H A D | CGBuiltin.cpp | 1018 llvm::Constant *ElemSize = in emitFlexibleArrayMemberSize() local 1021 Builder.CreateMul(CountedByInst, ElemSize, "", !IsSigned, IsSigned); in emitFlexibleArrayMemberSize()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 761 unsigned ElemSize = ElemTy.getSizeInBits() / 8; in getByteShuffle() local 766 for (unsigned I = 0; I != ElemSize; ++I) in getByteShuffle() 769 int NewM = M*ElemSize; in getByteShuffle() 770 for (unsigned I = 0; I != ElemSize; ++I) in getByteShuffle() 789 unsigned ElemSize = ElemWidth / 8; in buildHvxVectorReg() local 790 assert(ElemSize*VecLen == HwLen); in buildHvxVectorReg() 796 assert((ElemSize == 1 || ElemSize == 2) && "Invalid element size"); in buildHvxVectorReg() 797 unsigned OpsPerWord = (ElemSize == 1) ? 4 : 2; in buildHvxVectorReg() 2054 unsigned ElemSize = HwLen / VecLen; in LowerHvxSelect() local 2056 MVT VecTy = MVT::getVectorVT(MVT::getIntegerVT(ElemSize * 8), VecLen); in LowerHvxSelect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.h | 789 uint64_t ElemSize) const override { in isLegalScaleForGatherScatter() argument
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | RegionStore.cpp | 1173 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster() local 1185 uint64_t UpperOffset = LowerOffset + *NumElements * ElemSize; in VisitCluster()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | TargetLowering.h | 1519 uint64_t ElemSize) const { in isLegalScaleForGatherScatter() argument 1522 if (Scale != ElemSize && Scale != 1) in isLegalScaleForGatherScatter()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 5194 unsigned ElemSize = S.Context.getTypeSize(Info.ElementType); in CheckInvalidVLENandLMUL() local 5197 unsigned EGS = EGW / ElemSize; in CheckInvalidVLENandLMUL() 5433 uint64_t ElemSize = Context.getTypeSize(Info.ElementType); in CheckRISCVBuiltinFunctionCall() local 5434 if (ElemSize == 64 && !TI.hasFeature("zvknhb")) in CheckRISCVBuiltinFunctionCall() 5439 return CheckInvalidVLENandLMUL(TI, TheCall, *this, Op1Type, ElemSize * 4) || in CheckRISCVBuiltinFunctionCall() 5440 CheckInvalidVLENandLMUL(TI, TheCall, *this, Op2Type, ElemSize * 4) || in CheckRISCVBuiltinFunctionCall() 5441 CheckInvalidVLENandLMUL(TI, TheCall, *this, Op3Type, ElemSize * 4); in CheckRISCVBuiltinFunctionCall()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 6790 CharUnits ElemSize; in HandleOperatorNewCall() local 6791 if (!HandleSizeof(Info, E->getExprLoc(), ElemType, ElemSize)) in HandleOperatorNewCall() 6794 APInt ElemSizeAP(ByteSize.getBitWidth(), ElemSize.getQuantity()); in HandleOperatorNewCall() 13669 APSInt ElemSize(llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), in VisitBinaryOperator() local 13671 APSInt TrueResult = (LHS - RHS) / ElemSize; in VisitBinaryOperator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 4617 uint64_t ElemSize) { in getUniformBase() argument 4660 !TLI.isLegalScaleForGatherScatter(ScaleVal.getFixedValue(), ElemSize)) in getUniformBase()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 14554 unsigned ElemSize = N->getValueType(0).getScalarType().getStoreSize(); in combineBVOfConsecutiveLoads() local 14595 if (!DAG.areNonVolatileConsecutiveLoads(LD2, LD1, ElemSize, 1)) in combineBVOfConsecutiveLoads() 14597 if (!DAG.areNonVolatileConsecutiveLoads(LD1, LD2, ElemSize, 1)) in combineBVOfConsecutiveLoads()
|