/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 746 auto *SrcVecTy = cast<FixedVectorType>(Src); in getCastInstrCost() local 748 unsigned VF = SrcVecTy->getNumElements(); in getCastInstrCost() 804 TotCost += getScalarizationOverhead(SrcVecTy, false, NeedsExtracts); in getCastInstrCost() 830 return VF + getScalarizationOverhead(SrcVecTy, false, true); in getCastInstrCost()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 2966 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in isCastable() local 2968 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isCastable() 2970 SrcTy = SrcVecTy->getElementType(); in isCastable() 3021 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) { in isBitCastable() local 3023 if (SrcVecTy->getElementCount() == DestVecTy->getElementCount()) { in isBitCastable() 3025 SrcTy = SrcVecTy->getElementType(); in isBitCastable() 3088 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in getCastOpcode() local 3090 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in getCastOpcode() 3093 SrcTy = SrcVecTy->getElementType(); in getCastOpcode() 3259 VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy); in castIsValid() local [all …]
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 2873 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in isCastable() local 2875 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isCastable() 2877 SrcTy = SrcVecTy->getElementType(); in isCastable() 2928 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) { in isBitCastable() local 2930 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isBitCastable() 2932 SrcTy = SrcVecTy->getElementType(); in isBitCastable() 2992 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in getCastOpcode() local 2994 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in getCastOpcode() 2997 SrcTy = SrcVecTy->getElementType(); in getCastOpcode() 3166 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) { in castIsValid() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1383 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() local 1389 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToUIInst() 1390 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() 1421 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToSIInst() local 1427 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToSIInst() 1428 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToSI instruction"); in executeFPToSIInst()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1331 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() local 1337 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToUIInst() 1338 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() 1369 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToSIInst() local 1375 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToSIInst() 1376 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToSI instruction"); in executeFPToSIInst()
|
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1380 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() local 1386 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToUIInst() 1387 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() 1418 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToSIInst() local 1424 if (SrcVecTy->getTypeID() == Type::FloatTyID) { in executeFPToSIInst() 1425 assert(SrcVecTy->isFloatingPointTy() && "Invalid FPToSI instruction"); in executeFPToSIInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 2658 VectorType *SrcVecTy = cast<VectorType>(V->getType()); in createBitOrPointerCast() local 2659 assert((VF == SrcVecTy->getNumElements()) && "Vector dimensions do not match"); in createBitOrPointerCast() 2660 Type *SrcElemTy = SrcVecTy->getElementType(); in createBitOrPointerCast() 6342 Type *SrcVecTy = in getInstructionCost() local 6352 SrcVecTy = smallestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 6357 SrcVecTy = largestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 6364 return N * TTI.getCastInstrCost(I->getOpcode(), VectorTy, SrcVecTy, I); in getInstructionCost()
|
D | SLPVectorizer.cpp | 3366 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size()); in getEntryCost() local 3369 if (!MinBWs.count(VL0) || VecTy != SrcVecTy) { in getEntryCost() 3371 TTI->getCastInstrCost(E->getOpcode(), VecTy, SrcVecTy, VL0); in getEntryCost()
|
/external/llvm-project/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 139 Type *SrcVecTy = VectorType::get(Builder.getHalfTy(), 8, true); in TEST_F() local 146 ArgTys.push_back(UndefValue::get(SrcVecTy)); in TEST_F()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instructions.cpp | 3152 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) { in isBitCastable() local 3154 if (SrcVecTy->getElementCount() == DestVecTy->getElementCount()) { in isBitCastable() 3156 SrcTy = SrcVecTy->getElementType(); in isBitCastable() 3218 if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) in getCastOpcode() local 3220 if (SrcVecTy->getElementCount() == DestVecTy->getElementCount()) { in getCastOpcode() 3223 SrcTy = SrcVecTy->getElementType(); in getCastOpcode()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 3018 auto *SrcVecTy = cast<FixedVectorType>(V->getType()); in createBitOrPointerCast() local 3019 assert((VF == SrcVecTy->getNumElements()) && "Vector dimensions do not match"); in createBitOrPointerCast() 3020 Type *SrcElemTy = SrcVecTy->getElementType(); in createBitOrPointerCast() 7162 Type *SrcVecTy = in getInstructionCost() local 7172 SrcVecTy = smallestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 7176 SrcVecTy = largestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 7185 TTI.getCastInstrCost(Opcode, VectorTy, SrcVecTy, CCH, CostKind, I); in getInstructionCost()
|
D | SLPVectorizer.cpp | 3568 auto *SrcVecTy = FixedVectorType::get(SrcTy, VL.size()); in getEntryCost() local 3571 if (!MinBWs.count(VL0) || VecTy != SrcVecTy) { in getEntryCost() 3574 TTI->getCastInstrCost(E->getOpcode(), VecTy, SrcVecTy, in getEntryCost()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 6058 Type *SrcVecTy = ToVectorTy(SrcScalarTy, VF); in getInstructionCost() local 6067 SrcVecTy = smallestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 6072 SrcVecTy = largestIntegerVectorType(SrcVecTy, MinVecTy); in getInstructionCost() 6078 return TTI.getCastInstrCost(I->getOpcode(), VectorTy, SrcVecTy); in getInstructionCost()
|
D | SLPVectorizer.cpp | 1590 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size()); in getEntryCost() local 1591 int VecCost = TTI->getCastInstrCost(VL0->getOpcode(), VecTy, SrcVecTy); in getEntryCost()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 2451 LLT SrcVecTy = MRI.getType(SrcVec); in bitcastExtractVectorElt() local 2454 LLT SrcEltTy = SrcVecTy.getElementType(); in bitcastExtractVectorElt() 2456 unsigned OldNumElts = SrcVecTy.getNumElements(); in bitcastExtractVectorElt()
|