/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LowLevelTypeUtils.cpp | 20 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { in getLLTForType() argument 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { in getLLTForType() 29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { in getLLTForType() 34 if (Ty.isSized() && !Ty.isScalableTargetExtTy()) { in getLLTForType() 37 auto SizeInBits = DL.getTypeSizeInBits(&Ty); in getLLTForType() 42 if (Ty.isTokenTy()) in getLLTForType() 48 MVT llvm::getMVTForLLT(LLT Ty) { in getMVTForLLT() argument 49 if (!Ty.isVector()) in getMVTForLLT() 50 return MVT::getIntegerVT(Ty.getSizeInBits()); in getMVTForLLT() 53 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | SystemZ.cpp | 31 bool isPromotableIntegerTypeForABI(QualType Ty) const; 32 bool isCompoundType(QualType Ty) const; 33 bool isVectorArgumentType(QualType Ty) const; 34 bool isFPArgumentType(QualType Ty) const; 35 QualType GetSingleElementType(QualType Ty) const; 41 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 57 bool isVectorTypeBased(const Type *Ty, bool IsParam) const; 73 void handleExternallyVisibleObjABI(const Type *Ty, CodeGen::CodeGenModule &M, in handleExternallyVisibleObjABI() argument 75 if (!HasVisibleVecABIFlag && isVectorTypeBased(Ty, IsParam)) { in handleExternallyVisibleObjABI() 109 llvm::Type *Ty = V->getType(); in testFPKind() local [all …]
|
H A D | PPC.cpp | 17 QualType Ty, CharUnits SlotSize, in complexTempStructure() argument 110 CharUnits getParamTypeAlignment(QualType Ty) const; 116 bool isPromotableTypeForABI(QualType Ty) const; 119 ABIArgInfo classifyArgumentType(QualType Ty) const; 129 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 154 bool AIXABIInfo::isPromotableTypeForABI(QualType Ty) const { in isPromotableTypeForABI() 156 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI() 157 Ty = EnumTy->getDecl()->getIntegerType(); in isPromotableTypeForABI() 160 if (getContext().isPromotableIntegerType(Ty)) in isPromotableTypeForABI() 169 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI() [all …]
|
H A D | ARC.cpp | 27 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 30 void updateState(const ABIArgInfo &Info, QualType Ty, CCState &State) const { in updateState() argument 36 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState() 58 ABIArgInfo getIndirectByRef(QualType Ty, bool HasFreeRegs) const; 59 ABIArgInfo getIndirectByValue(QualType Ty) const; 60 ABIArgInfo classifyArgumentType(QualType Ty, uint8_t FreeRegs) const; 71 ABIArgInfo ARCABIInfo::getIndirectByRef(QualType Ty, bool HasFreeRegs) const { in getIndirectByRef() argument 72 return HasFreeRegs ? getNaturalAlignIndirectInReg(Ty) : in getIndirectByRef() 73 getNaturalAlignIndirect(Ty, false); in getIndirectByRef() 76 ABIArgInfo ARCABIInfo::getIndirectByValue(QualType Ty) const { in getIndirectByValue() [all …]
|
H A D | CSKY.cpp | 31 ABIArgInfo classifyArgumentType(QualType Ty, int &ArgGPRsLeft, 36 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 61 QualType Ty, AggValueSlot Slot) const { in EmitVAArg() argument 65 if (isEmptyRecord(getContext(), Ty, true)) in EmitVAArg() 68 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg() 70 return emitVoidPtrVAArg(CGF, VAListAddr, Ty, false, TInfo, SlotSize, in EmitVAArg() 74 ABIArgInfo CSKYABIInfo::classifyArgumentType(QualType Ty, int &ArgGPRsLeft, in classifyArgumentType() argument 78 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType() 82 if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(Ty, getCXXABI())) { in classifyArgumentType() 85 return getNaturalAlignIndirect(Ty, /*ByVal=*/RAA == in classifyArgumentType() [all …]
|
H A D | RISCV.cpp | 31 bool detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff, 47 ABIArgInfo classifyArgumentType(QualType Ty, bool IsFixed, int &ArgGPRsLeft, 51 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 54 ABIArgInfo extendType(QualType Ty) const; 56 bool detectFPCCEligibleStruct(QualType Ty, llvm::Type *&Field1Ty, 65 ABIArgInfo coerceVLSVector(QualType Ty) const; 108 bool RISCVABIInfo::detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff, in detectFPCCEligibleStructHelper() argument 113 bool IsInt = Ty->isIntegralOrEnumerationType(); in detectFPCCEligibleStructHelper() 114 bool IsFloat = Ty->isRealFloatingType(); in detectFPCCEligibleStructHelper() 117 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper() [all …]
|
H A D | Lanai.cpp | 28 bool shouldUseInReg(QualType Ty, CCState &State) const; 46 ABIArgInfo getIndirectResult(QualType Ty, bool ByVal, CCState &State) const; 51 bool LanaiABIInfo::shouldUseInReg(QualType Ty, CCState &State) const { in shouldUseInReg() argument 52 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg() 68 ABIArgInfo LanaiABIInfo::getIndirectResult(QualType Ty, bool ByVal, in getIndirectResult() argument 73 return getNaturalAlignIndirectInReg(Ty); in getIndirectResult() 75 return getNaturalAlignIndirect(Ty, false); in getIndirectResult() 80 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult() 86 ABIArgInfo LanaiABIInfo::classifyArgumentType(QualType Ty, in classifyArgumentType() argument 89 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType() [all …]
|
H A D | LoongArch.cpp | 31 bool detectFARsEligibleStructHelper(QualType Ty, CharUnits CurOff, 43 ABIArgInfo classifyArgumentType(QualType Ty, bool IsFixed, int &GARsLeft, 47 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 50 ABIArgInfo extendType(QualType Ty) const; 52 bool detectFARsEligibleStruct(QualType Ty, llvm::Type *&Field1Ty, 104 QualType Ty, CharUnits CurOff, llvm::Type *&Field1Ty, CharUnits &Field1Off, in detectFARsEligibleStructHelper() argument 106 bool IsInt = Ty->isIntegralOrEnumerationType(); in detectFARsEligibleStructHelper() 107 bool IsFloat = Ty->isRealFloatingType(); in detectFARsEligibleStructHelper() 110 uint64_t Size = getContext().getTypeSize(Ty); in detectFARsEligibleStructHelper() 123 Field1Ty = CGT.ConvertType(Ty); in detectFARsEligibleStructHelper() [all …]
|
H A D | X86.cpp | 29 llvm::Type* Ty) { in X86AdjustInlineAsmType() argument 33 if (IsMMXCons && Ty->isVectorTy()) { in X86AdjustInlineAsmType() 34 if (cast<llvm::VectorType>(Ty)->getPrimitiveSizeInBits().getFixedValue() != in X86AdjustInlineAsmType() 45 return llvm::FixedVectorType::get(Int1Ty, Ty->getScalarSizeInBits()); in X86AdjustInlineAsmType() 49 return Ty; in X86AdjustInlineAsmType() 54 static bool isX86VectorTypeForVectorCall(ASTContext &Context, QualType Ty) { in isX86VectorTypeForVectorCall() argument 55 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isX86VectorTypeForVectorCall() 64 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isX86VectorTypeForVectorCall() 127 bool isHomogeneousAggregateBaseType(QualType Ty) const override { in isHomogeneousAggregateBaseType() 129 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType() [all …]
|
H A D | ARM.cpp | 72 ABIArgInfo classifyHomogeneousAggregate(QualType Ty, const Type *Base, 74 ABIArgInfo coerceIllegalVector(QualType Ty) const; 75 bool isIllegalVectorType(QualType Ty) const; 76 bool containsAnyFP16Vectors(QualType Ty) const; 78 bool isHomogeneousAggregateBaseType(QualType Ty) const override; 79 bool isHomogeneousAggregateSmallEnough(const Type *Ty, 87 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 289 ABIArgInfo ARMABIInfo::coerceIllegalVector(QualType Ty) const { in coerceIllegalVector() 290 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector() 301 return getNaturalAlignIndirect(Ty, /*ByVal=*/false); in coerceIllegalVector() [all …]
|
H A D | Hexagon.cpp | 32 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 35 QualType Ty) const; 37 QualType Ty) const; 39 QualType Ty) const; 96 ABIArgInfo HexagonABIInfo::classifyArgumentType(QualType Ty, in classifyArgumentType() argument 98 if (!isAggregateTypeForABI(Ty)) { in classifyArgumentType() 100 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType() 101 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType() 103 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType() 107 if (Size > 64 && Ty->isBitIntType()) in classifyArgumentType() [all …]
|
H A D | Mips.cpp | 26 llvm::Type* HandleAggregates(QualType Ty, uint64_t TySize) const; 37 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 39 ABIArgInfo extendType(QualType Ty) const; 128 llvm::Type* MipsABIInfo::HandleAggregates(QualType Ty, uint64_t TySize) const { in HandleAggregates() argument 136 if (Ty->isComplexType()) in HandleAggregates() 137 return CGT.ConvertType(Ty); in HandleAggregates() 139 const RecordType *RT = Ty->getAs<RecordType>(); in HandleAggregates() 159 const QualType Ty = i->getType(); in HandleAggregates() local 160 const BuiltinType *BT = Ty->getAs<BuiltinType>(); in HandleAggregates() 193 MipsABIInfo::classifyArgumentType(QualType Ty, uint64_t &Offset) const { in classifyArgumentType() argument [all …]
|
H A D | PNaCl.cpp | 30 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 49 QualType Ty, AggValueSlot Slot) const { in EmitVAArg() argument 58 EmitVAArgInstr(CGF, VAListAddr, Ty, ABIArgInfo::getDirect()), Ty), in EmitVAArg() 63 ABIArgInfo PNaClABIInfo::classifyArgumentType(QualType Ty) const { in classifyArgumentType() 64 if (isAggregateTypeForABI(Ty)) { in classifyArgumentType() 65 if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(Ty, getCXXABI())) in classifyArgumentType() 66 return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory); in classifyArgumentType() 67 return getNaturalAlignIndirect(Ty); in classifyArgumentType() 68 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType() 70 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType() [all …]
|
H A D | AArch64.cpp | 40 ABIArgInfo coerceIllegalVector(QualType Ty) const; 41 bool isHomogeneousAggregateBaseType(QualType Ty) const override; 42 bool isHomogeneousAggregateSmallEnough(const Type *Ty, 46 bool isIllegalVectorType(QualType Ty) const; 58 RValue EmitDarwinVAArg(Address VAListAddr, QualType Ty, CodeGenFunction &CGF, 61 RValue EmitAAPCSVAArg(Address VAListAddr, QualType Ty, CodeGenFunction &CGF, 64 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, in EmitVAArg() argument 66 llvm::Type *BaseTy = CGF.ConvertType(Ty); in EmitVAArg() 72 ? EmitMSVAArg(CGF, VAListAddr, Ty, Slot) in EmitVAArg() 73 : isDarwinPCS() ? EmitDarwinVAArg(VAListAddr, Ty, CGF, Slot) in EmitVAArg() [all …]
|
H A D | VE.cpp | 30 ABIArgInfo VEABIInfo::classifyReturnType(QualType Ty) const { in classifyReturnType() 31 if (Ty->isAnyComplexType()) in classifyReturnType() 33 uint64_t Size = getContext().getTypeSize(Ty); in classifyReturnType() 34 if (Size < 64 && Ty->isIntegerType()) in classifyReturnType() 35 return ABIArgInfo::getExtend(Ty); in classifyReturnType() 36 return DefaultABIInfo::classifyReturnType(Ty); in classifyReturnType() 39 ABIArgInfo VEABIInfo::classifyArgumentType(QualType Ty) const { in classifyArgumentType() 40 if (Ty->isAnyComplexType()) in classifyArgumentType() 42 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType() 43 if (Size < 64 && Ty->isIntegerType()) in classifyArgumentType() [all …]
|
H A D | WebAssembly.cpp | 32 ABIArgInfo classifyArgumentType(QualType Ty) const; 44 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, 99 ABIArgInfo WebAssemblyABIInfo::classifyArgumentType(QualType Ty) const { in classifyArgumentType() 100 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType() 102 if (isAggregateTypeForABI(Ty)) { in classifyArgumentType() 105 if (auto RAA = getRecordArgABI(Ty, getCXXABI())) in classifyArgumentType() 106 return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory); in classifyArgumentType() 108 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType() 113 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType() 117 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 370 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 371 switch (Ty->getTypeID()) { in getNullValue() 373 return ConstantInt::get(Ty, 0); in getNullValue() 381 return ConstantFP::get(Ty->getContext(), in getNullValue() 382 APFloat::getZero(Ty->getFltSemantics())); in getNullValue() 384 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue() 389 return ConstantAggregateZero::get(Ty); in getNullValue() 391 return ConstantTokenNone::get(Ty->getContext()); in getNullValue() 393 return ConstantTargetNone::get(cast<TargetExtType>(Ty)); in getNullValue() 400 Constant *Constant::getIntegerValue(Type *Ty, const APInt &V) { in getIntegerValue() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/ |
H A D | WebAssemblyTypeUtilities.h | 30 inline bool isWebAssemblyExternrefType(const Type *Ty) { in isWebAssemblyExternrefType() argument 31 return Ty->isPointerTy() && in isWebAssemblyExternrefType() 32 Ty->getPointerAddressSpace() == in isWebAssemblyExternrefType() 37 inline bool isWebAssemblyFuncrefType(const Type *Ty) { in isWebAssemblyFuncrefType() argument 38 return Ty->isPointerTy() && in isWebAssemblyFuncrefType() 39 Ty->getPointerAddressSpace() == in isWebAssemblyFuncrefType() 44 inline bool isWebAssemblyReferenceType(const Type *Ty) { in isWebAssemblyReferenceType() argument 45 return isWebAssemblyExternrefType(Ty) || isWebAssemblyFuncrefType(Ty); in isWebAssemblyReferenceType() 49 inline bool isWebAssemblyTableType(const Type *Ty) { in isWebAssemblyTableType() argument 50 return Ty->isArrayTy() && in isWebAssemblyTableType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 49 static void executeFNegInst(GenericValue &Dest, GenericValue Src, Type *Ty) { in executeFNegInst() argument 50 switch (Ty->getTypeID()) { in executeFNegInst() 64 Type *Ty = I.getOperand(0)->getType(); in visitUnaryOperator() local 69 if (Ty->isVectorTy()) { in visitUnaryOperator() 77 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) { in visitUnaryOperator() 80 } else if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) { in visitUnaryOperator() 93 case Instruction::FNeg: executeFNegInst(R, Src, Ty); break; in visitUnaryOperator() 109 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 110 switch (Ty->getTypeID()) { in executeFAddInst() 114 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.h | 288 bool isCheapToSpeculateCttz(Type *Ty) const override; 289 bool isCheapToSpeculateCtlz(Type *Ty) const override; 377 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const; 384 SDValue getAddrLocal(NodeTy *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal() argument 387 SDValue GOT = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrLocal() 388 getTargetNode(N, Ty, DAG, GOTFlag)); in getAddrLocal() 390 DAG.getLoad(Ty, DL, DAG.getEntryNode(), GOT, in getAddrLocal() 393 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, in getAddrLocal() 394 getTargetNode(N, Ty, DAG, LoFlag)); in getAddrLocal() 395 return DAG.getNode(ISD::ADD, DL, Ty, Load, Lo); in getAddrLocal() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DataLayout.h | 182 Align getAlignment(Type *Ty, bool abi_or_pref) const; 402 bool isNonIntegralPointerType(Type *Ty) const { in isNonIntegralPointerType() argument 403 auto *PTy = dyn_cast<PointerType>(Ty); in isNonIntegralPointerType() 433 unsigned getIndexTypeSizeInBits(Type *Ty) const; 435 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() argument 436 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize() 463 TypeSize getTypeSizeInBits(Type *Ty) const; 472 TypeSize getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() argument 473 TypeSize BaseSize = getTypeSizeInBits(Ty); in getTypeStoreSize() 484 TypeSize getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
H A D | RISCVRegisterBankInfo.cpp | 117 LLT Ty) const { in getRegBankFromRegClass() 304 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local 305 TypeSize Size = Ty.getSizeInBits(); in getInstrMapping() 308 if (Ty.isVector()) in getInstrMapping() 319 assert(Ty.isVector() == OpTy.isVector() && in getInstrMapping() 357 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local 361 if (GPRSize == 32 && Ty.getSizeInBits() == 64) { in getInstrMapping() 363 OpdsMapping[0] = getFPValueMapping(Ty.getSizeInBits()); in getInstrMapping() 375 OpdsMapping[0] = getFPValueMapping(Ty.getSizeInBits()); in getInstrMapping() 380 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 698 Constant *llvm::ConstantFoldLoadFromConst(Constant *C, Type *Ty, in ConstantFoldLoadFromConst() argument 702 if (Constant *Result = ConstantFoldLoadThroughBitcast(AtOffset, Ty, DL)) in ConstantFoldLoadFromConst() 709 return PoisonValue::get(Ty); in ConstantFoldLoadFromConst() 712 if (Constant *Result = ConstantFoldLoadFromUniformValue(C, Ty, DL)) in ConstantFoldLoadFromConst() 718 FoldReinterpretLoadFromConst(C, Ty, Offset.getSExtValue(), DL)) in ConstantFoldLoadFromConst() 724 Constant *llvm::ConstantFoldLoadFromConst(Constant *C, Type *Ty, in ConstantFoldLoadFromConst() argument 726 return ConstantFoldLoadFromConst(C, Ty, APInt(64, 0), DL); in ConstantFoldLoadFromConst() 729 Constant *llvm::ConstantFoldLoadFromConstPtr(Constant *C, Type *Ty, in ConstantFoldLoadFromConstPtr() argument 742 if (Constant *Result = ConstantFoldLoadFromConst(GV->getInitializer(), Ty, in ConstantFoldLoadFromConstPtr() 748 return ConstantFoldLoadFromUniformValue(GV->getInitializer(), Ty, DL); in ConstantFoldLoadFromConstPtr() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 16 llvm::Type *Ty) { in initializationPatternFor() argument 36 if (Ty->isIntOrIntVectorTy()) { in initializationPatternFor() 38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor() 40 return llvm::ConstantInt::get(Ty, IntValue); in initializationPatternFor() 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue))); in initializationPatternFor() 44 if (Ty->isPtrOrPtrVectorTy()) { in initializationPatternFor() 45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); in initializationPatternFor() 54 if (Ty->isFPOrFPVectorTy()) { in initializationPatternFor() 56 Ty->getScalarType()->getFltSemantics()); in initializationPatternFor() 60 return llvm::ConstantFP::getQNaN(Ty, NegativeNaN, &Payload); in initializationPatternFor() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | NonnullGlobalConstantsChecker.cpp | 53 bool isNonnullType(QualType Ty) const; 107 QualType Ty = Decl->getType(); in isGlobalConstString() local 108 bool HasConst = Ty.isConstQualified(); in isGlobalConstString() 109 if (isNonnullType(Ty) && HasConst) in isGlobalConstString() 113 while (const Type *T = Ty.getTypePtr()) { in isGlobalConstString() 117 Ty = AT->getModifiedType(); in isGlobalConstString() 122 Ty = TT->getDecl()->getUnderlyingType(); in isGlobalConstString() 125 HasConst = HasConst || Ty.isConstQualified(); in isGlobalConstString() 126 if (isNonnullType(Ty) && HasConst) in isGlobalConstString() 136 bool NonnullGlobalConstantsChecker::isNonnullType(QualType Ty) const { in isNonnullType() [all …]
|