/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor() 45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); in initializationPatternFor() 56 Ty->getScalarType()->getFltSemantics()); in initializationPatternFor()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Type.h | 216 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } 234 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } 239 return getScalarType()->isIntegerTy(BitWidth); in isIntOrIntVectorTy() 262 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } 348 inline Type *getScalarType() const { 349 inline Type *getScalarType() const { getScalarType() function
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILIntrinsicExpansion.cpp | 57 Type *EltTy = Ty->getScalarType(); in expandAbs() 108 Type *EltTy = Ty->getScalarType(); in expandExpIntrinsic() 130 Type *EltTy = Ty->getScalarType(); in expandAnyIntrinsic() 180 Type *EltTy = Ty->getScalarType(); in expandLogIntrinsic() 226 ElemTy = ElemTy->getScalarType(); in getMaxForClamp() 239 ElemTy = ElemTy->getScalarType(); in getMinForClamp()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 113 EltVT = EltVT.getScalarType(); in changeElementType() 313 EVT getScalarType() const { in getScalarType() function 371 return getScalarType().getSizeInBits().getFixedValue(); in getScalarSizeInBits() 388 return getScalarType().getStoreSize().getFixedValue(); in getScalarStoreSize()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 462 else if (Ty && (Ty->getScalarType()->isFloatTy() || in getRegisterClassForType() 463 Ty->getScalarType()->isDoubleTy())) in getRegisterClassForType() 465 else if (Ty && (Ty->getScalarType()->isFP128Ty() || in getRegisterClassForType() 466 Ty->getScalarType()->isPPC_FP128Ty())) in getRegisterClassForType() 468 else if (Ty && Ty->getScalarType()->isHalfTy()) in getRegisterClassForType() 693 if (ST->hasVSX() && Val->getScalarType()->isDoubleTy()) { in getVectorInstrCost() 701 } else if (Val->getScalarType()->isIntegerTy()) { in getVectorInstrCost() 822 *Alignment >= LT.second.getScalarType().getStoreSize()) in getMemoryOpCost() 1028 Type *ScalarTy = DataType->getScalarType(); in hasActiveVectorLength()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VectorUtils.cpp | 977 VecTy1->getScalarType() == VecTy2->getScalarType() && in concatenateTwoVectors() 1024 isa<IntegerType>(Mask->getType()->getScalarType()) && in maskIsAllZeroOrUndef() 1025 cast<IntegerType>(Mask->getType()->getScalarType())->getBitWidth() == in maskIsAllZeroOrUndef() 1050 isa<IntegerType>(Mask->getType()->getScalarType()) && in maskIsAllOneOrUndef() 1051 cast<IntegerType>(Mask->getType()->getScalarType())->getBitWidth() == in maskIsAllOneOrUndef() 1076 isa<IntegerType>(Mask->getType()->getScalarType()) && in maskContainsAllOneOrUndef() 1077 cast<IntegerType>(Mask->getType()->getScalarType())->getBitWidth() == in maskContainsAllOneOrUndef() 1103 isa<IntegerType>(Mask->getType()->getScalarType()) && in possiblyDemandedEltsInMask() 1104 cast<IntegerType>(Mask->getType()->getScalarType())->getBitWidth() == in possiblyDemandedEltsInMask()
|
H A D | FunctionPropertiesAnalysis.cpp | 156 if (Call->getType()->getScalarType()->isIntegerTy()) in updateForBB() 158 else if (Call->getType()->getScalarType()->isFloatingPointTy()) in updateForBB() 160 else if (Call->getType()->getScalarType()->isPointerTy()) in updateForBB()
|
H A D | Local.cpp | 69 Value *Scale = Builder->CreateTypeSize(IntIdxTy->getScalarType(), TSize); in emitGEPOffset()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 252 TempValues.push_back(getRandomConstant(VTp->getScalarType())); in getRandomValue() 386 bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act() 528 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act() 562 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 563 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act() 648 bool fp = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoadStoreVectorizer.cpp | 656 return getLoadStoreType(E.Inst)->getScalarType()->isPointerTy(); in getChainElemTy() 660 DL.getTypeSizeInBits(getLoadStoreType(C[0].Inst)->getScalarType())); in getChainElemTy() 664 if (Type *T = getLoadStoreType(E.Inst)->getScalarType(); T->isIntegerTy()) in getChainElemTy() 666 return getLoadStoreType(C[0].Inst)->getScalarType(); in getChainElemTy() 700 Type *Ty = getLoadStoreType(E.Inst)->getScalarType(); in splitChainByAlignment() 886 assert(DL.getTypeStoreSize(getLoadStoreType(E.Inst)->getScalarType()) == in vectorizeChain() 1337 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectEquivalenceClasses() 1362 (VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(VecTy->getScalarType())))) in collectEquivalenceClasses() 1371 DL.getTypeSizeInBits(getLoadStoreType(&I)->getScalarType()), in collectEquivalenceClasses()
|
H A D | VectorCombine.cpp | 161 Type *ScalarTy = Load->getType()->getScalarType(); in canWidenLoad() 667 Type *ScalarTy = VecTy->getScalarType(); in foldInsExtFNeg() 751 FixedVectorType::get(DestTy->getScalarType(), NumSrcElts); in foldBitcastShuffle() 753 FixedVectorType::get(SrcTy->getScalarType(), Mask.size()); in foldBitcastShuffle() 855 IntrinsicCostAttributes Attrs(*ScalarIntrID, VecTy->getScalarType(), Args); in scalarizeVPIntrinsic() 859 TTI.getArithmeticInstrCost(*FunctionalOpcode, VecTy->getScalarType()); in scalarizeVPIntrinsic() 897 ? Builder.CreateIntrinsic(VecTy->getScalarType(), *ScalarIntrID, in scalarizeVPIntrinsic() 1275 !DL->typeSizeEqualsStoreSize(Load->getType()->getScalarType()) || in foldSingleElementStore() 1312 if (LI->isVolatile() || !DL->typeSizeEqualsStoreSize(VecTy->getScalarType())) in scalarizeLoadExtract() 1548 FixedVectorType::get(CastSrcTy->getScalarType(), NewMask.size()); in foldShuffleOfCastops() [all …]
|
H A D | VPlanTransforms.cpp | 537 VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType(), in createScalarIVSteps() 942 Type *IntTy = Plan.getCanonicalIV()->getScalarType(); in adjustFixedOrderRecurrences() 1038 R.getParent()->getPlan()->getCanonicalIV()->getScalarType(), in simplifyRecipe() 1072 VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType(), Ctx); in simplifyRecipes() 1093 VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType(), Ctx); in truncateToMinimalBitwidths() 1462 if (unsigned IVSize = CanonicalIVPHI->getScalarType()->getScalarSizeInBits(); in tryAddExplicitVectorLength() 1466 OpVPEVL, CanonicalIVPHI->getScalarType()); in tryAddExplicitVectorLength()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/ |
H A D | MachineValueType.h | 250 MVT getScalarType() const { in getScalarType() function 336 return getScalarType().getSizeInBits().getFixedValue(); in getScalarSizeInBits() 353 return getScalarType().getStoreSize().getFixedValue(); in getScalarStoreSize()
|
H A D | LowLevelType.h | 208 constexpr LLT getScalarType() const { in getScalarType() function 231 return LLT::scalarOrVector(EC, getScalarType()); in changeElementCount()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.h | 230 EVT ElemType = DataTypeVT.getScalarType(); in isLegalMaskedLoadStore() 255 EVT ElemType = DataTypeVT.getScalarType(); in isLegalMaskedGatherScatter() 372 Type *ScalarTy = Ty->getScalarType();
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 493 EVT EltVT = VT.getScalarType(); in getCastInstrCost() 634 ((ISD == ISD::FP_ROUND && SrcTy.getScalarType() == MVT::f64 && in getCastInstrCost() 635 DstTy.getScalarType() == MVT::f32) || in getCastInstrCost() 636 (ISD == ISD::FP_EXTEND && SrcTy.getScalarType() == MVT::f32 && in getCastInstrCost() 637 DstTy.getScalarType() == MVT::f64))) { in getCastInstrCost() 848 if ((SrcTy.getScalarType() == MVT::i8 || in getCastInstrCost() 849 SrcTy.getScalarType() == MVT::i16 || in getCastInstrCost() 850 SrcTy.getScalarType() == MVT::i32) && in getCastInstrCost() 914 getTypeLegalizationCost(ValTy->getScalarType()); in getVectorInstrCost() 915 return LT.first * (ValTy->getScalarType()->isIntegerTy() ? 4 : 1); in getVectorInstrCost() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchTargetTransformInfo.cpp | 61 Type *ScalarTy = Ty->getScalarType(); in getRegisterClassForType()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | VNCoercion.cpp | 41 bool StoredNI = DL.isNonIntegralPointerType(StoredTy->getScalarType()); in canCoerceMustAliasedValueToLoad() 42 bool LoadNI = DL.isNonIntegralPointerType(LoadTy->getScalarType()); in canCoerceMustAliasedValueToLoad() 257 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingMemInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrFragmentsSIMD.td | 1167 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8; 1172 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16; 1177 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32; 1194 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8; 1199 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8; 1204 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16; 1209 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16; 1214 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32; 1219 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32; 1224 return cast<MemIntrinsicSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 1236 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst() 1256 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst() 1276 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst() 1297 assert(SrcVal->getType()->getScalarType()->isDoubleTy() && in executeFPTruncInst() 1298 DstTy->getScalarType()->isFloatTy() && in executeFPTruncInst() 1320 assert(SrcVal->getType()->getScalarType()->isFloatTy() && in executeFPExtInst() 1321 DstTy->getScalarType()->isDoubleTy() && "Invalid FPExt instruction"); in executeFPExtInst() 1343 Type *DstVecTy = DstTy->getScalarType(); in executeFPToUIInst() 1344 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1381 Type *DstVecTy = DstTy->getScalarType(); in executeFPToSIInst() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
H A D | OpDescriptor.h | 279 return V->getType() == Cur[0]->getType()->getScalarType(); in matchScalarOfFirstType() 283 return makeConstantsWithType(Cur[0]->getType()->getScalarType()); in matchScalarOfFirstType()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | MveEmitter.cpp | 988 const ScalarType *getScalarType(StringRef Name) { in getScalarType() function in __anon819a2c470111::EmitterBase 991 const ScalarType *getScalarType(Record *R) { in getScalarType() function in __anon819a2c470111::EmitterBase 992 return getScalarType(R->getName()); in getScalarType() 1080 return getScalarType(R); in getType() 1219 getScalarType("u32"), ST->kind() == ScalarTypeKind::UnsignedInt); in getCodeForDag() 1230 return std::make_shared<IntLiteralResult>(getScalarType("u32"), in getCodeForDag() 1286 return std::make_shared<IntLiteralResult>(getScalarType("u32"), in getCodeForDagArg() 1290 return std::make_shared<IntLiteralResult>(getScalarType("u32"), in getCodeForDagArg() 1319 V = std::make_shared<IntCastResult>(getScalarType("u32"), V); in getCodeForArg() 1321 V = std::make_shared<IntCastResult>(getScalarType("u32"), V); in getCodeForArg()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 570 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost() 619 if (Tp->getScalarType()->isFP128Ty()) in getShuffleCost() 742 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType() 902 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind); in getCastInstrCost() 1023 unsigned CmpCostPerVector = (ValTy->getScalarType()->isFloatTy() ? 10 : 1); in getCmpSelInstrCost()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 401 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() 846 cast<IntegerType>(Ty->getScalarType())->getBitWidth() && in ConstantInt() 926 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned); in get() 941 assert(C->getType() == Ty->getScalarType() && in get() 969 FV.convert(Ty->getScalarType()->getFltSemantics(), in get() 982 assert(C->getType() == Ty->getScalarType() && in get() 995 APFloat FV(Ty->getScalarType()->getFltSemantics(), Str); in get() 1006 const fltSemantics &Semantics = Ty->getScalarType()->getFltSemantics(); in getNaN() 1017 const fltSemantics &Semantics = Ty->getScalarType()->getFltSemantics(); in getQNaN() 1028 const fltSemantics &Semantics = Ty->getScalarType()->getFltSemantics(); in getSNaN() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.cpp | 151 return NewTy.getScalarType() == OldTy.getScalarType(); in mutationIsSane()
|