/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 207 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/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILISelLowering.cpp | 252 if (VT.getScalarType().getSimpleVT().SimpleTy == MVT::f32 in isFPImmLegal() 253 || VT.getScalarType().getSimpleVT().SimpleTy == MVT::f64) { in isFPImmLegal() 263 if (VT.getScalarType().getSimpleVT().SimpleTy == MVT::f32 in ShouldShrinkFPConstant() 264 || VT.getScalarType().getSimpleVT().SimpleTy == MVT::f64) { in ShouldShrinkFPConstant() 321 if (OVT.getScalarType() == MVT::i64) { in LowerSDIV() 323 } else if (OVT.getScalarType() == MVT::i32) { in LowerSDIV() 325 } else if (OVT.getScalarType() == MVT::i16 in LowerSDIV() 326 || OVT.getScalarType() == MVT::i8) { in LowerSDIV() 339 if (OVT.getScalarType() == MVT::i64) { in LowerSREM() 341 } else if (OVT.getScalarType() == MVT::i32) { in LowerSREM() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 296 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()
|
D | PPCTargetTransformInfo.cpp | 320 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/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 310 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()
|
D | ValueTypes.h | 233 EVT getScalarType() const { in getScalarType() function 263 return getScalarType().getSizeInBits(); in getScalarSizeInBits()
|
/external/llvm/include/llvm/IR/ |
D | Type.h | 181 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;
|
D | GetElementPtrTypeIterator.h | 101 cast<PointerType>(GEPOp->getPointerOperandType()->getScalarType()) in gep_type_begin() 112 cast<PointerType>(GEPOp.getPointerOperandType()->getScalarType()) in gep_type_begin()
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVToOCL20.cpp | 255 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/llvm/lib/Transforms/Vectorize/ |
D | LoadStoreVectorizer.cpp | 242 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/Mangler/ |
D | ParameterType.cpp | 134 myName << getScalarType()->toString(); in toString() 142 (*getScalarType()).equals(&*(pVec->getScalarType())); in equals()
|
D | Mangler.cpp | 67 if ((nType = mangledPrimitiveStringfromName(pVec->getScalarType()->toString()))) in mangleSubstitution() 129 me = v->getScalarType()->accept(this); in visit()
|
/external/deqp/framework/randomshaders/ |
D | rsgExpression.hpp | 118 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue() 136 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue() 154 …cess getValue (void) const { return m_value.getValue(VariableType::getScalarType(VariableType::… in getValue()
|
D | rsgExecutionContext.cpp | 37 return ExecValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue() 42 return ExecConstValueAccess(VariableType::getScalarType(VariableType::TYPE_BOOL), m_data); in getValue()
|
D | rsgVariableType.cpp | 130 const VariableType& VariableType::getScalarType (Type baseType) in getScalarType() function in rsg::VariableType 190 return getScalarType(m_baseType); in getElementType()
|
D | rsgExpression.cpp | 360 : m_value(VariableType::getScalarType(VariableType::TYPE_FLOAT)) in FloatLiteral() 381 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_FLOAT)); in FloatLiteral() 414 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_FLOAT)).asFloat(0)); in tokenize() 418 : m_value(VariableType::getScalarType(VariableType::TYPE_INT)) in IntLiteral() 436 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_INT)); in IntLiteral() 468 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_INT)).asInt(0)); in tokenize() 472 : m_value(VariableType::getScalarType(VariableType::TYPE_BOOL)) in BoolLiteral() 484 ExecValueAccess access = m_value.getValue(VariableType::getScalarType(VariableType::TYPE_BOOL)); in BoolLiteral() 505 str << Token(m_value.getValue(VariableType::getScalarType(VariableType::TYPE_BOOL)).asBool(0)); in tokenize()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 498 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()
|
D | SelectionDAG.cpp | 1033 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in getZeroExtendInReg() 1076 EVT EltVT = VT.getScalarType(); in getNOT() 1083 EVT EltVT = VT.getScalarType(); in getLogicalNOT() 1100 EVT EltVT = VT.getScalarType(); in getConstant() 1116 EVT EltVT = VT.getScalarType(); in getConstant() 1216 EVT EltVT = VT.getScalarType(); in getConstantFP() 1245 EVT EltVT = VT.getScalarType(); in getConstantFP() 2007 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SignBitIsZero() 2025 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in computeKnownBits() 2210 unsigned EBits = EVT.getScalarType().getSizeInBits(); in computeKnownBits() [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetSelectionDAG.td | 772 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/IR/ |
D | Instruction.cpp | 442 getType()->getScalarType() != I->getType()->getScalarType() : in isSameOperationAs() 450 getOperand(i)->getType()->getScalarType() != in isSameOperationAs() 451 I->getOperand(i)->getType()->getScalarType() : in isSameOperationAs()
|
D | Constants.cpp | 233 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue() 561 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned); in get() 584 assert(C->getType() == Ty->getScalarType() && in get() 630 FV.convert(*TypeToFloatSemantics(Ty->getScalarType()), in get() 645 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str); in get() 656 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getNaN() 667 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getNegativeZero() 716 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getInfinity() 1676 assert(C->getType()->getScalarType()->isPointerTy() && in getPtrToInt() 1678 assert(DstTy->getScalarType()->isIntegerTy() && in getPtrToInt() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 737 if (StoredValTy->getScalarType()->isPointerTy() && in CoerceAvailableValueToLoadType() 738 LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType() 742 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType() 748 if (TypeToCastTo->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType() 755 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType() 768 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType() 795 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType() 998 if (SrcVal->getType()->getScalarType()->isPointerTy()) in GetStoreValueForLoad() 1594 if (V->getType()->getScalarType()->isPointerTy()) in PerformLoadPRE() 1667 if (V->getType()->getScalarType()->isPointerTy()) in processNonLocalLoad() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1223 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst() 1243 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst() 1263 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst() 1284 assert(SrcVal->getType()->getScalarType()->isDoubleTy() && in executeFPTruncInst() 1285 DstTy->getScalarType()->isFloatTy() && in executeFPTruncInst() 1307 assert(SrcVal->getType()->getScalarType()->isFloatTy() && in executeFPExtInst() 1308 DstTy->getScalarType()->isDoubleTy() && "Invalid FPExt instruction"); in executeFPExtInst() 1330 Type *DstVecTy = DstTy->getScalarType(); in executeFPToUIInst() 1331 Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1368 Type *DstVecTy = DstTy->getScalarType(); in executeFPToSIInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 907 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in getZeroExtendInReg() 917 EVT EltVT = VT.getScalarType(); in getNOT() 924 EVT EltVT = VT.getScalarType(); in getConstant() 938 EVT EltVT = VT.getScalarType(); in getConstant() 991 EVT EltVT = VT.getScalarType(); in getConstantFP() 1023 EVT EltVT = VT.getScalarType(); in getConstantFP() 1591 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SignBitIsZero() 1614 assert(BitWidth == Op.getValueType().getScalarType().getSizeInBits() && in ComputeMaskedBits() 1819 unsigned EBits = EVT.getScalarType().getSizeInBits(); in ComputeMaskedBits() 1864 unsigned MemBits = VT.getScalarType().getSizeInBits(); in ComputeMaskedBits() [all …]
|
D | LegalizeDAG.cpp | 998 assert(TLI.isTypeLegal(VT.getScalarType())&& "Element type must be legal"); in LegalizeOp() 1004 VT.getScalarType(), in LegalizeOp() 1007 VT.getScalarType(), in LegalizeOp() 1010 VT.getScalarType(), Ex, Sh)); in LegalizeOp() 1375 TLI.isTypeLegal(Node->getValueType(0).getScalarType())) { in LegalizeOp() 1379 unsigned Stride = SrcVT.getScalarType().getSizeInBits()/8; in LegalizeOp() 1385 Node->getValueType(0).getScalarType(), in LegalizeOp() 1387 SrcVT.getScalarType(), in LegalizeOp() 1407 EVT MemElemTy = Node->getValueType(0).getScalarType(); in LegalizeOp() 1408 EVT SrcSclrTy = SrcVT.getScalarType(); in LegalizeOp() [all …]
|