/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Descriptor.cpp | 87 const unsigned ElemSize = in ctorArrayDesc() local 91 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc() 112 const unsigned ElemSize = in dtorArrayDesc() local 116 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc() 128 const unsigned ElemSize = in moveArrayDesc() local 132 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc() 288 : Source(D), ElemSize(primSize(Type)), Size(ElemSize), in Descriptor() 301 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor() 308 assert(NumElems <= (MaxArrayElemBytes / ElemSize)); in Descriptor() 314 : Source(D), ElemSize(primSize(Type)), Size(UnknownSizeMark), in Descriptor() [all …]
|
H A D | Program.cpp | 383 unsigned ElemSize = primSize(*T); in createDescriptor() local 384 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor() 396 unsigned ElemSize = in createDescriptor() local 398 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor()
|
H A D | Descriptor.h | 112 const unsigned ElemSize; member 228 unsigned getElemSize() const { return ElemSize; } in getElemSize()
|
H A D | Pointer.h | 551 if (auto ElemSize = elemSize()) in getIndex() local 552 return getOffset() / ElemSize; in getIndex()
|
H A D | Interp.h | 223 unsigned ElemSize, bool IsNoThrow) { in CheckArraySize() argument 231 SizeT MaxElements = SizeT::from(Descriptor::MaxArrayElemBytes / ElemSize); in CheckArraySize()
|
/freebsd/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() 377 const SCEV *ElemSize = SE.getElementSize(&StoreOrLoadInst); in delinearize() local 397 Sizes.push_back(ElemSize); in delinearize() 416 if (!isOneDimensionalArray(*AccessFn, *ElemSize, *L, SE)) { in delinearize() 437 const SCEV *Div = SE.getUDivExactExpr(AccessFn, ElemSize); in delinearize() 439 Sizes.push_back(ElemSize); in delinearize() 481 const SCEV *ElemSize = Sizes.back(); in isConsecutive() local [all …]
|
H A D | TypeMetadataUtils.cpp | 168 uint64_t ElemSize = DL.getTypeAllocSize(VTableTy->getElementType()); in getPointerAtOffset() local 170 unsigned Op = Offset / ElemSize; in getPointerAtOffset() 175 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 | 2819 TypeSize ElemSize = GEPTI.isStruct() in getGEPInductionOperand() local 2822 if (ElemSize != GEPAllocSize) in getGEPInductionOperand()
|
/freebsd/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 | 563 unsigned ElemSize; in getAsString() local 565 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString() 568 ? "allocsize(" + Twine(ElemSize) + "," + Twine(*NumElems) + ")" in getAsString() 569 : "allocsize(" + Twine(ElemSize) + ")") in getAsString() 1946 AttrBuilder::addAllocSizeAttr(unsigned ElemSize, in addAllocSizeAttr() argument 1948 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
|
/freebsd/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/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaRISCV.cpp | 536 unsigned ElemSize = S.Context.getTypeSize(Info.ElementType); in CheckInvalidVLENandLMUL() local 539 unsigned EGS = EGW / ElemSize; in CheckInvalidVLENandLMUL() 726 uint64_t ElemSize = Context.getTypeSize(Info.ElementType); in CheckBuiltinFunctionCall() local 727 if (ElemSize == 64 && !TI.hasFeature("zvknhb")) in CheckBuiltinFunctionCall() 733 ElemSize * 4) || in CheckBuiltinFunctionCall() 735 ElemSize * 4) || in CheckBuiltinFunctionCall() 736 CheckInvalidVLENandLMUL(TI, TheCall, SemaRef, Op3Type, ElemSize * 4); in CheckBuiltinFunctionCall()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 334 CharUnits ElemSize = getSize(ElemTy); in split() local 338 [&](unsigned Op) { return Offset + Op * ElemSize; })); in split() 358 CharUnits ElemSize = getSize(CDS->getElementType()); in split() local 367 [&](unsigned Elem) { return Offset + Elem * ElemSize; })); in split() 373 CharUnits ElemSize = getSize(C); in split() local 374 assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split"); in split() 376 {getZeroes(Hint - Offset), getZeroes(Offset + ElemSize - Hint)}); in split() 420 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom() local 429 Offset(I) % ElemSize != 0) { in buildFrom() 433 ArrayElements.resize(Offset(I) / ElemSize + 1, Filler); in buildFrom() [all …]
|
H A D | CGOpenMPRuntime.cpp | 6696 llvm::Value *ElemSize; in getExprTypeSize() local 6698 ElemSize = CGF.getTypeSize(PTy->getPointeeType().getCanonicalType()); in getExprTypeSize() 6702 ElemSize = CGF.getTypeSize(ATy->getElementType().getCanonicalType()); in getExprTypeSize() 6708 return ElemSize; in getExprTypeSize() 6715 return CGF.Builder.CreateNUWMul(LengthVal, ElemSize); in getExprTypeSize() 6725 LBVal = CGF.Builder.CreateNUWMul(LBVal, ElemSize); in getExprTypeSize()
|
H A D | CGExprScalar.cpp | 3252 llvm::Value* ElemSize = llvm::ConstantInt::get(ResultType, in VisitOffsetOfExpr() local 3256 Offset = Builder.CreateMul(Idx, ElemSize); in VisitOffsetOfExpr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ArrayBoundCheckerV2.cpp | 417 int64_t ElemSize = ACtx.getTypeSizeInChars(ElemType).getQuantity(); in getExceedsMsgs() local 419 bool UseByteOffsets = !tryDividePair(OffsetN, ExtentN, ElemSize); in getExceedsMsgs()
|
H A D | CStringChecker.cpp | 486 NonLoc ElemSize = in checkInit() local 509 SVB.evalBinOpNN(State, clang::BO_Div, Size.castAs<NonLoc>(), ElemSize, in checkInit()
|
/freebsd/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 in LowerHvxSelect() 2055 unsigned ElemSize = HwLen / VecLen; LowerHvxSelect() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.h | 848 uint64_t ElemSize) const override { in isLegalScaleForGatherScatter() argument
|
/freebsd/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/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | TargetLowering.h | 1588 uint64_t ElemSize) const { in isLegalScaleForGatherScatter() argument 1591 if (Scale != ElemSize && Scale != 1) in isLegalScaleForGatherScatter()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 6851 CharUnits ElemSize; in HandleOperatorNewCall() local 6852 if (!HandleSizeof(Info, E->getExprLoc(), ElemType, ElemSize)) in HandleOperatorNewCall() 6855 APInt ElemSizeAP(ByteSize.getBitWidth(), ElemSize.getQuantity()); in HandleOperatorNewCall() 14036 APSInt ElemSize(llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), in VisitBinaryOperator() local 14038 APSInt TrueResult = (LHS - RHS) / ElemSize; in VisitBinaryOperator()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.cpp | 14767 unsigned ElemSize = N->getValueType(0).getScalarType().getStoreSize(); in combineBVOfConsecutiveLoads() local 14808 if (!DAG.areNonVolatileConsecutiveLoads(LD2, LD1, ElemSize, 1)) in combineBVOfConsecutiveLoads() 14810 if (!DAG.areNonVolatileConsecutiveLoads(LD1, LD2, ElemSize, 1)) in combineBVOfConsecutiveLoads()
|