Home
last modified time | relevance | path

Searched refs:LHSType (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp1172 ExprResult &RHS, QualType LHSType, in handleComplexConversion() argument
1175 if (!handleComplexIntegerToFloatConversion(S, RHS, LHS, RHSType, LHSType, in handleComplexConversion()
1177 return LHSType; in handleComplexConversion()
1178 if (!handleComplexIntegerToFloatConversion(S, LHS, RHS, LHSType, RHSType, in handleComplexConversion()
1183 int Order = S.Context.getFloatingTypeOrder(LHSType, RHSType); in handleComplexConversion()
1186 return handleComplexFloatConversion(S, LHS, LHSType, RHSType, in handleComplexConversion()
1189 return handleComplexFloatConversion(S, RHS, RHSType, LHSType, in handleComplexConversion()
1227 ExprResult &RHS, QualType LHSType, in handleFloatConversion() argument
1229 bool LHSFloat = LHSType->isRealFloatingType(); in handleFloatConversion()
1235 if (LHSType->isFixedPointType() || RHSType->isFixedPointType()) { in handleFloatConversion()
[all …]
H A DSemaHLSL.cpp881 Sema &SemaRef, ExprResult &LHS, ExprResult &RHS, QualType LHSType, in handleFloatVectorBinOpConversion() argument
889 return castElement<CK_FloatingCast>(SemaRef, RHS, LHSType); in handleFloatVectorBinOpConversion()
895 return castElement<CK_IntegralToFloating>(SemaRef, RHS, LHSType); in handleFloatVectorBinOpConversion()
899 return castElement<clang::CK_FloatingToIntegral>(SemaRef, RHS, LHSType); in handleFloatVectorBinOpConversion()
905 Sema &SemaRef, ExprResult &LHS, ExprResult &RHS, QualType LHSType, in handleIntegerVectorBinOpConversion() argument
916 return castElement<CK_IntegralCast>(SemaRef, RHS, LHSType); in handleIntegerVectorBinOpConversion()
925 return castElement<CK_IntegralCast>(SemaRef, RHS, LHSType); in handleIntegerVectorBinOpConversion()
934 return castElement<CK_IntegralCast>(SemaRef, RHS, LHSType); in handleIntegerVectorBinOpConversion()
946 return castElement<CK_IntegralCast>(SemaRef, RHS, LHSType); in handleIntegerVectorBinOpConversion()
970 QualType LHSType, in handleVectorBinOpConversion() argument
[all …]
H A DSemaBoundsSafety.cpp336 QualType LHSType, Expr *RHSExpr) { in BoundsSafetyCheckInitialization() argument
351 *this, LHSType, RHSExpr, Action, SL, in BoundsSafetyCheckInitialization()
H A DSemaExprCXX.cpp5350 QualType LHSType = LHS.get()->getType(); in CheckPointerToMemberOperands() local
5352 if (const PointerType *Ptr = LHSType->getAs<PointerType>()) in CheckPointerToMemberOperands()
5353 LHSType = Ptr->getPointeeType(); in CheckPointerToMemberOperands()
5356 << OpSpelling << 1 << LHSType in CheckPointerToMemberOperands()
5361 CXXRecordDecl *LHSClass = LHSType->getAsCXXRecordDecl(); in CheckPointerToMemberOperands()
5365 if (RequireCompleteType(Loc, LHSType, diag::err_bad_memptr_lhs, in CheckPointerToMemberOperands()
5378 LHSType, QualType(RHSClass->getTypeForDecl(), 0), Loc, in CheckPointerToMemberOperands()
5385 LHSType.getQualifiers()); in CheckPointerToMemberOperands()
5406 Result = Context.getCVRQualifiedType(Result, LHSType.getCVRQualifiers()); in CheckPointerToMemberOperands()
5663 QualType LHSType = LHS.get()->getType(); in CheckVectorConditionalTypes() local
[all …]
H A DSemaObjCProperty.cpp929 QualType LHSType = S.Context.getCanonicalType(Prop->getType()); in SelectPropertyForSynthesisFromProtocols() local
930 if (!S.Context.propertyTypesAreCompatible(LHSType, RHSType)) { in SelectPropertyForSynthesisFromProtocols()
933 if (!S.isObjCPointerConversion(RHSType, LHSType, ConvertedType, IncompatibleObjC) in SelectPropertyForSynthesisFromProtocols()
1677 QualType LHSType = in DiagnosePropertyMismatch() local
1682 if (!Context.propertyTypesAreCompatible(LHSType, RHSType)) { in DiagnosePropertyMismatch()
1687 if (!SemaRef.isObjCPointerConversion(RHSType, LHSType, ConvertedType, in DiagnosePropertyMismatch()
H A DSemaChecking.cpp5458 QualType LHSType = TheCall->getArg(0)->getType(); in BuiltinShuffleVector() local
5461 if (!LHSType->isVectorType() || !RHSType->isVectorType()) in BuiltinShuffleVector()
5468 numElements = LHSType->castAs<VectorType>()->getNumElements(); in BuiltinShuffleVector()
5483 } else if (!Context.hasSameUnqualifiedType(LHSType, RHSType)) { in BuiltinShuffleVector()
5491 QualType eltType = LHSType->castAs<VectorType>()->getElementType(); in BuiltinShuffleVector()
14827 QualType LHSType; in checkUnsafeExprAssigns() local
14835 LHSType = PD->getType(); in checkUnsafeExprAssigns()
14838 if (LHSType.isNull()) in checkUnsafeExprAssigns()
14839 LHSType = LHS->getType(); in checkUnsafeExprAssigns()
14841 Qualifiers::ObjCLifetime LT = LHSType.getObjCLifetime(); in checkUnsafeExprAssigns()
[all …]
H A DSemaCodeComplete.cpp477 QualType LHSType = LHS->getType(); in getPreferredTypeOfBinaryRHS() local
478 if (LHSType->isPointerType()) { in getPreferredTypeOfBinaryRHS()
483 return LHSType; in getPreferredTypeOfBinaryRHS()
518 if (LHSType->isIntegralOrEnumerationType()) in getPreferredTypeOfBinaryRHS()
533 if (LHSType->isIntegralOrEnumerationType()) in getPreferredTypeOfBinaryRHS()
534 return LHSType; in getPreferredTypeOfBinaryRHS()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h129 auto *LHSType = cast<VectorType>(LHS->getType()); variable
133 FixedVectorType::get(LHSType->getElementType(), LHSRows * RHSColumns);
137 Type *OverloadedTypes[] = {ReturnType, LHSType, RHSType};
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cpp334 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl()
339 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
355 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
362 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
H A Dubsan_handlers.h75 const TypeDescriptor &LHSType; member
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp406 Type *LHSType = SE->getEffectiveSCEVType(LHS->getType()); in tryReassociateGEPAtIndex() local
407 size_t LHSSize = DL->getTypeSizeInBits(LHSType).getFixedValue(); in tryReassociateGEPAtIndex()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaHLSL.h139 QualType LHSType, QualType RHSType,
H A DSema.h2486 QualType LHSType, Expr *RHSExpr);
8011 QualType LHSType,
8017 AssignConvertType CheckAssignmentConstraints(QualType LHSType,
8036 QualType LHSType, ExprResult &RHS, bool Diagnose = true,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp446 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI() local
455 I->getOperand(0)->getType() != LHSType || in foldPHIArgBinOpIntoPHI()
482 NewLHS = PHINode::Create(LHSType, PN.getNumIncomingValues(), in foldPHIArgBinOpIntoPHI()
H A DInstCombineCompares.cpp819 Type *LHSType = GEPLHS->getOperand(i)->getType(); in foldGEPICmp() local
822 if (LHSType->getPrimitiveSizeInBits() != in foldGEPICmp()
825 (!LHSType->isVectorTy() || !RHSType->isVectorTy()))) { in foldGEPICmp()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DCompiler.cpp1153 QualType LHSType = LHS->getType(); in VisitComplexBinOp() local
1154 if (const auto *AT = LHSType->getAs<AtomicType>()) in VisitComplexBinOp()
1155 LHSType = AT->getValueType(); in VisitComplexBinOp()
1160 bool LHSIsComplex = LHSType->isAnyComplexType(); in VisitComplexBinOp()
1168 assert(classifyPrim(LHSType->getAs<ComplexType>()->getElementType()) == in VisitComplexBinOp()
1171 classifyPrim(LHSType->getAs<ComplexType>()->getElementType()); in VisitComplexBinOp()
1217 if (LHSType->isAnyComplexType()) { in VisitComplexBinOp()
1224 PrimType LHST = classifyPrim(LHSType); in VisitComplexBinOp()
2571 QualType LHSType = LHS->getType(); in VisitFloatCompoundAssignOperator() local
2582 PrimType LHST = classifyPrim(LHSType); in VisitFloatCompoundAssignOperator()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp146 QualType LHSType = BinOp->getLHS()->getType(); in isFixedPointOp() local
148 return LHSType->isFixedPointType() || RHSType->isFixedPointType(); in isFixedPointOp()