Home
last modified time | relevance | path

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

12345678910>>...13

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp306 if (CI->getArgOperand(0)->getType()->getScalarType()-> in mightUseCTR()
406 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
415 J->getType()->getScalarType()->isPPC_FP128Ty()) { in mightUseCTR()
421 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
422 CI->getDestTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
423 isLargeIntegerTy(!TM.isPPC64(), CI->getSrcTy()->getScalarType()) || in mightUseCTR()
424 isLargeIntegerTy(!TM.isPPC64(), CI->getDestTy()->getScalarType())) in mightUseCTR()
427 J->getType()->getScalarType()) && in mightUseCTR()
434 isLargeIntegerTy(false, J->getType()->getScalarType()) && in mightUseCTR()
597 else if (Ty && (Ty->getScalarType()->isFloatTy() || in getRegisterClassForType()
[all …]
/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/llvm-project/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp417 if (F->getType()->getScalarType()->isFP128Ty() || in mightUseCTR()
418 F->getType()->getScalarType()->isPPC_FP128Ty()) in mightUseCTR()
426 Type *SrcType = CI->getArgOperand(0)->getType()->getScalarType(); in mightUseCTR()
427 Type *DstType = CI->getType()->getScalarType(); in mightUseCTR()
464 if (CI->getArgOperand(0)->getType()->getScalarType()-> in mightUseCTR()
613 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
622 (J->getType()->getScalarType()->isFP128Ty() || in mightUseCTR()
623 J->getType()->getScalarType()->isPPC_FP128Ty())) { in mightUseCTR()
629 if (CI->getSrcTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
630 CI->getDestTy()->getScalarType()->isPPC_FP128Ty() || in mightUseCTR()
[all …]
/external/llvm-project/clang/lib/CodeGen/
DPatternInit.cpp38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor()
45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); in initializationPatternFor()
56 Ty->getScalarType()->getFltSemantics()); in initializationPatternFor()
/external/llvm-project/llvm/unittests/CodeGen/
DScalableVectorMVTsTest.cpp26 ASSERT_TRUE(VecTy.getScalarType().isValid()); in TEST()
38 ASSERT_TRUE(VecTy.getScalarType().isValid()); in TEST()
102 Mnxv8i64.getScalarType()); in TEST()
109 Enxv8i64.getScalarType()); in TEST()
121 ASSERT_EQ(Enxv4f64.getScalarType().getTypeForEVT(Ctx), in TEST()
/external/swiftshader/third_party/llvm-10.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()
307 Type *getScalarType() const { in getScalarType() function
/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-10.0/llvm/lib/Transforms/Utils/
DVNCoercion.cpp38 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) != in canCoerceMustAliasedValueToLoad()
39 DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in canCoerceMustAliasedValueToLoad()
228 if (DL.isNonIntegralPointerType(StoredVal->getType()->getScalarType()) != in analyzeLoadFromClobberingStore()
229 DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingStore()
253 if (DL.isNonIntegralPointerType(DepLI->getType()->getScalarType()) != in analyzeLoadFromClobberingLoad()
254 DL.isNonIntegralPointerType(LoadTy->getScalarType())) in analyzeLoadFromClobberingLoad()
294 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) { in analyzeLoadFromClobberingMemInst()
324 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) in analyzeLoadFromClobberingMemInst()
/external/llvm-project/llvm/include/llvm/IR/
DType.h186 bool isFPOrFPVectorTy() const { return getScalarType()->isFloatingPointTy(); } in isFPOrFPVectorTy()
204 bool isIntOrIntVectorTy() const { return getScalarType()->isIntegerTy(); } in isIntOrIntVectorTy()
209 return getScalarType()->isIntegerTy(BitWidth); in isIntOrIntVectorTy()
228 bool isPtrOrPtrVectorTy() const { return getScalarType()->isPointerTy(); } in isPtrOrPtrVectorTy()
309 inline 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/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/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/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/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()
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()
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 …]
/external/llvm-project/llvm/include/llvm/Support/
DLowLevelTypeImpl.h121 LLT getScalarType() const { in getScalarType() function
135 assert(!getScalarType().isPointer() && in changeElementSize()
144 return LLT::scalarOrVector(NewNumElts, getScalarType()); in changeNumElements()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp329 DL.getTypeStoreSize(PtrATy->getScalarType()) != in isConsecutiveAccess()
330 DL.getTypeStoreSize(PtrBTy->getScalarType())) in isConsecutiveAccess()
759 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
806 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
995 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
1056 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1057 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1068 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1070 Builder.CreateBitOrPointerCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1145 VecTy = VectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp312 DL.getTypeStoreSize(PtrATy->getScalarType()) != in isConsecutiveAccess()
313 DL.getTypeStoreSize(PtrBTy->getScalarType())) in isConsecutiveAccess()
801 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
848 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
1037 VecTy = FixedVectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
1100 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1101 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1112 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain()
1114 Builder.CreateBitOrPointerCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain()
1189 VecTy = FixedVectorType::get(LoadTy->getScalarType(), in vectorizeLoadChain()
/external/llvm-project/llvm/tools/llvm-stress/
Dllvm-stress.cpp245 TempValues.push_back(getRandomConstant(VTp->getScalarType())); in getRandomValue()
389 bool isFloat = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
530 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act()
569 unsigned VSize = VTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
570 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
657 bool fp = Val0->getType()->getScalarType()->isFloatingPointTy(); in Act()
/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/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 …]

12345678910>>...13