| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| LowLevelType.cpp | 21 LLT llvm::getLLTForType(Type &Ty, const DataLayout &DL) { 22 if (auto VTy = dyn_cast<VectorType>(&Ty)) { 30 if (auto PTy = dyn_cast<PointerType>(&Ty)) { 35 if (Ty.isSized()) { 38 auto SizeInBits = DL.getTypeSizeInBits(&Ty); 46 MVT llvm::getMVTForLLT(LLT Ty) { 47 if (!Ty.isVector()) 48 return MVT::getIntegerVT(Ty.getSizeInBits()); 51 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), 52 Ty.getNumElements()) [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| LowLevelType.h | 29 LLT getLLTForType(Type &Ty, const DataLayout &DL); 33 MVT getMVTForLLT(LLT Ty); 37 LLT getLLTForMVT(MVT Ty); 41 const llvm::fltSemantics &getFltSemanticForLLT(LLT Ty);
|
| Analysis.h | 43 /// \param Ty is the type indexed by \p Indices. 49 /// \returns \p CurIndex plus the linear index in \p Ty the indices list. 50 unsigned ComputeLinearIndex(Type *Ty, 55 inline unsigned ComputeLinearIndex(Type *Ty, 58 return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex); 68 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty, 74 void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty, 87 void computeValueLLTs(const DataLayout &DL, Type &Ty,
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| PatternInit.cpp | 16 llvm::Type *Ty) { 36 if (Ty->isIntOrIntVectorTy()) { 38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); 40 return llvm::ConstantInt::get(Ty, IntValue); 42 Ty, llvm::APInt::getSplat(BitWidth, llvm::APInt(64, IntValue))); 44 if (Ty->isPtrOrPtrVectorTy()) { 45 auto *PtrTy = cast<llvm::PointerType>(Ty->getScalarType()); 54 if (Ty->isFPOrFPVectorTy()) { 56 Ty->getScalarType()->getFltSemantics()); 60 return llvm::ConstantFP::getQNaN(Ty, NegativeNaN, &Payload) [all...] |
| TargetInfo.cpp | 53 // Ty - The argument / return value type 56 static ABIArgInfo coerceToIntArray(QualType Ty, 60 const uint64_t Size = Context.getTypeSize(Ty); 61 const uint64_t Alignment = Context.getTypeAlign(Ty); 85 ABIArgInfo ABIInfo::getNaturalAlignIndirect(QualType Ty, bool ByVal, 88 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal, 93 ABIInfo::getNaturalAlignIndirectInReg(QualType Ty, bool Realign) const { 94 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), 99 QualType Ty) const { 103 bool ABIInfo::isPromotableIntegerTypeForABI(QualType Ty) const 2352 llvm::Type *ty = info.getCoerceToType(); local [all...] |
| ABIInfo.h | 81 /// \arg Ty from the va_list pointed to by \arg VAListAddr. 89 QualType Ty) const = 0; 94 /// \arg Ty from the \c __builtin_ms_va_list pointed to by \arg VAListAddr. 97 QualType Ty) const; 99 virtual bool isHomogeneousAggregateBaseType(QualType Ty) const; 104 bool isHomogeneousAggregate(QualType Ty, const Type *&Base, 109 bool isPromotableIntegerTypeForABI(QualType Ty) const; 114 getNaturalAlignIndirect(QualType Ty, bool ByVal = true, 119 getNaturalAlignIndirectInReg(QualType Ty, bool Realign = false) const;
|
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| 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) const [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| X86LegalizerInfo.cpp | 110 for (auto Ty : {p0, s1, s8, s16, s32}) 111 setAction({G_IMPLICIT_DEF, Ty}, Legal); 113 for (auto Ty : {s8, s16, s32, p0}) 114 setAction({G_PHI, Ty}, Legal); 117 for (auto Ty : {s8, s16, s32}) 118 setAction({BinOp, Ty}, Legal); 126 for (auto Ty : {s8, s16, s32, p0}) 127 setAction({MemOp, Ty}, Legal); 169 for (auto Ty : {s8, s16, s32, p0}) 170 setAction({TargetOpcode::G_CONSTANT, Ty}, Legal) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| 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);
|
| Constants.cpp | 347 Constant *Constant::getNullValue(Type *Ty) { 348 switch (Ty->getTypeID()) { 350 return ConstantInt::get(Ty, 0); 352 return ConstantFP::get(Ty->getContext(), 355 return ConstantFP::get(Ty->getContext(), 358 return ConstantFP::get(Ty->getContext(), 361 return ConstantFP::get(Ty->getContext(), 364 return ConstantFP::get(Ty->getContext(), 367 return ConstantFP::get(Ty->getContext(), 370 return ConstantFP::get(Ty->getContext() [all...] |
| TypeFinder.cpp | 92 void TypeFinder::incorporateType(Type *Ty) { 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();
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| DerivedUser.h | 37 DerivedUser(Type *Ty, unsigned VK, Use *U, unsigned NumOps, 39 : User(Ty, VK, U, NumOps), DeleteValue(DeleteValue) {}
|
| DataLayout.h | 188 Align getAlignment(Type *Ty, bool abi_or_pref) const; 396 bool isNonIntegralPointerType(Type *Ty) const { 397 auto *PTy = dyn_cast<PointerType>(Ty); 427 unsigned getIndexTypeSizeInBits(Type *Ty) const; 429 unsigned getPointerTypeSize(Type *Ty) const { 430 return getPointerTypeSizeInBits(Ty) / 8; 452 /// If Ty is a scalable vector type, the scalable property will be set and 457 TypeSize getTypeSizeInBits(Type *Ty) const; 462 /// If Ty is a scalable vector type, the scalable property will be set and 466 TypeSize getTypeStoreSize(Type *Ty) const [all...] |
| Constants.h | 59 explicit ConstantData(Type *Ty, ValueTy VT) : Constant(Ty, VT, nullptr, 0) {} 82 ConstantInt(IntegerType *Ty, const APInt &V); 92 static Constant *getTrue(Type *Ty); 93 static Constant *getFalse(Type *Ty); 94 static Constant *getBool(Type *Ty, bool V); 96 /// If Ty is a vector type, return a Constant with a splat of the given 98 static Constant *get(Type *Ty, uint64_t V, bool IsSigned = false); 106 static ConstantInt *get(IntegerType *Ty, uint64_t V, bool IsSigned = false); 111 /// signed value for the type Ty [all...] |
| 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,
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
| 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) { 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) { 55 if (Ty.isVector() && Ty.getVectorElementType().isFloatingPoint() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| ASTImporterLookupTable.cpp | 27 QualType Ty = D->getUnderlyingType(); 28 Ty = Ty.getCanonicalType(); 29 if (const auto *RTy = dyn_cast<RecordType>(Ty)) { 50 QualType Ty = D->getFriendType()->getType(); 51 if (isa<ElaboratedType>(Ty)) 52 Ty = cast<ElaboratedType>(Ty)->getNamedType(); 57 if (!Ty->isDependentType()) { 58 if (const auto *RTy = dyn_cast<RecordType>(Ty)) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/ |
| LanaiTargetTransformInfo.h | 52 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, 54 assert(Ty->isIntegerTy()); 71 const APInt &Imm, Type *Ty, 74 return getIntImmCost(Imm, Ty, CostKind); 78 const APInt &Imm, Type *Ty, 80 return getIntImmCost(Imm, Ty, CostKind); 84 unsigned Opcode, Type *Ty, 96 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Opd1Info, 108 return 64 * BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Opd1Info,
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/ |
| Target.cpp | 101 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { 102 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); 105 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { 106 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); 109 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { 110 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); 113 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { 114 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value(); 117 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { 118 return unwrap(TD)->getABITypeAlign(unwrap(Ty)).value() [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| DynamicExtent.h | 29 /// \returns The element extent of the type \p Ty. 30 DefinedOrUnknownSVal getElementExtent(QualType Ty, SValBuilder &SVB); 35 SValBuilder &SVB, QualType Ty);
|
| DynamicTypeInfo.h | 23 DynamicTypeInfo(QualType Ty, bool CanBeSub = true) 24 : DynTy(Ty), CanBeASubClass(CanBeSub) {}
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Linker/ |
| IRMover.h | 55 void addNonOpaque(StructType *Ty); 56 void switchToNonOpaque(StructType *Ty); 57 void addOpaque(StructType *Ty); 59 bool hasType(StructType *Ty);
|
| /src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| ByteCodeEmitter.cpp | 33 QualType Ty = F->getReturnType(); 34 if (!Ty->isVoidType() && !Ctx.classify(Ty)) { 42 PrimType Ty; 44 Ty = *T; 46 Ty = PT_Ptr; 49 Descriptor *Desc = P.createDescriptor(PD, Ty); 50 ParamDescriptors.insert({ParamOffset, {Ty, Desc}}); 52 ParamOffset += align(primSize(Ty)); 53 ParamTypes.push_back(Ty); [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/ |
| ValueList.cpp | 35 explicit ConstantPlaceHolder(Type *Ty, LLVMContext &Context) 36 : ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) { 96 Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, Type *Ty) { 105 if (Ty != V->getType()) 111 Constant *C = new ConstantPlaceHolder(Ty, Context); 116 Value *BitcodeReaderValueList::getValueFwdRef(unsigned Idx, Type *Ty, 127 if (Ty && Ty != V->getType()) 135 if (!Ty) 139 Value *V = new Argument(Ty); [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
| LegalizeMutations.cpp | 17 LegalizeMutation LegalizeMutations::changeTo(unsigned TypeIdx, LLT Ty) { 19 [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; 59 const LLT Ty = Query.Types[TypeIdx]; 61 std::max(1u << Log2_32_Ceil(Ty.getScalarSizeInBits()), Min); 62 return std::make_pair(TypeIdx, Ty.changeElementSize(NewEltSizeInBits));
|