Lines Matching refs:getAs
107 if (const auto *EIT = Ty->getAs<ExtIntType>()) in isPromotableIntegerTypeForABI()
169 const RecordType *RT = T->getAs<RecordType>(); in getRecordArgABI()
179 if (const auto *RT = Ty->getAs<RecordType>()) in classifyReturnType()
520 const RecordType *RT = FT->getAs<RecordType>(); in isEmptyField()
545 const RecordType *RT = T->getAs<RecordType>(); in isEmptyRecord()
573 const RecordType *RT = T->getAs<RecordType>(); in isSingleElementStruct()
731 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
735 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
754 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
757 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
873 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
975 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
981 } else if (const auto *EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()
1001 if (const auto *EIT = RetTy->getAs<ExtIntType>()) { in classifyReturnType()
1008 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1046 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isX86VectorTypeForVectorCall()
1055 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isX86VectorTypeForVectorCall()
1351 if (Ty->getAs<BuiltinType>() || Ty->hasPointerRepresentation() || in shouldReturnTypeInRegister()
1361 const RecordType *RT = Ty->getAs<RecordType>(); in shouldReturnTypeInRegister()
1382 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in is32Or64BitBasicType()
1388 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && in is32Or64BitBasicType()
1435 const RecordType *RT = Ty->getAs<RecordType>(); in canExpandIndirectArgument()
1487 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
1513 if (const RecordType *RT = RetTy->getAs<RecordType>()) { in classifyReturnType()
1551 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1554 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
1563 return Ty->getAs<VectorType>() && Context.getTypeSize(Ty) == 128; in isSIMDVectorType()
1567 const RecordType *RT = Ty->getAs<RecordType>(); in isRecordWithSIMDVectorType()
1649 if (const BuiltinType *BT = T->getAs<BuiltinType>()) { in classify()
1775 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
1851 if (const VectorType *VT = Ty->getAs<VectorType>()) { in classifyArgumentType()
1879 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
1890 if (const auto * EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()
2805 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in classify()
2835 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
2869 if (const VectorType *VT = Ty->getAs<VectorType>()) { in classify()
2937 if (const ComplexType *CT = Ty->getAs<ComplexType>()) { in classify()
2972 if (const auto *EITy = Ty->getAs<ExtIntType>()) { in classify()
3026 if (const RecordType *RT = Ty->getAs<RecordType>()) { in classify()
3160 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult()
3174 if (const VectorType *VecTy = Ty->getAs<VectorType>()) { in IsIllegalVectorType()
3202 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult()
3321 if (const RecordType *RT = Ty->getAs<RecordType>()) { in BitsContainNoUserData()
3585 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
3730 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
3805 auto RT = Ty->getAs<RecordType>(); in classifyRegCallStructTypeImpl()
3890 } else if (IsRegCall && FI.getReturnType()->getAs<ComplexType>() && in computeInfo()
3892 ->getAs<ComplexType>() in computeInfo()
4198 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classify()
4205 const RecordType *RT = Ty->getAs<RecordType>(); in classify()
4263 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in classify()
4490 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
4503 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI()
4560 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
4642 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
4653 const BuiltinType *BT = EltType->getAs<BuiltinType>(); in getParamTypeAlignment()
4707 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
4918 const BuiltinType *BT = T->getAs<BuiltinType>(); in computeInfo()
4981 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
4990 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI()
4999 if (const auto *EIT = Ty->getAs<ExtIntType>()) in isPromotableTypeForABI()
5010 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
5031 const BuiltinType *BT = EltType->getAs<BuiltinType>(); in getParamTypeAlignment()
5070 } else if (const RecordType *RT = Ty->getAs<RecordType>()) { in isHomogeneousAggregate()
5130 if (const ComplexType *CT = Ty->getAs<ComplexType>()) { in isHomogeneousAggregate()
5147 if (const VectorType *VT = Base->getAs<VectorType>()) { in isHomogeneousAggregate()
5167 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
5178 if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
5218 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
5294 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
5347 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
5668 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
5671 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
5758 if (const auto *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
5770 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
5773 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
5830 if (const VectorType *VT = Ty->getAs<VectorType>()) { in isIllegalVectorType()
5873 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
5876 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
6450 if (const VectorType *VT = Base->getAs<VectorType>()) { in classifyHomogeneousAggregate()
6493 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
6497 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
6606 if (Ty->getAs<BuiltinType>() || Ty->isPointerType()) in isIntegerLikeType()
6610 if (const ComplexType *CT = Ty->getAs<ComplexType>()) in isIntegerLikeType()
6617 const RecordType *RT = Ty->getAs<RecordType>(); in isIntegerLikeType()
6680 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
6696 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
6699 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
6779 if (const VectorType *VT = Ty->getAs<VectorType> ()) { in isIllegalVectorType()
6823 } else if (const RecordType *RT = Ty->getAs<RecordType>()) { in containsAnyFP16Vectors()
6840 if (const VectorType *VT = Ty->getAs<VectorType>()) in containsAnyFP16Vectors()
6865 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
6870 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
7036 if (const auto *EIT = T->getAs<ExtIntType>()) in isUnsupportedType()
7044 const auto *RT = T->getAs<RecordType>(); in isUnsupportedType()
7086 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
7095 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7113 if (const auto *EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()
7320 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableIntegerTypeForABI()
7327 if (const auto *EIT = Ty->getAs<ExtIntType>()) in isPromotableIntegerTypeForABI()
7332 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableIntegerTypeForABI()
7359 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isFPArgumentType()
7372 const RecordType *RT = Ty->getAs<RecordType>(); in GetSingleElementType()
7612 if (const RecordType *RT = Ty->getAs<RecordType>()) { in classifyArgumentType()
7839 const RecordType *RT = Ty->getAs<RecordType>(); in HandleAggregates()
7860 const BuiltinType *BT = Ty->getAs<BuiltinType>(); in HandleAggregates()
7926 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7930 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
7946 const RecordType *RT = RetTy->getAs<RecordType>(); in returnAggregateInRegs()
7966 const BuiltinType *BT = b->getType()->getAs<BuiltinType>(); in returnAggregateInRegs()
8017 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
8021 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
8389 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
8434 if (RetTy->getAs<VectorType>()) { in classifyReturnType()
8449 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
8783 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
8817 if (const auto *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
8823 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
8900 if (const VectorType *VT = Ty->getAs<VectorType>()) { in numRegsForType()
8914 if (const RecordType *RT = Ty->getAs<RecordType>()) { in numRegsForType()
8963 if (const RecordType *RT = RetTy->getAs<RecordType>()) { in classifyReturnType()
9051 if (const RecordType *RT = Ty->getAs<RecordType>()) { in classifyArgumentType()
9527 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyType()
9534 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyType()
9752 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
9763 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
9788 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
10413 if (const FunctionProtoType *FPT = FT->getAs<FunctionProtoType>()) { in appendFunctionType()
10453 if (const BuiltinType *BT = QT->getAs<BuiltinType>()) in appendType()
10456 if (const PointerType *PT = QT->getAs<PointerType>()) in appendType()
10459 if (const EnumType *ET = QT->getAs<EnumType>()) in appendType()
10468 if (const FunctionType *FT = QT->getAs<FunctionType>()) in appendType()
10628 if (auto CTy = Ty->getAs<ComplexType>()) { in detectFPCCEligibleStructHelper()
10655 if (const auto *RTy = Ty->getAs<RecordType>()) { in detectFPCCEligibleStructHelper()
10860 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
10869 if (const auto *EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()