Home
last modified time | relevance | path

Searched refs:TySize (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DMips.cpp24 void CoerceToIntArgs(uint64_t TySize,
26 llvm::Type* HandleAggregates(QualType Ty, uint64_t TySize) const;
128 uint64_t TySize, SmallVectorImpl<llvm::Type *> &ArgList) const { in CoerceToIntArgs() argument
133 for (unsigned N = TySize / (MinABIStackAlignInBytes * 8); N; --N) in CoerceToIntArgs()
137 unsigned R = TySize % (MinABIStackAlignInBytes * 8); in CoerceToIntArgs()
145 llvm::Type* MipsABIInfo::HandleAggregates(QualType Ty, uint64_t TySize) const { in HandleAggregates()
149 CoerceToIntArgs(TySize, ArgList); in HandleAggregates()
160 CoerceToIntArgs(TySize, ArgList); in HandleAggregates()
166 assert(!(TySize % 8) && "Size of structure must be multiple of 8."); in HandleAggregates()
195 CoerceToIntArgs(TySize - LastOffset, IntArgList); in HandleAggregates()
[all …]
H A DAVR.cpp59 unsigned TySize = getContext().getTypeSize(Ty); in classifyArgumentType() local
62 if (TySize == 8 && NumRegs >= 2 && Ty->isIntegralOrEnumerationType()) { in classifyArgumentType()
69 TySize = llvm::alignTo(TySize, 16); in classifyArgumentType()
73 if (TySize <= NumRegs * 8) { in classifyArgumentType()
74 NumRegs -= TySize / 8; in classifyArgumentType()
H A DAArch64.cpp910 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitAAPCSVAArg() local
916 int RegSize = IsIndirect ? 8 : TySize.getQuantity(); in EmitAAPCSVAArg()
1044 TySize < SlotSize) { in EmitAAPCSVAArg()
1045 CharUnits Offset = SlotSize - TySize; in EmitAAPCSVAArg()
1076 StackSize = TySize.alignTo(StackSlotSize); in EmitAAPCSVAArg()
1086 TySize < StackSlotSize) { in EmitAAPCSVAArg()
1087 CharUnits Offset = StackSlotSize - TySize; in EmitAAPCSVAArg()
H A DARM.cpp808 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitVAArg() local
815 if (TySize > CharUnits::fromQuantity(16) && isIllegalVectorType(Ty)) { in EmitVAArg()
820 } else if (TySize > CharUnits::fromQuantity(16) && in EmitVAArg()
841 TypeInfoChars TyInfo(TySize, TyAlignForABI, AlignRequirementKind::None); in EmitVAArg()
H A DLoongArch.cpp442 int TySize = getContext().getTypeSize(Ty); in extendType() local
444 if (GRLen == 64 && Ty->isUnsignedIntegerOrEnumerationType() && TySize == 32) in extendType()
H A DRISCV.cpp776 int TySize = getContext().getTypeSize(Ty); in extendType() local
778 if (XLen == 64 && Ty->isUnsignedIntegerOrEnumerationType() && TySize == 32) in extendType()
H A DX86.cpp2326 unsigned TySize = (unsigned)Context.getTypeSize(Ty); in BitsContainNoUserData() local
2327 if (TySize <= StartBit) in BitsContainNoUserData()
3155 uint64_t TySize = TInfo.Width.getQuantity(); in EmitVAArg() local
3183 if (CoTy && (AI.getDirectOffset() == 8 || RegSize < TySize)) { in EmitVAArg()
3204 CGF.Builder.CreateMemCpy(Tmp, RegAddr, TySize, false); in EmitVAArg()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp123 const unsigned TySize = Ty.getSizeInBits(); in getRegClassForTypeOnBank() local
126 assert((Ty.isScalar() || Ty.isPointer()) && TySize == 32 && in getRegClassForTypeOnBank()
133 assert((TySize == 32 || TySize == 64) && in getRegClassForTypeOnBank()
135 if (TySize == 32) in getRegClassForTypeOnBank()
186 const unsigned TySize = Ty.getSizeInBits(); in selectLoadStoreOpCode() local
193 assert(((Ty.isScalar() && TySize == 32) || in selectLoadStoreOpCode()
194 (Ty.isPointer() && TySize == 32 && MemSizeInBytes == 4)) && in selectLoadStoreOpCode()
196 (void)TySize; in selectLoadStoreOpCode()
224 assert(((TySize == 32 && MemSizeInBytes == 4) || in selectLoadStoreOpCode()
225 (TySize == 64 && MemSizeInBytes == 8)) && in selectLoadStoreOpCode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp145 uint64_t TySize = in set() local
148 TySize *= CUI->getZExtValue(); // Get total allocated size. in set()
149 if (TySize == 0) TySize = 1; // Don't create zero-sized stack objects. in set()
154 TySize, 0, /*IsImmutable=*/false, /*isAliased=*/true); in set()
157 FrameIndex = MF->getFrameInfo().CreateStackObject(TySize, Alignment, in set()
H A DSelectionDAGBuilder.cpp4523 TypeSize TySize = DL.getTypeAllocSize(Ty); in visitAlloca() local
4532 if (TySize.isScalable()) in visitAlloca()
4536 TySize.getKnownMinValue()))); in visitAlloca()
4539 DAG.getConstant(TySize.getFixedValue(), dl, MVT::getIntegerVT(64)); in visitAlloca()
9734 TypeSize TySize = DL.getTypeAllocSize(Ty); in getAddressForMemoryInput() local
9738 if (TySize.isScalable()) in getAddressForMemoryInput()
9740 int SSFI = MF.getFrameInfo().CreateStackObject(TySize.getKnownMinValue(), in getAddressForMemoryInput()
10999 uint64_t TySize = DL.getTypeAllocSize(CLI.RetTy); in LowerCallTo() local
11003 MF.getFrameInfo().CreateStackObject(TySize, Alignment, false); in LowerCallTo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryOpRemark.cpp347 std::optional<TypeSize> TySize = AI->getAllocationSize(DL); in visitVariable() local
349 TySize ? std::optional(TySize->getFixedValue()) : std::nullopt; in visitVariable()
H A DEvaluator.cpp132 TypeSize TySize = DL.getTypeStoreSize(Ty); in read() local
138 !TypeSize::isKnownLE(TySize, DL.getTypeStoreSize(AggTy))) in read()
171 TypeSize TySize = DL.getTypeStoreSize(Ty); in write() local
182 !TypeSize::isKnownLE(TySize, DL.getTypeStoreSize(AggTy))) in write()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1470 unsigned TySize = DL.getTypeSizeInBits(Ty); in collectEquivalenceClasses() local
1471 if ((TySize % 8) != 0) in collectEquivalenceClasses()
1485 unsigned VF = VecRegSize / TySize; in collectEquivalenceClasses()
1494 if (TySize > VecRegSize / 2 || in collectEquivalenceClasses()
1495 (VecTy && TTI.getLoadVectorFactor(VF, TySize, TySize / 8, VecTy) == 0)) in collectEquivalenceClasses()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp517 TypeSize TySize = DL.getTypeStoreSize(Ty); in isSafeToLoadUnconditionally() local
518 if (TySize.isScalable()) in isSafeToLoadUnconditionally()
520 APInt Size(DL.getIndexTypeSizeInBits(V->getType()), TySize.getFixedValue()); in isSafeToLoadUnconditionally()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULateCodeGenPrepare.cpp453 unsigned TySize = DL.getTypeStoreSize(Ty); in canWidenScalarExtLoad() local
455 if (TySize >= 4) in canWidenScalarExtLoad()
H A DAMDGPUCodeGenPrepare.cpp464 int TySize = DL.getTypeSizeInBits(Ty); in canWidenScalarExtLoad() local
467 return I.isSimple() && TySize < 32 && Alignment >= 4 && UA.isUniform(&I); in canWidenScalarExtLoad()
1761 int TySize = DL.getTypeSizeInBits(I.getType()); in visitLoadInst() local
1762 Type *IntNTy = Builder.getIntNTy(TySize); in visitLoadInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp676 uint64_t TySize = DL.getTypeAllocSize(Ty); in moveDynamicAllocasToUnsafeStack() local
677 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp9652 unsigned TySize = Ty.getSizeInBytes(); in findGISelOptimalMemOpLowering() local
9653 while (TySize > Size) { in findGISelOptimalMemOpLowering()
9674 TySize = Size; in findGISelOptimalMemOpLowering()
9677 TySize = NewTySize; in findGISelOptimalMemOpLowering()
9685 Size -= TySize; in findGISelOptimalMemOpLowering()
9796 unsigned TySize = Ty.getSizeInBytes(); in lowerMemset() local
9797 if (TySize > Size) { in lowerMemset()
9801 DstOff -= TySize - Size; in lowerMemset()
9830 Size -= TySize; in lowerMemset()
H A DIRTranslator.cpp3109 Register TySize = in translateAlloca() local
3111 MIRBuilder.buildMul(AllocSize, NumElts, TySize); in translateAlloca()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp2122 unsigned TySize = Ty->getScalarSizeInBits(); in visitPtrToInt() local
2124 if (TySize != PtrSize) { in visitPtrToInt()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp263 size_t Stride, size_t TySize);
2705 size_t Stride, size_t TySize) { in SelectBaseMVE_VMLLDAV() argument
2706 assert(TySize < Stride && "Invalid TySize"); in SelectBaseMVE_VMLLDAV()
2732 uint16_t Opcode = Opcodes[TySize]; in SelectBaseMVE_VMLLDAV()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2702 for (unsigned TySize = 4; TySize > 0 && RealTySize > 0; TySize /= 2) { in emitInterWarpCopyFunction() local
2703 Type *CType = Builder.getIntNTy(TySize * 8); in emitInterWarpCopyFunction()
2705 unsigned NumIters = RealTySize / TySize; in emitInterWarpCopyFunction()
2843 RealTySize %= TySize; in emitInterWarpCopyFunction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp800 uint64_t TySize = CGM.getMinimumObjectSize(Ty).getQuantity(); in EmitTypeCheck() local
801 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize); in EmitTypeCheck()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp28296 const TypeSize &TySize = Ty->getPrimitiveSizeInBits(); in functionArgumentNeedsConsecutiveRegisters() local
28297 return TySize.isScalable() && TySize.getKnownMinValue() > 128; in functionArgumentNeedsConsecutiveRegisters()