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()
4190 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classify()
4197 const RecordType *RT = Ty->getAs<RecordType>(); in classify()
4255 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in classify()
4487 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
4500 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI()
4557 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
4639 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
4650 const BuiltinType *BT = EltType->getAs<BuiltinType>(); in getParamTypeAlignment()
4704 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
4915 const BuiltinType *BT = T->getAs<BuiltinType>(); in computeInfo()
4978 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
4987 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableTypeForABI()
4996 if (const auto *EIT = Ty->getAs<ExtIntType>()) in isPromotableTypeForABI()
5007 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
5028 const BuiltinType *BT = EltType->getAs<BuiltinType>(); in getParamTypeAlignment()
5067 } else if (const RecordType *RT = Ty->getAs<RecordType>()) { in isHomogeneousAggregate()
5127 if (const ComplexType *CT = Ty->getAs<ComplexType>()) { in isHomogeneousAggregate()
5144 if (const VectorType *VT = Base->getAs<VectorType>()) { in isHomogeneousAggregate()
5164 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
5175 if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
5215 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
5291 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
5344 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
5651 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
5654 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
5741 if (const auto *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
5753 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
5756 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
5813 if (const VectorType *VT = Ty->getAs<VectorType>()) { in isIllegalVectorType()
5856 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
5859 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
6433 if (const VectorType *VT = Base->getAs<VectorType>()) { in classifyHomogeneousAggregate()
6476 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
6480 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
6589 if (Ty->getAs<BuiltinType>() || Ty->isPointerType()) in isIntegerLikeType()
6593 if (const ComplexType *CT = Ty->getAs<ComplexType>()) in isIntegerLikeType()
6600 const RecordType *RT = Ty->getAs<RecordType>(); in isIntegerLikeType()
6663 if (const VectorType *VT = RetTy->getAs<VectorType>()) { in classifyReturnType()
6679 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
6682 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
6762 if (const VectorType *VT = Ty->getAs<VectorType> ()) { in isIllegalVectorType()
6806 } else if (const RecordType *RT = Ty->getAs<RecordType>()) { in containsAnyFP16Vectors()
6823 if (const VectorType *VT = Ty->getAs<VectorType>()) in containsAnyFP16Vectors()
6848 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) { in isHomogeneousAggregateBaseType()
6853 } else if (const VectorType *VT = Ty->getAs<VectorType>()) { in isHomogeneousAggregateBaseType()
7019 if (const auto *EIT = T->getAs<ExtIntType>()) in isUnsupportedType()
7027 const auto *RT = T->getAs<RecordType>(); in isUnsupportedType()
7069 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
7078 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7096 if (const auto *EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()
7303 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableIntegerTypeForABI()
7310 if (const auto *EIT = Ty->getAs<ExtIntType>()) in isPromotableIntegerTypeForABI()
7315 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isPromotableIntegerTypeForABI()
7342 if (const BuiltinType *BT = Ty->getAs<BuiltinType>()) in isFPArgumentType()
7355 const RecordType *RT = Ty->getAs<RecordType>(); in GetSingleElementType()
7593 if (const RecordType *RT = Ty->getAs<RecordType>()) { in classifyArgumentType()
7820 const RecordType *RT = Ty->getAs<RecordType>(); in HandleAggregates()
7841 const BuiltinType *BT = Ty->getAs<BuiltinType>(); in HandleAggregates()
7907 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7911 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
7927 const RecordType *RT = RetTy->getAs<RecordType>(); in returnAggregateInRegs()
7947 const BuiltinType *BT = b->getType()->getAs<BuiltinType>(); in returnAggregateInRegs()
7998 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
8002 if (const auto *EIT = RetTy->getAs<ExtIntType>()) in classifyReturnType()
8345 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
8390 if (RetTy->getAs<VectorType>()) { in classifyReturnType()
8405 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
8737 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
8771 if (const auto *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
8777 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
8854 if (const VectorType *VT = Ty->getAs<VectorType>()) { in numRegsForType()
8868 if (const RecordType *RT = Ty->getAs<RecordType>()) { in numRegsForType()
8917 if (const RecordType *RT = RetTy->getAs<RecordType>()) { in classifyReturnType()
9005 if (const RecordType *RT = Ty->getAs<RecordType>()) { in classifyArgumentType()
9481 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyType()
9488 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyType()
9706 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
9717 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
9742 if (const auto *EIT = Ty->getAs<ExtIntType>()) in classifyArgumentType()
10367 if (const FunctionProtoType *FPT = FT->getAs<FunctionProtoType>()) { in appendFunctionType()
10407 if (const BuiltinType *BT = QT->getAs<BuiltinType>()) in appendType()
10410 if (const PointerType *PT = QT->getAs<PointerType>()) in appendType()
10413 if (const EnumType *ET = QT->getAs<EnumType>()) in appendType()
10422 if (const FunctionType *FT = QT->getAs<FunctionType>()) in appendType()
10582 if (auto CTy = Ty->getAs<ComplexType>()) { in detectFPCCEligibleStructHelper()
10609 if (const auto *RTy = Ty->getAs<RecordType>()) { in detectFPCCEligibleStructHelper()
10814 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
10823 if (const auto *EIT = Ty->getAs<ExtIntType>()) { in classifyArgumentType()