| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | CBufferDataLayout.cpp | 103 if (TypeSize ScalarSize = EltTy->getScalarType()->getPrimitiveSizeInBits()) in getStructLayout() local 104 Offset = alignTo(Offset, ScalarSize >> 3); in getStructLayout()
|
| H A D | DXILResourceAccess.cpp | 30 uint64_t ScalarSize = 1; in calculateGEPOffset() local 36 ScalarSize = DL.getTypeSizeInBits(ScalarType) / 8; in calculateGEPOffset() 41 APInt Scaled = ConstantOffset.udiv(ScalarSize); in calculateGEPOffset()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/ |
| H A D | LowLevelType.h | 129 static constexpr LLT scalarOrVector(ElementCount EC, uint64_t ScalarSize) { in scalarOrVector() argument 130 assert(ScalarSize <= std::numeric_limits<unsigned>::max() && in scalarOrVector() 132 return scalarOrVector(EC, LLT::scalar(static_cast<unsigned>(ScalarSize))); in scalarOrVector()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PostLegalizerLowering.cpp | 726 unsigned ScalarSize = ScalarTy.getSizeInBits(); in matchDupLane() local 731 if (ScalarSize == 64) in matchDupLane() 733 else if (ScalarSize == 32) in matchDupLane() 737 if (ScalarSize == 32) in matchDupLane() 739 else if (ScalarSize == 16) in matchDupLane() 743 if (ScalarSize == 8) in matchDupLane() 745 else if (ScalarSize == 16) in matchDupLane() 749 if (ScalarSize == 8) in matchDupLane()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ShuffleDecode.h | 114 void decodeVSHUF64x2FamilyMask(unsigned NumElts, unsigned ScalarSize,
|
| H A D | X86ShuffleDecode.cpp | 264 void decodeVSHUF64x2FamilyMask(unsigned NumElts, unsigned ScalarSize, in decodeVSHUF64x2FamilyMask() argument 267 unsigned NumElementsInLane = 128 / ScalarSize; in decodeVSHUF64x2FamilyMask()
|
| H A D | X86InstComments.cpp | 270 static unsigned getRegOperandNumElts(const MCInst *MI, unsigned ScalarSize, in getRegOperandNumElts() argument 273 return getVectorRegSize(OpReg) / ScalarSize; in getRegOperandNumElts()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 1204 unsigned ScalarSize = DL.getTypeSizeInBits(SrcTy->getElementType()); in getShuffleCost() local 1206 (ScalarSize == 16 || ScalarSize == 8)) { in getShuffleCost() 1212 unsigned EltsPerReg = 32 / ScalarSize; in getShuffleCost() 1221 if (ST->hasVOP3PInsts() && ScalarSize == 16 && NumVectorElts == 2) in getShuffleCost()
|
| H A D | AMDGPUCodeGenPrepare.cpp | 1652 unsigned ScalarSize = Ty->getScalarSizeInBits(); in visitBinaryOperator() local 1658 ScalarSize <= 64 && in visitBinaryOperator() 1673 if (ScalarSize <= 32) { in visitBinaryOperator() 1699 if (ScalarSize <= 32) in visitBinaryOperator()
|
| H A D | SIISelLowering.cpp | 12794 auto ScalarSize = Op.getScalarValueSizeInBits(); in calculateByteProvider() local 12795 if (ScalarSize < 32) in calculateByteProvider() 12796 Index = ScalarSize == 8 ? VecIdx : VecIdx * 2 + Index; in calculateByteProvider() 12797 return calculateSrcByte(ScalarSize >= 32 ? Op : Op.getOperand(0), in calculateByteProvider()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InterleavedAccess.cpp | 227 unsigned ScalarSize = VT.getVectorElementType().getScalarSizeInBits() * 2; in scaleVectorType() local 228 return MVT::getVectorVT(MVT::getIntegerVT(ScalarSize), in scaleVectorType()
|
| H A D | X86ISelLowering.cpp | 7462 unsigned ScalarSize = std::min(RepeatSize, 64u); in EltsFromConsecutiveLoads() local 7463 if (!Subtarget.hasAVX2() && ScalarSize < 32) in EltsFromConsecutiveLoads() 7468 if (RepeatSize > ScalarSize && SubElems == 1) in EltsFromConsecutiveLoads() 7491 ? EVT::getIntegerVT(*DAG.getContext(), ScalarSize) in EltsFromConsecutiveLoads() 7492 : EVT::getFloatingPointVT(ScalarSize); in EltsFromConsecutiveLoads() 7493 if (RepeatSize > ScalarSize) in EltsFromConsecutiveLoads() 7495 RepeatSize / ScalarSize); in EltsFromConsecutiveLoads() 7498 VT.getSizeInBits() / ScalarSize); in EltsFromConsecutiveLoads() 7503 if (RepeatSize > ScalarSize) { in EltsFromConsecutiveLoads() 7547 unsigned ScalarSize = VT.getScalarSizeInBits(); in getConstantVector() local [all …]
|
| H A D | X86TargetTransformInfo.cpp | 5685 unsigned ScalarSize = ValVTy->getScalarSizeInBits(); in getArithmeticReductionCost() local 5689 if (!isPowerOf2_32(NumVecElts) || ScalarSize != MTy.getScalarSizeInBits()) in getArithmeticReductionCost() 5709 unsigned Size = NumVecElts * ScalarSize; in getArithmeticReductionCost() 5879 unsigned ScalarSize = ValTy->getScalarSizeInBits(); in getMinMaxReductionCost() local 5884 ScalarSize != MTy.getScalarSizeInBits()) in getMinMaxReductionCost() 5891 unsigned Size = NumVecElts * ScalarSize; in getMinMaxReductionCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
| H A D | MIParser.cpp | 1936 auto ScalarSize = APSInt(Token.range().drop_front()).getZExtValue(); in parseLowLevelType() local 1937 if (ScalarSize) { in parseLowLevelType() 1938 if (!verifyScalarSize(ScalarSize)) in parseLowLevelType() 1940 Ty = LLT::scalar(ScalarSize); in parseLowLevelType() 1999 auto ScalarSize = APSInt(Token.range().drop_front()).getZExtValue(); in parseLowLevelType() local 2000 if (!verifyScalarSize(ScalarSize)) in parseLowLevelType() 2002 Ty = LLT::scalar(ScalarSize); in parseLowLevelType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 191 uint64_t ScalarSize = ScalarTy->getPrimitiveSizeInBits(); in canWidenLoad() local 193 if (!ScalarSize || !MinVectorSize || MinVectorSize % ScalarSize != 0 || in canWidenLoad() 194 ScalarSize % 8 != 0) in canWidenLoad() 219 uint64_t ScalarSize = ScalarTy->getPrimitiveSizeInBits(); in vectorizeLoadInsert() local 229 unsigned MinVecNumElts = MinVectorSize / ScalarSize; in vectorizeLoadInsert() 250 uint64_t ScalarSizeInBytes = ScalarSize / 8; in vectorizeLoadInsert()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 1543 const unsigned ScalarSize = MRI.getType(Def).getScalarSizeInBits(); in isConstantOrConstantSplatVector() local 1544 return APInt(ScalarSize, *MaybeCst, true); in isConstantOrConstantSplatVector()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 3429 unsigned ScalarSize = Op.getOperand(0).getScalarValueSizeInBits(); in computeKnownBits() local 3430 assert(ScalarSize * Op.getNumOperands() == BitWidth && in computeKnownBits() 3433 Known.insertBits(computeKnownBits(SrcOp, Depth + 1), ScalarSize * I); in computeKnownBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 16359 int ScalarSize, uint64_t ShuffleEltWidth, unsigned &NumValidElts, in generateSToVPermutedForVecShuffle() argument 16364 NumValidElts = ScalarSize / VecShuffOperandType.getScalarSizeInBits(); in generateSToVPermutedForVecShuffle() 16376 LastElt = (uint64_t)ScalarSize > ShuffleEltWidth in generateSToVPermutedForVecShuffle() 16377 ? ScalarSize / ShuffleEltWidth - 1 + FirstElt in generateSToVPermutedForVecShuffle()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 20513 unsigned ScalarSize = Scalar.getValueSizeInBits(); in PerformDAGCombine() local 20515 if (ScalarSize > EltWidth && Passthru.isUndef()) in PerformDAGCombine() 20557 unsigned ScalarSize = Scalar.getValueSizeInBits(); in PerformDAGCombine() local 20559 if (ScalarSize > EltWidth && SimplifyDemandedLowBitsHelper(1, EltWidth)) in PerformDAGCombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 30240 unsigned ScalarSize = Op.getScalarValueSizeInBits(); in SimplifyDemandedBitsForTargetNode() local 30241 assert(ScalarSize > ShiftLBits && "Invalid shift imm"); in SimplifyDemandedBitsForTargetNode() 30243 APInt ZeroBits = APInt::getLowBitsSet(ScalarSize, ShiftLBits); in SimplifyDemandedBitsForTargetNode()
|