Home
last modified time | relevance | path

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

1234

/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp187 TempValues.push_back(getRandomConstant(VTp->getScalarType())); in getRandomValue()
335 bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
369 case 0: if (Ty->getScalarType()->isIntegerTy()) in Act()
371 case 1: if (Ty->getScalarType()->isIntegerTy()) in Act()
464 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act()
500 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
501 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
510 if (VTy->getScalarType()->isIntegerTy() && in Act()
511 DestTy->getScalarType()->isIntegerTy()) { in Act()
525 if (VTy->getScalarType()->isFloatingPointTy() && in Act()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILISelLowering.cpp252 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/include/llvm/CodeGen/
DBasicTTIImpl.h303 bool IsFloat = Ty->getScalarType()->isFloatingPointTy();
328 ->getArithmeticInstrCost(Opcode, Ty->getScalarType());
420 Opcode, Dst->getScalarType(), Src->getScalarType()); in getCastInstrCost()
471 CondTy = CondTy->getScalarType(); in getCmpSelInstrCost()
473 Opcode, ValTy->getScalarType(), CondTy); in getCmpSelInstrCost()
487 getTLI()->getTypeLegalizationCost(Val->getScalarType()); in getVectorInstrCost()
537 ScalarRetTy = RetTy->getScalarType(); in getIntrinsicInstrCost()
545 Ty = Ty->getScalarType(); in getIntrinsicInstrCost()
671 Ty = Ty->getScalarType(); in getIntrinsicInstrCost()
675 IID, RetTy->getScalarType(), ScalarTys); in getIntrinsicInstrCost()
DValueTypes.h210 EVT getScalarType() const { in getScalarType() function
240 return getScalarType().getSizeInBits(); in getScalarSizeInBits()
DMachineValueType.h276 MVT getScalarType() const { in getScalarType() function
450 return getScalarType().getSizeInBits(); in getScalarSizeInBits()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp281 if (CI->getArgOperand(0)->getType()->getScalarType()-> in mightUseCTR()
362 TLI->isOperationLegalOrCustom(Opcode, VTy.getScalarType())) in mightUseCTR()
371 J->getType()->getScalarType()->isPPC_FP128Ty()) { in mightUseCTR()
377 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
378 CI->getDestTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
379 isLargeIntegerTy(TT.isArch32Bit(), CI->getSrcTy()->getScalarType()) || in mightUseCTR()
380 isLargeIntegerTy(TT.isArch32Bit(), CI->getDestTy()->getScalarType())) in mightUseCTR()
383 J->getType()->getScalarType()) && in mightUseCTR()
390 isLargeIntegerTy(false, J->getType()->getScalarType()) && in mightUseCTR()
DPPCTargetTransformInfo.cpp279 if (ST->hasVSX() && Val->getScalarType()->isDoubleTy()) { in getVectorInstrCost()
285 } else if (ST->hasQPX() && Val->getScalarType()->isFloatingPointTy()) { in getVectorInstrCost()
/external/llvm/include/llvm/IR/
DType.h183 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } in isFPOrFPVectorTy()
201 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
222 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
307 const Type *getScalarType() const LLVM_READONLY;
308 Type *getScalarType() LLVM_READONLY;
DGetElementPtrTypeIterator.h87 (GEP->getOperand(0)->getType()->getScalarType(), GEP->op_begin()+1); in gep_type_begin()
94 (GEP.getOperand(0)->getType()->getScalarType(), GEP.op_begin()+1); in gep_type_begin()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp489 EVT SrcEltVT = SrcVT.getScalarType(); in ExpandLoad()
490 EVT DstEltVT = Op.getNode()->getValueType(0).getScalarType(); in ExpandLoad()
596 unsigned Stride = SrcVT.getScalarType().getSizeInBits()/8; in ExpandLoad()
600 Op.getNode()->getValueType(0).getScalarType(), in ExpandLoad()
602 SrcVT.getScalarType(), in ExpandLoad()
640 EVT RegSclVT = RegVT.getScalarType(); in ExpandStore()
642 EVT MemSclVT = StVT.getScalarType(); in ExpandStore()
734 EVT BitTy = MaskTy.getScalarType(); in ExpandSELECT()
771 unsigned BW = VT.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
772 unsigned OrigBW = OrigTy.getScalarType().getSizeInBits(); in ExpandSEXTINREG()
[all …]
DSelectionDAG.cpp1029 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in getZeroExtendInReg()
1069 EVT EltVT = VT.getScalarType(); in getNOT()
1076 EVT EltVT = VT.getScalarType(); in getLogicalNOT()
1092 EVT EltVT = VT.getScalarType(); in getConstant()
1108 EVT EltVT = VT.getScalarType(); in getConstant()
1210 EVT EltVT = VT.getScalarType(); in getConstantFP()
1242 EVT EltVT = VT.getScalarType(); in getConstantFP()
1948 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in SignBitIsZero()
1966 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); in computeKnownBits()
2151 unsigned EBits = EVT.getScalarType().getSizeInBits(); in computeKnownBits()
[all …]
DTargetLowering.cpp382 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
760 InDemandedMask |= APInt::getSignBit(VT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
800 unsigned ShAmt = ExVT.getScalarType().getSizeInBits(); in SimplifyDemandedBits()
802 unsigned VTBits = Op->getValueType(0).getScalarType().getSizeInBits(); in SimplifyDemandedBits()
825 BitWidth - ExVT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
832 APInt::getSignBit(ExVT.getScalarType().getSizeInBits()).zext(BitWidth); in SimplifyDemandedBits()
835 ExVT.getScalarType().getSizeInBits()) & in SimplifyDemandedBits()
891 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
913 unsigned InBits = InVT.getScalarType().getSizeInBits(); in SimplifyDemandedBits()
954 Op.getOperand(0).getValueType().getScalarType().getSizeInBits(); in SimplifyDemandedBits()
[all …]
/external/deqp/framework/randomshaders/
DrsgExpression.hpp118 …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()
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()
DrsgVariableType.cpp130 const VariableType& VariableType::getScalarType (Type baseType) in getScalarType() function in rsg::VariableType
190 return getScalarType(m_baseType); in getElementType()
DrsgExpression.cpp360 : 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()
DrsgVariableType.hpp166 static const VariableType& getScalarType (Type baseType);
/external/llvm/lib/IR/
DInstruction.cpp358 getType()->getScalarType() != I->getType()->getScalarType() : in isSameOperationAs()
366 getOperand(i)->getType()->getScalarType() != in isSameOperationAs()
367 I->getOperand(i)->getType()->getScalarType() : in isSameOperationAs()
DType.cpp45 Type *Type::getScalarType() { in getScalarType() function in Type
51 const Type *Type::getScalarType() const { in getScalarType() function in Type
140 return getScalarType()->getPrimitiveSizeInBits(); in getScalarSizeInBits()
217 return cast<PointerType>(getScalarType())->getAddressSpace(); in getPointerAddressSpace()
651 if (!V->getType()->getScalarType()->isIntegerTy(32)) in indexValid()
DConstants.cpp214 Type *ScalarTy = Ty->getScalarType(); in getIntegerValue()
572 Constant *C = get(cast<IntegerType>(Ty->getScalarType()), V, isSigned); in get()
596 assert(C->getType() == Ty->getScalarType() && in get()
641 FV.convert(*TypeToFloatSemantics(Ty->getScalarType()), in get()
656 APFloat FV(*TypeToFloatSemantics(Ty->getScalarType()), Str); in get()
667 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getNegativeZero()
716 const fltSemantics &Semantics = *TypeToFloatSemantics(Ty->getScalarType()); in getInfinity()
1786 assert(C->getType()->getScalarType()->isPointerTy() && in getPtrToInt()
1788 assert(DstTy->getScalarType()->isIntegerTy() && in getPtrToInt()
1799 assert(C->getType()->getScalarType()->isIntegerTy() && in getIntToPtr()
[all …]
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp877 if (StoredValTy->getScalarType()->isPointerTy() && in CoerceAvailableValueToLoadType()
878 LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
882 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType()
888 if (TypeToCastTo->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
895 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
907 if (StoredValTy->getScalarType()->isPointerTy()) { in CoerceAvailableValueToLoadType()
933 if (LoadedTy->getScalarType()->isPointerTy()) in CoerceAvailableValueToLoadType()
1131 if (SrcVal->getType()->getScalarType()->isPointerTy()) in GetStoreValueForLoad()
1308 if (V->getType()->getScalarType()->isPointerTy()) { in ConstructSSAForLoadSet()
1700 if (V->getType()->getScalarType()->isPointerTy()) in PerformLoadPRE()
[all …]
DMergedLoadStoreMotion.cpp186 if (Inst->getType()->getScalarType()->isPointerTy()) { in INITIALIZE_PASS_DEPENDENCY()
455 if (NewPN->getType()->getScalarType()->isPointerTy()) { in getPHIOperand()
/external/llvm/include/llvm/Target/
DTargetSelectionDAG.td719 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i1;
722 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
725 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
728 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
731 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::f32;
734 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::f64;
738 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i1;
741 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i8;
744 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i16;
747 return cast<LoadSDNode>(N)->getMemoryVT().getScalarType() == MVT::i32;
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1223 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1243 const Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1263 const 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 const Type *DstVecTy = DstTy->getScalarType(); in executeFPToUIInst()
1331 const Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst()
1368 const Type *DstVecTy = DstTy->getScalarType(); in executeFPToSIInst()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h203 unsigned IntPtrWidth = IntPtrTy->getScalarType()->getIntegerBitWidth();

1234