/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LowLevelType.cpp | 20 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { argument 21 if (auto VTy = dyn_cast<VectorType>(&Ty)) { 29 if (auto PTy = dyn_cast<PointerType>(&Ty)) { 34 if (Ty.isSized()) { 37 auto SizeInBits = DL.getTypeSizeInBits(&Ty); 45 MVT llvm::getMVTForLLT(LLT Ty) { argument 46 if (!Ty.isVector()) 47 return MVT::getIntegerVT(Ty.getSizeInBits()); 50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), 51 Ty 54 getLLTForMVT(MVT Ty) argument [all...] |
H A D | BuiltinGCs.cpp | 75 Optional<bool> isGCManagedPointer(const Type *Ty) const override { 77 const PointerType *PT = cast<PointerType>(Ty); 107 Optional<bool> isGCManagedPointer(const Type *Ty) const override { 109 const PointerType *PT = cast<PointerType>(Ty);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LowLevelType.h | 28 LLT getLLTForType(Type &Ty, const DataLayout &DL); 32 MVT getMVTForLLT(LLT Ty); 36 LLT getLLTForMVT(MVT Ty);
|
H A D | Analysis.h | 47 /// \param Ty is the type indexed by \p Indices. 53 /// \returns \p CurIndex plus the linear index in \p Ty the indices list. 54 unsigned ComputeLinearIndex(Type *Ty, 59 inline unsigned ComputeLinearIndex(Type *Ty, argument 62 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex); 72 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty, 78 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty, 91 void computeValueLLTs(const DataLayout &DL, Type &Ty,
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | PatternInit.cpp | 15 llvm::Type *Ty) { 35 if (Ty->isIntOrIntVectorTy()) { 37 Ty->isVectorTy() ? Ty->getVectorElementType() : Ty) 40 return llvm::ConstantInt::get(Ty, IntValue); 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue))); 44 if (Ty->isPtrOrPtrVectorTy()) { 46 Ty->isVectorTy() ? Ty 14 initializationPatternFor(CodeGenModule &CGM, llvm::Type *Ty) argument [all...] |
H A D | TargetInfo.cpp | 49 // Ty - The argument / return value type 52 static ABIArgInfo coerceToIntArray(QualType Ty, argument 56 const uint64_t Size = Context.getTypeSize(Ty); 57 const uint64_t Alignment = Context.getTypeAlign(Ty); 82 ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByRef, bool Realign, argument 84 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), 89 ABIInfo::getNaturalAlignIndirectInReg(QualType Ty, bool Realign) const { argument 90 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), 95 QualType Ty) const { 162 QualType Ty local 176 useFirstFieldIfTransparentUnion(QualType Ty) argument 609 EmitVAArgInstr(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, const ABIArgInfo &AI) argument 939 X86AdjustInlineAsmType(CodeGen::CodeGenFunction &CGF, StringRef Constraint, llvm::Type* Ty) argument 960 isX86VectorTypeForVectorCall(ASTContext &Context, QualType Ty) argument 1250 shouldReturnTypeInRegister(QualType Ty, ASTContext &Context) const argument 1299 is32Or64BitBasicType(QualType Ty, ASTContext &Context) argument 1477 isSSEVectorType(ASTContext &Context, QualType Ty) argument 1481 isRecordWithSSEVectorType(ASTContext &Context, QualType Ty) argument 1506 getTypeStackAlignInBytes(QualType Ty, unsigned Align) const argument 1527 getIndirectResult(QualType Ty, bool ByVal, CCState &State) const argument 1564 updateFreeRegs(QualType Ty, CCState &State) const argument 1595 shouldAggregateUseDirect(QualType Ty, CCState &State, bool &InReg, bool &NeedsPadding) const argument 1625 shouldPrimitiveUseInReg(QualType Ty, CCState &State) const argument 1659 const QualType &Ty = Args[I].type; local 1671 classifyArgumentType(QualType Ty, CCState &State) const argument 1858 llvm::Type *Ty = llvm::Type::getInt8Ty(getVMContext()); local 2552 classify(QualType Ty, uint64_t OffsetBase, Class &Lo, Class &Hi, bool isNamedArg) const argument 9580 detectFPCCEligibleStruct(QualType Ty, llvm::Type *&Field1Ty, CharUnits &Field1Off, llvm::Type *&Field2Ty, CharUnits &Field2Off, int &NeededArgGPRs, int &NeededArgFPRs) const argument 9658 classifyArgumentType(QualType Ty, bool IsFixed, int &ArgGPRsLeft, int &ArgFPRsLeft) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86LegalizerInfo.cpp | 116 for (auto Ty : {p0, s1, s8, s16, s32}) 117 setAction({G_IMPLICIT_DEF, Ty}, Legal); 119 for (auto Ty : {s8, s16, s32, p0}) 120 setAction({G_PHI, Ty}, Legal); 123 for (auto Ty : {s8, s16, s32}) 124 setAction({BinOp, Ty}, Legal); 132 for (auto Ty : {s8, s16, s32, p0}) 133 setAction({MemOp, Ty}, Legal); 170 for (auto Ty : {s8, s16, s32, p0}) 171 setAction({TargetOpcode::G_CONSTANT, Ty}, Lega [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | NonnullGlobalConstantsChecker.cpp | 52 bool isNonnullType(QualType Ty) const; 105 QualType Ty = Decl->getType(); 106 bool HasConst = Ty.isConstQualified(); 107 if (isNonnullType(Ty) && HasConst) 111 while (const Type *T = Ty.getTypePtr()) { 113 Ty = TT->getDecl()->getUnderlyingType(); 116 HasConst = HasConst || Ty.isConstQualified(); 117 if (isNonnullType(Ty) && HasConst) 122 Ty = AT->getModifiedType(); 131 bool NonnullGlobalConstantsChecker::isNonnullType(QualType Ty) cons [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVTargetTransformInfo.cpp | 18 int RISCVTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty) { argument 19 assert(Ty->isIntegerTy() && 28 return RISCVMatInt::getIntMatCost(Imm, DL.getTypeSizeInBits(Ty), 33 Type *Ty) { 34 assert(Ty->isIntegerTy() && 81 return getIntImmCost(Imm, Ty); 89 const APInt &Imm, Type *Ty) { 32 getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty) argument 88 getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty) argument
|
H A D | RISCVTargetTransformInfo.h | 44 int getIntImmCost(const APInt &Imm, Type *Ty); 45 int getIntImmCostInst(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 47 Type *Ty);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedUser.h | 37 DerivedUser(Type *Ty, unsigned VK, Use *U, unsigned NumOps, argument 39 : User(Ty, VK, U, NumOps), DeleteValue(DeleteValue) {}
|
H A D | DataLayout.h | 179 bool ABIAlign, Type *Ty) const; 184 Align getAlignment(Type *Ty, bool abi_or_pref) const; 384 bool isNonIntegralPointerType(Type *Ty) const { 385 auto *PTy = dyn_cast<PointerType>(Ty); 415 unsigned getIndexTypeSizeInBits(Type *Ty) const; 417 unsigned getPointerTypeSize(Type *Ty) const { 418 return getPointerTypeSizeInBits(Ty) / 8; 440 /// If Ty is a scalable vector type, the scalable property will be set and 445 TypeSize getTypeSizeInBits(Type *Ty) const; 450 /// If Ty i [all...] |
H A D | Constants.h | 65 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} argument 88 ConstantInt(IntegerType *Ty, const APInt& V); 97 static Constant *getTrue(Type *Ty); 98 static Constant *getFalse(Type *Ty); 100 /// If Ty is a vector type, return a Constant with a splat of the given 102 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false); 110 static ConstantInt *get(IntegerType *Ty, uint64_t V, 116 /// signed value for the type Ty. 118 static ConstantInt *getSigned(IntegerType *Ty, int64_ 343 ConstantAggregateZero(Type *Ty) argument 723 Type *Ty = ArrayType::get(ElementTy, NumElements); local 1154 getGetElementPtr(Type *Ty, Constant *C, ArrayRef<Constant *> IdxList, bool InBounds = false, Optional<unsigned> InRangeIndex = None, Type *OnlyIfReducedTy = nullptr) argument 1163 getGetElementPtr(Type *Ty, Constant *C, Constant *Idx, bool InBounds = false, Optional<unsigned> InRangeIndex = None, Type *OnlyIfReducedTy = nullptr) argument 1181 getInBoundsGetElementPtr(Type *Ty, Constant *C, ArrayRef<Constant *> IdxList) argument 1185 getInBoundsGetElementPtr(Type *Ty, Constant *C, Constant *Idx) argument 1192 getInBoundsGetElementPtr(Type *Ty, Constant *C, ArrayRef<Value *> IdxList) argument [all...] |
H A D | GlobalAlias.h | 31 GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage, 40 static GlobalAlias *create(Type *Ty, unsigned AddressSpace, 45 static GlobalAlias *create(Type *Ty, unsigned AddressSpace, 50 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsCCState.cpp | 38 /// This function returns true if Ty is fp128, {f128} or i128 which was 40 static bool originalTypeIsF128(const Type *Ty, const char *Func) { argument 41 if (Ty->isFP128Ty()) 44 if (Ty->isStructTy() && Ty->getStructNumElements() == 1 && 45 Ty->getStructElementType(0)->isFP128Ty()) 48 // If the Ty is i128 and the function being called is a long double emulation 50 return (Func && Ty->isIntegerTy(128) && isF128SoftLibCall(Func)); 54 static bool originalEVTTypeIsVectorFloat(EVT Ty) { argument 55 if (Ty 62 originalTypeIsVectorFloat(const Type * Ty) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 285 Type *Ty = getType(); 286 if (!isa<Constant>(Y) || !Ty->isVectorTy() || Ty != Y->getType()) 318 Constant *Constant::getNullValue(Type *Ty) { argument 319 switch (Ty->getTypeID()) { 321 return ConstantInt::get(Ty, 0); 323 return ConstantFP::get(Ty->getContext(), 326 return ConstantFP::get(Ty->getContext(), 329 return ConstantFP::get(Ty->getContext(), 332 return ConstantFP::get(Ty 355 getIntegerValue(Type *Ty, const APInt &V) argument 372 getAllOnesValue(Type *Ty) argument 629 Type *Ty = C->getType(); local 655 ConstantInt(IntegerType *Ty, const APInt &V) argument 674 getTrue(Type *Ty) argument 682 getFalse(Type *Ty) argument 704 get(Type *Ty, uint64_t V, bool isSigned) argument 714 get(IntegerType *Ty, uint64_t V, bool isSigned) argument 718 getSigned(IntegerType *Ty, int64_t V) argument 722 getSigned(Type *Ty, int64_t V) argument 726 get(Type *Ty, const APInt& V) argument 738 get(IntegerType* Ty, StringRef Str, uint8_t radix) argument 751 TypeToFloatSemantics(Type *Ty) argument 767 get(Type *Ty, double V) argument 783 get(Type *Ty, const APFloat &V) argument 795 get(Type *Ty, StringRef Str) argument 808 getNaN(Type *Ty, bool Negative, uint64_t Payload) argument 819 getQNaN(Type *Ty, bool Negative, APInt *Payload) argument 830 getSNaN(Type *Ty, bool Negative, APInt *Payload) argument 841 getNegativeZero(Type *Ty) argument 853 getZeroValueForNegation(Type *Ty) argument 868 Type *Ty; local 890 getInfinity(Type *Ty, bool Negative) argument 900 ConstantFP(Type *Ty, const APFloat &V) argument 940 Type *Ty = getType(); local 973 Type *Ty = getType(); local 1065 get(ArrayType *Ty, ArrayRef<Constant*> V) argument 1071 getImpl(ArrayType *Ty, ArrayRef<Constant*> V) argument 1288 getWithOperands(ArrayRef<Constant *> Ops, Type *Ty, bool OnlyIfReduced, Type *SrcTy) const argument 1349 isValueValidForType(Type *Ty, uint64_t Val) argument 1356 isValueValidForType(Type *Ty, int64_t Val) argument 1363 isValueValidForType(Type *Ty, const APFloat& Val) argument 1414 get(Type *Ty) argument 1500 get(PointerType *Ty) argument 1514 get(Type *Ty) argument 1611 getFoldedCast(Instruction::CastOps opc, Constant *C, Type *Ty, bool OnlyIfReduced = false) argument 1629 getCast(unsigned oc, Constant *C, Type *Ty, bool OnlyIfReduced) argument 1668 getZExtOrBitCast(Constant *C, Type *Ty) argument 1674 getSExtOrBitCast(Constant *C, Type *Ty) argument 1680 getTruncOrBitCast(Constant *C, Type *Ty) argument 1686 getPointerCast(Constant *S, Type *Ty) argument 1701 getPointerBitCastOrAddrSpaceCast(Constant *S, Type *Ty) argument 1712 getIntegerCast(Constant *C, Type *Ty, bool isSigned) argument 1724 getFPCast(Constant *C, Type *Ty) argument 1736 getTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1750 getSExt(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1764 getZExt(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1778 getFPTrunc(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1790 getFPExtend(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1802 getUIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1813 getSIToFP(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1824 getFPToUI(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1835 getFPToSI(Constant *C, Type *Ty, bool OnlyIfReduced) argument 1995 getSizeOf(Type* Ty) argument 2005 getAlignOf(Type* Ty) argument 2023 getOffsetOf(Type* Ty, Constant *FieldNo) argument 2075 getGetElementPtr(Type *Ty, Constant *C, ArrayRef<Value *> Idxs, bool InBounds, Optional<unsigned> InRangeIndex, Type *OnlyIfReducedTy) argument 2406 getBinOpIdentity(unsigned Opcode, Type *Ty, bool AllowRHSConstant) argument 2452 getBinOpAbsorber(unsigned Opcode, Type *Ty) argument 2509 isElementTypeCompatible(Type *Ty) argument 2630 Type *Ty = ArrayType::get(Type::getHalfTy(Context), Elts.size()); local 2636 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); local 2642 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); local 2664 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); local 2669 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); local 2674 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); local 2679 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); local 2684 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); local 2689 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); local 2701 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size()); local 2707 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); local 2713 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); local [all...] |
H A D | TypeFinder.cpp | 92 void TypeFinder::incorporateType(Type *Ty) { argument 94 if (!VisitedTypes.insert(Ty).second) 98 TypeWorklist.push_back(Ty); 100 Ty = TypeWorklist.pop_back_val(); 103 if (StructType *STy = dyn_cast<StructType>(Ty)) 108 for (Type::subtype_reverse_iterator I = Ty->subtype_rbegin(), 109 E = Ty->subtype_rend();
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiTargetTransformInfo.h | 52 int getIntImmCost(const APInt &Imm, Type *Ty) { argument 53 assert(Ty->isIntegerTy()); 69 int getIntImmCostInst(unsigned Opc, unsigned Idx, const APInt &Imm, Type *Ty) { argument 70 return getIntImmCost(Imm, Ty); 74 Type *Ty) { 75 return getIntImmCost(Imm, Ty); 79 unsigned Opcode, Type *Ty, 90 return BaseT::getArithmeticInstrCost(Opcode, Ty, Opd1Info, Opd2Info, 101 return 64 * BaseT::getArithmeticInstrCost(Opcode, Ty, Opd1Info, Opd2Info, 73 getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, const APInt &Imm, Type *Ty) argument 78 getArithmeticInstrCost( unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None, ArrayRef<const Value *> Args = ArrayRef<const Value *>(), const Instruction *CxtI = nullptr) argument
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ |
H A D | Target.cpp | 101 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 102 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); 105 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 106 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); 109 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 110 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); 113 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 114 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); 117 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { argument 118 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); 121 LLVMPreferredAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyMachineFunctionInfo.cpp | 30 Type *Ty, SmallVectorImpl<MVT> &ValueVTs) { 35 ComputeValueVTs(TLI, DL, Ty, VTs); 45 void llvm::computeSignatureVTs(const FunctionType *Ty, const Function &F, argument 49 computeLegalValueVTs(F, TM, Ty->getReturnType(), Results); 62 for (auto *Param : Ty->params()) 64 if (Ty->isVarArg()) 70 for (MVT Ty : In) 71 Out.push_back(WebAssembly::toValType(Ty)); 29 computeLegalValueVTs(const Function &F, const TargetMachine &TM, Type *Ty, SmallVectorImpl<MVT> &ValueVTs) argument
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | DynamicTypeInfo.h | 23 DynamicTypeInfo(QualType Ty, bool CanBeSub = true) argument 24 : DynTy(Ty), CanBeASubClass(CanBeSub) {}
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 82 Value *checkGEP(Value *&Offsets, Type *Ty, Value *Ptr, IRBuilder<> Builder); 118 Value *MVEGatherScatterLowering::checkGEP(Value *&Offsets, Type *Ty, Value *Ptr, argument 144 Type *OffsType = VectorType::getInteger(cast<VectorType>(Ty)); 182 Type *Ty = I->getType(); local 188 if (!isLegalTypeAndAlignment(Ty->getVectorNumElements(), 189 Ty->getScalarSizeInBits(), Alignment)) 219 Type *Ty = I->getType(); local 220 if (Ty->getVectorNumElements() != 4) 226 {Ty, Ptr->getType()}, 231 {Ty, Pt [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | CodeViewDebug.h | 377 codeview::TypeIndex getTypeIndex(const DIType *Ty, 384 codeview::TypeIndex getTypeIndexForReferenceTo(const DIType *Ty); 393 void addToUDTs(const DIType *Ty); 395 void addUDTSrcLine(const DIType *Ty, codeview::TypeIndex TI); 397 codeview::TypeIndex lowerType(const DIType *Ty, const DIType *ClassTy); 398 codeview::TypeIndex lowerTypeAlias(const DIDerivedType *Ty); 399 codeview::TypeIndex lowerTypeArray(const DICompositeType *Ty); 400 codeview::TypeIndex lowerTypeBasic(const DIBasicType *Ty); 402 const DIDerivedType *Ty, 405 const DIDerivedType *Ty, [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Linker/ |
H A D | IRMover.h | 55 void addNonOpaque(StructType *Ty); 56 void switchToNonOpaque(StructType *Ty); 57 void addOpaque(StructType *Ty); 59 bool hasType(StructType *Ty);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.h | 59 bool isWideningInstruction(Type *Ty, unsigned Opcode, 75 int getIntImmCost(const APInt &Imm, Type *Ty); 77 Type *Ty); 79 Type *Ty); 123 unsigned Opcode, Type *Ty, 131 int getAddressComputationCost(Type *Ty, ScalarEvolution *SE, const SCEV *Ptr); 156 Type *Ty = DataType->getVectorElementType(); 157 if (Ty->isHalfTy() || Ty->isFloatTy() || Ty [all...] |