Home
last modified time | relevance | path

Searched refs:getScalarType (Results 1 – 25 of 200) sorted by relevance

12345678

/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp207 TempValues.push_back(getRandomConstant(VTp->getScalarType())); in getRandomValue()
342 bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
376 case 0: if (Ty->getScalarType()->isIntegerTy()) in Act()
378 case 1: if (Ty->getScalarType()->isIntegerTy()) in Act()
471 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act()
507 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
508 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
517 if (VTy->getScalarType()->isIntegerTy() && in Act()
518 DestTy->getScalarType()->isIntegerTy()) { in Act()
532 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp322 if (CI->getArgOperand(0)->getType()->getScalarType()-> in mightUseCTR()
418 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
427 J->getType()->getScalarType()->isPPC_FP128Ty()) { in mightUseCTR()
433 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
434 CI->getDestTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
435 isLargeIntegerTy(!TM->isPPC64(), CI->getSrcTy()->getScalarType()) || in mightUseCTR()
436 isLargeIntegerTy(!TM->isPPC64(), CI->getDestTy()->getScalarType())) in mightUseCTR()
439 J->getType()->getScalarType()) && in mightUseCTR()
446 isLargeIntegerTy(false, J->getType()->getScalarType()) && in mightUseCTR()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp296 if (CI->getArgOperand(0)->getType()->getScalarType()-> in mightUseCTR()
390 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType())) in mightUseCTR()
399 J->getType()->getScalarType()->isPPC_FP128Ty()) { in mightUseCTR()
405 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
406 CI->getDestTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
407 isLargeIntegerTy(TT.isArch32Bit(), CI->getSrcTy()->getScalarType()) || in mightUseCTR()
408 isLargeIntegerTy(TT.isArch32Bit(), CI->getDestTy()->getScalarType())) in mightUseCTR()
411 J->getType()->getScalarType()) && in mightUseCTR()
418 isLargeIntegerTy(false, J->getType()->getScalarType()) && in mightUseCTR()
DPPCTargetTransformInfo.cpp320 if (ST->hasVSX() && Val->getScalarType()->isDoubleTy()) { in getVectorInstrCost()
326 } else if (ST->hasQPX() && Val->getScalarType()->isFloatingPointTy()) { in getVectorInstrCost()
384 Alignment >= LT.second.getScalarType().getStoreSize()) in getMemoryOpCost()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DType.h185 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } in isFPOrFPVectorTy()
203 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
208 return getScalarType()->isIntegerTy(BitWidth); in isIntOrIntVectorTy()
227 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
304 Type *getScalarType() const { in getScalarType() function
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h310 bool IsFloat = Ty->getScalarType()->isFloatingPointTy();
333 ->getArithmeticInstrCost(Opcode, Ty->getScalarType());
445 Opcode, Dst->getScalarType(), Src->getScalarType()); in getCastInstrCost()
505 CondTy = CondTy->getScalarType(); in getCmpSelInstrCost()
507 Opcode, ValTy->getScalarType(), CondTy); in getCmpSelInstrCost()
520 getTLI()->getTypeLegalizationCost(DL, Val->getScalarType()); in getVectorInstrCost()
719 ScalarRetTy = RetTy->getScalarType(); in getIntrinsicInstrCost()
727 Ty = Ty->getScalarType(); in getIntrinsicInstrCost()
879 Ty = Ty->getScalarType(); in getIntrinsicInstrCost()
883 IID, RetTy->getScalarType(), ScalarTys, FMF); in getIntrinsicInstrCost()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DType.h183 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } in isFPOrFPVectorTy()
201 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
216 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
293 Type *getScalarType() const LLVM_READONLY;
/external/llvm/include/llvm/IR/
DType.h181 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } in isFPOrFPVectorTy()
199 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
214 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
291 Type *getScalarType() const LLVM_READONLY;
DGetElementPtrTypeIterator.h101 cast<PointerType>(GEPOp->getPointerOperandType()->getScalarType()) in gep_type_begin()
112 cast<PointerType>(GEPOp.getPointerOperandType()->getScalarType()) in gep_type_begin()
/external/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp242 DL.getTypeStoreSize(PtrATy->getScalarType()) != in isConsecutiveAccess()
243 DL.getTypeStoreSize(PtrBTy->getScalarType())) in isConsecutiveAccess()
509 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
545 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
728 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
784 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
785 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
796 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
798 Builder.CreateBitOrPointerCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
882 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
/external/spirv-llvm/lib/SPIRV/
DSPIRVToOCL20.cpp255 if (CI->getType()->getScalarType() != int32Ty) { in visitCallSPRIVImageQuerySize()
257 CastInst::CreateIntegerCast(getImageSize, CI->getType()->getScalarType(), false, in visitCallSPRIVImageQuerySize()
272 if (CI->getType()->getScalarType() != int32Ty) { in visitCallSPRIVImageQuerySize()
275 VectorType::get(CI->getType()->getScalarType(), in visitCallSPRIVImageQuerySize()
318 if (getImageArraySize->getType() != CI->getType()->getScalarType()) { in visitCallSPRIVImageQuerySize()
320 CastInst::CreateIntegerCast(getImageArraySize, CI->getType()->getScalarType(), in visitCallSPRIVImageQuerySize()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DScalableVectorMVTsTest.cpp25 ASSERT_TRUE(VecTy.getScalarType().isValid()); in TEST()
37 ASSERT_TRUE(VecTy.getScalarType().isValid()); in TEST()
/external/spirv-llvm/lib/SPIRV/Mangler/
DParameterType.cpp134 myName << getScalarType()->toString(); in toString()
142 (*getScalarType()).equals(&*(pVec->getScalarType())); in equals()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp311 DL.getTypeStoreSize(PtrATy->getScalarType()) != in isConsecutiveAccess()
312 DL.getTypeStoreSize(PtrBTy->getScalarType())) in isConsecutiveAccess()
726 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
773 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
966 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
1018 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1019 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1030 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1032 Builder.CreateBitOrPointerCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1114 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
/external/deqp/framework/randomshaders/
DrsgExpression.hpp119 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
137 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
156 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
DrsgExecutionContext.cpp37 return ExecValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue()
42 return ExecConstValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue()
DrsgExpression.cpp360 : m_value(VariableType::getScalarType(VariableType::TYPE_FLOAT)) in FloatLiteral()
381 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_FLOAT)); in FloatLiteral()
388 : m_value(VariableType::getScalarType(VariableType::TYPE_FLOAT)) in FloatLiteral()
393 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_FLOAT)); in FloatLiteral()
426 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_FLOAT)).asFloat(0)); in tokenize()
430 : m_value(VariableType::getScalarType(VariableType::TYPE_INT)) in IntLiteral()
448 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_INT)); in IntLiteral()
480 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_INT)).asInt(0)); in tokenize()
484 : m_value(VariableType::getScalarType(VariableType::TYPE_BOOL)) in BoolLiteral()
496 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_BOOL)); in BoolLiteral()
[all …]
DrsgVariableType.cpp130 const VariableType& VariableType::getScalarType (Type baseType) in getScalarType() function in rsg::VariableType
190 return getScalarType(m_baseType); in getElementType()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h544 ->getArithmeticInstrCost(Opcode, Ty->getScalarType());
671 Opcode, Dst->getScalarType(), Src->getScalarType(), I);
732 CondTy = CondTy->getScalarType(); in getCmpSelInstrCost()
734 Opcode, ValTy->getScalarType(), CondTy, I); in getCmpSelInstrCost()
747 getTLI()->getTypeLegalizationCost(DL, Val->getScalarType()); in getVectorInstrCost()
989 ScalarRetTy = RetTy->getScalarType();
998 Ty = Ty->getScalarType();
1187 Ty = Ty->getScalarType();
1191 IID, RetTy->getScalarType(), ScalarTys, FMF);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp398 unsigned ScalarCost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); in getArithmeticInstrCost()
478 if (Tp->getScalarType()->isFP128Ty()) in getShuffleCost()
598 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType()
663 unsigned ScalarCost = getCastInstrCost(Opcode, Dst->getScalarType(), in getCastInstrCost()
664 Src->getScalarType()); in getCastInstrCost()
761 unsigned CmpCostPerVector = (ValTy->getScalarType()->isFloatTy() ? 10 : 1); in getCmpSelInstrCost()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp247 TempValues.push_back(getRandomConstant(VTp->getScalarType())); in getRandomValue()
389 bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
527 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act()
563 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
564 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
650 bool fp = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
/external/llvm/include/llvm/Target/
DTargetSelectionDAG.td772 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i1;
775 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
778 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
781 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
784 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::f32;
787 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::f64;
791 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i1;
794 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
797 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
800 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp498 EVT SrcEltVT = SrcVT.getScalarType(); in ExpandLoad()
510 EVT DstEltVT = LD->getValueType(0).getScalarType(); in ExpandLoad()
642 EVT MemSclVT = StVT.getScalarType(); in ExpandStore()
740 EVT BitTy = MaskTy.getScalarType(); in ExpandSELECT()
778 unsigned BW = VT.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
779 unsigned OrigBW = OrigTy.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
892 if (TLI.isOperationLegalOrCustom(ISD::BITREVERSE, VT.getScalarType())) in ExpandBITREVERSE()
969 APInt::getAllOnesValue(VT.getScalarType().getSizeInBits()), DL, VT); in ExpandVSELECT()
987 EVT SVT = VT.getScalarType(); in ExpandUINT_TO_FLOAT()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86InstrFragmentsSIMD.td992 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
997 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
1002 return cast<MaskedStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
1019 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
1024 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
1029 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
1034 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
1039 return cast<TruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
1044 return cast<TruncUSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
1049 return cast<MaskedTruncSStoreSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/
DOpDescriptor.h211 return V->getType() == Cur[0]->getType()->getScalarType(); in matchScalarOfFirstType()
215 return makeConstantsWithType(Cur[0]->getType()->getScalarType()); in matchScalarOfFirstType()

12345678