/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | TypeSize.h | 48 using ScalarTy = typename LinearPolyBaseTypeTraits<LeafTy>::ScalarTy; 95 template <typename U = ScalarTy> 126 using ScalarTy = int64_t; 136 StackOffset(ScalarTy Fixed, ScalarTy Scalable) 145 static StackOffset get(ScalarTy Fixed, ScalarTy Scalable) { 167 using ScalarTy = typename LinearPolyBaseTypeTraits<LeafTy>::ScalarTy; 272 using ScalarTy = typename UnivariateLinearPolyBase<LeafTy>::ScalarTy; 382 using ScalarTy = unsigned; 407 using ScalarTy = uint64_t; 453 operator ScalarTy() const; [all …]
|
H A D | LowLevelTypeImpl.h | 66 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() argument 68 assert(!ScalarTy.isVector() && "invalid vector element type"); in vector() 69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector() 70 ScalarTy.getSizeInBits(), in vector() 71 ScalarTy.isPointer() ? ScalarTy.getAddressSpace() : 0}; in vector() 74 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() argument 75 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy); in scalarOrVector()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 81 bool isLegalElementTypeForRVV(Type *ScalarTy) const { in isLegalElementTypeForRVV() argument 82 if (ScalarTy->isPointerTy()) in isLegalElementTypeForRVV() 85 if (ScalarTy->isIntegerTy(8) || ScalarTy->isIntegerTy(16) || in isLegalElementTypeForRVV() 86 ScalarTy->isIntegerTy(32) || ScalarTy->isIntegerTy(64)) in isLegalElementTypeForRVV() 89 if (ScalarTy->isHalfTy()) in isLegalElementTypeForRVV() 91 if (ScalarTy->isFloatTy()) in isLegalElementTypeForRVV() 93 if (ScalarTy->isDoubleTy()) in isLegalElementTypeForRVV()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | LowLevelType.cpp | 24 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() local 26 return ScalarTy; in getLLTForType() 27 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 138 Type *ScalarTy = Scalar->getType(); in vectorizeLoadInsert() local 139 uint64_t ScalarSize = ScalarTy->getPrimitiveSizeInBits(); in vectorizeLoadInsert() 150 auto *MinVecTy = VectorType::get(ScalarTy, MinVecNumElts, false); in vectorizeLoadInsert() 290 Type *ScalarTy = Ext0->getType(); in isExtractExtractCheap() local 297 ScalarOpCost = TTI.getArithmeticInstrCost(Opcode, ScalarTy); in isExtractExtractCheap() 302 ScalarOpCost = TTI.getCmpSelInstrCost(Opcode, ScalarTy, in isExtractExtractCheap() 612 Type *ScalarTy = IsConst0 ? V1->getType() : V0->getType(); in scalarizeBinopOrCmp() local 616 (ScalarTy->isIntegerTy() || ScalarTy->isFloatingPointTy() || in scalarizeBinopOrCmp() 617 ScalarTy->isPointerTy()) && in scalarizeBinopOrCmp() 623 ScalarOpCost = TTI.getCmpSelInstrCost(Opcode, ScalarTy); in scalarizeBinopOrCmp() [all …]
|
H A D | SLPVectorizer.cpp | 2930 Type *ScalarTy = VL0->getType(); in buildTree_rec() local 2932 if (DL->getTypeSizeInBits(ScalarTy) != in buildTree_rec() 3204 if (DL->getTypeSizeInBits(ScalarTy) != in buildTree_rec() 3596 Type *ScalarTy = VL[0]->getType(); in getEntryCost() local 3600 ScalarTy = CI->getOperand(0)->getType(); in getEntryCost() 3602 ScalarTy = IE->getOperand(1)->getType(); in getEntryCost() 4350 auto *ScalarTy = II->getType(); in getSpillCost() local 4605 Type *ScalarTy = VL[0]->getType(); in getGatherCost() local 4896 Type *ScalarTy = VL0->getType(); in vectorizeTree() local 4900 ScalarTy = IE->getOperand(1)->getType(); in vectorizeTree() [all …]
|
H A D | LoopVectorize.cpp | 2694 Type *ScalarTy = getMemInstValueType(Instr); in vectorizeInterleaveGroup() local 2697 auto *VecTy = VectorType::get(ScalarTy, VF * InterleaveFactor); in vectorizeInterleaveGroup() 2802 if (Member->getType() != ScalarTy) { in vectorizeInterleaveGroup() 2819 auto *SubVT = VectorType::get(ScalarTy, VF); in vectorizeInterleaveGroup() 3852 for (Type *ScalarTy : ScalarTys) in getVectorCallCost() 3853 Tys.push_back(ToVectorTy(ScalarTy, VF)); in getVectorCallCost() 5369 auto *ScalarTy = getMemInstValueType(I); in interleavedAccessCanBeWidened() local 5370 if (hasIrregularType(ScalarTy, DL)) in interleavedAccessCanBeWidened() 5416 auto *ScalarTy = LI ? LI->getType() : SI->getValueOperand()->getType(); in memoryInstructionCanBeWidened() local 5417 if (hasIrregularType(ScalarTy, DL)) in memoryInstructionCanBeWidened() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
H A D | Type.h | 430 template <typename ScalarTy> static Type *getScalarTy(LLVMContext &C) { in getScalarTy() 431 int noOfBits = sizeof(ScalarTy) * CHAR_BIT; in getScalarTy() 432 if (std::is_integral<ScalarTy>::value) { in getScalarTy() 434 } else if (std::is_floating_point<ScalarTy>::value) { in getScalarTy()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | TypeSize.cpp | 33 TypeSize::operator TypeSize::ScalarTy() const { in operator TypeSize::ScalarTy()
|
/netbsd/external/apache2/llvm/dist/clang/lib/AST/ |
H A D | PrintfFormatString.cpp | 674 ArgType ScalarTy = getScalarArgType(Ctx, IsObjCLiteral); in getArgType() local 675 if (!ScalarTy.isValid() || VectorNumElts.isInvalid()) in getArgType() 676 return ScalarTy; in getArgType() 678 return ScalarTy.makeVectorType(Ctx, VectorNumElts.getConstantAmount()); in getArgType()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 4484 if (ScalarTy->isPointerTy()) in isLegalMaskedLoad() 4487 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedLoad() 4490 if (!ScalarTy->isIntegerTy()) in isLegalMaskedLoad() 4550 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedExpandLoad() 4553 if (!ScalarTy->isIntegerTy()) in isLegalMaskedExpandLoad() 4590 if (ScalarTy->isPointerTy()) in isLegalMaskedGather() 4593 if (ScalarTy->isFloatTy() || ScalarTy->isDoubleTy()) in isLegalMaskedGather() 4596 if (!ScalarTy->isIntegerTy()) in isLegalMaskedGather() 4737 if (!ScalarTy->isIntegerTy()) in getInterleavedMemoryOpCostAVX2() 4738 ScalarTy = in getInterleavedMemoryOpCostAVX2() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerLowering.cpp | 461 auto ScalarTy = MRI.getType(Dst).getElementType(); in applyINS() local 466 auto Extract = Builder.buildExtractVectorElement(ScalarTy, SrcVec, SrcCst); in applyINS() 662 LLT ScalarTy = SrcTy.getElementType(); in matchDupLane() local 663 unsigned ScalarSize = ScalarTy.getSizeInBits(); in matchDupLane()
|
H A D | AArch64RegisterBankInfo.cpp | 689 LLT ScalarTy = MRI.getType(ScalarReg); in getInstrMapping() local 692 if (ScalarTy.getSizeInBits() != 8 && in getInstrMapping()
|
H A D | AArch64InstructionSelector.cpp | 263 const RegisterBank &DstRB, LLT ScalarTy, 3751 Optional<Register> DstReg, const RegisterBank &DstRB, LLT ScalarTy, in emitExtractVectorElt() argument 3756 if (!getLaneCopyOpcode(CopyOpc, ExtractSubReg, ScalarTy.getSizeInBits())) { in emitExtractVectorElt() 3763 getRegClassForTypeOnBank(ScalarTy, DstRB, RBI, true); in emitExtractVectorElt() 4347 const LLT ScalarTy = LLT::scalar(Op1Ty.getSizeInBits()); in emitVectorConcat() local 4353 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op1, MIRBuilder); in emitVectorConcat() 4355 emitScalarToVector(ScalarTy.getSizeInBits(), DstRC, Op2, MIRBuilder); in emitVectorConcat() 4364 getInsertVecEltOpInfo(FPRBank, ScalarTy.getSizeInBits()); in emitVectorConcat()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonVectorCombine.cpp | 1188 Type *ScalarTy = Val->getType()->getScalarType(); in vlsb() local 1189 if (ScalarTy == getBoolTy()) in vlsb() 1203 Type *ScalarTy = Val->getType()->getScalarType(); in vbytes() local 1204 if (ScalarTy == getByteTy()) in vbytes() 1207 if (ScalarTy != getBoolTy()) in vbytes()
|
H A D | HexagonISelLowering.cpp | 2563 MVT ScalarTy = tyScalar(VecTy); in extractVector() local 2564 VecV = DAG.getBitcast(ScalarTy, VecV); in extractVector() 2581 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2589 ExtV = DAG.getNode(HexagonISD::EXTRACTU, dl, ScalarTy, in extractVector() 2637 MVT ScalarTy = MVT::getIntegerVT(VecWidth); in insertVector() local 2642 VecV = DAG.getBitcast(ScalarTy, VecV); in insertVector() 2644 ValV = DAG.getAnyExtOrTrunc(ValV, dl, ScalarTy); in insertVector() 2652 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector() 2658 InsV = DAG.getNode(HexagonISD::INSERT, dl, ScalarTy, in insertVector()
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | BasicTTIImpl.h | 2005 Type *ScalarTy = Ty->getElementType(); in getArithmeticReductionCost() local 2008 ScalarTy == IntegerType::getInt1Ty(Ty->getContext()) && in getArithmeticReductionCost() 2033 VectorType *SubTy = FixedVectorType::get(ScalarTy, NumVecElts); in getArithmeticReductionCost() 2068 Type *ScalarTy = Ty->getElementType(); in getMinMaxReductionCost() local 2089 auto *SubTy = FixedVectorType::get(ScalarTy, NumVecElts); in getMinMaxReductionCost()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 1165 Type *ScalarTy = SrcTy->getScalarType(); in computeKnownBitsFromOperator() local 1166 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator() 1167 Q.DL.getPointerTypeSizeInBits(ScalarTy) : in computeKnownBitsFromOperator() 1168 Q.DL.getTypeSizeInBits(ScalarTy); in computeKnownBitsFromOperator() 1826 Type *ScalarTy = Ty->getScalarType(); in computeKnownBits() local 1827 if (ScalarTy->isPointerTy()) { in computeKnownBits() 1831 assert(BitWidth == Q.DL.getTypeSizeInBits(ScalarTy) && in computeKnownBits() 2875 Type *ScalarTy = Ty->getScalarType(); in ComputeNumSignBitsImpl() local 2876 unsigned TyBits = ScalarTy->isPointerTy() ? in ComputeNumSignBitsImpl() 2877 Q.DL.getPointerTypeSizeInBits(ScalarTy) : in ComputeNumSignBitsImpl() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
H A D | CombinerHelper.cpp | 3785 LLT ScalarTy = MRI.getType(BuildVecMI->getOperand(1).getReg()); in matchExtractVecEltBuildVec() local 3787 {TargetOpcode::G_BUILD_VECTOR_TRUNC, {SrcTy, ScalarTy}})) in matchExtractVecEltBuildVec() 3804 LLT ScalarTy = MRI.getType(Reg); in applyExtractVecEltBuildVec() local 3809 if (ScalarTy != DstTy) { in applyExtractVecEltBuildVec() 3810 assert(ScalarTy.getSizeInBits() > DstTy.getSizeInBits()); in applyExtractVecEltBuildVec()
|
/netbsd/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | Sema.cpp | 634 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { in ScalarTypeToBooleanCastKind() argument 635 switch (ScalarTy->getScalarTypeKind()) { in ScalarTypeToBooleanCastKind()
|
H A D | SemaExpr.cpp | 9881 QualType ScalarTy = Scalar->get()->getType().getUnqualifiedType(); in tryGCCVectorConvertAndSplat() local 9892 if (!VectorEltTy->isArithmeticType() || !ScalarTy->isArithmeticType()) in tryGCCVectorConvertAndSplat() 9907 ScalarTy->isIntegralType(S.Context) && in tryGCCVectorConvertAndSplat() 9908 S.Context.getIntegerTypeOrder(VectorEltTy, ScalarTy)) { in tryGCCVectorConvertAndSplat() 9915 ScalarTy->isRealFloatingType()) { in tryGCCVectorConvertAndSplat() 9916 if (S.Context.getTypeSize(VectorEltTy) == S.Context.getTypeSize(ScalarTy)) in tryGCCVectorConvertAndSplat() 9921 if (ScalarTy->isRealFloatingType()) { in tryGCCVectorConvertAndSplat() 9933 int Order = S.Context.getFloatingTypeOrder(VectorEltTy, ScalarTy); in tryGCCVectorConvertAndSplat() 9948 } else if (ScalarTy->isIntegralType(S.Context)) { in tryGCCVectorConvertAndSplat() 9955 } else if (ScalarTy->isEnumeralType()) in tryGCCVectorConvertAndSplat()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 2798 Type *ScalarTy = AllocaTy->getScalarType(); in visitMemSetInst() local 2813 DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy).getFixedSize()); in visitMemSetInst() 2839 assert(ElementTy == ScalarTy); in visitMemSetInst() 2883 DL.getTypeSizeInBits(ScalarTy).getFixedSize() / 8); in visitMemSetInst()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 1361 Type *ScalarTy = ScalarSrc->getType(); in visitInsertElementInst() local 1362 Type *VecTy = VectorType::get(ScalarTy, IE.getType()->getElementCount()); in visitInsertElementInst()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 3942 EVT ScalarTy = Scalar.getValueType(); in LowerINTRINSIC_WO_CHAIN() local 3943 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16)) in LowerINTRINSIC_WO_CHAIN() 13670 EVT ScalarTy = Op2.getValueType(); in LowerSVEIntrinsicIndex() local 13671 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16)) in LowerSVEIntrinsicIndex() 13672 ScalarTy = MVT::i32; in LowerSVEIntrinsicIndex() 13675 SDValue One = DAG.getConstant(1, DL, ScalarTy); in LowerSVEIntrinsicIndex() 13687 EVT ScalarTy = Scalar.getValueType(); in LowerSVEIntrinsicDUP() local 13689 if ((ScalarTy == MVT::i8) || (ScalarTy == MVT::i16)) in LowerSVEIntrinsicDUP()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Constants.cpp | 389 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() local 395 if (PointerType *PTy = dyn_cast<PointerType>(ScalarTy)) in getIntegerValue()
|