Home
last modified time | relevance | path

Searched refs:LHSTy (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp1222 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() local
1223 if (const AtomicType *AT = LHSTy->getAs<AtomicType>()) in EmitCompoundAssignLValue()
1224 LHSTy = AT->getValueType(); in EmitCompoundAssignLValue()
1272 if (LHSTy->isAnyComplexType()) { in EmitCompoundAssignLValue()
1276 EmitComplexToComplexCast(LHSVal, LHSTy, PromotionTypeLHS, Loc); in EmitCompoundAssignLValue()
1278 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
1283 if (LHSTy->isRealFloatingType()) { in EmitCompoundAssignLValue()
1290 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, in EmitCompoundAssignLValue()
1293 if (!CGF.getContext().hasSameUnqualifiedType(ComplexElementTy, LHSTy)) in EmitCompoundAssignLValue()
1295 CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue()
[all …]
H A DCGExprScalar.cpp213 QualType LHSTy = *OptionalLHSTy; in CanElideOverflowCheck() local
219 !LHSTy->isUnsignedIntegerType() || !RHSTy->isUnsignedIntegerType()) in CanElideOverflowCheck()
225 return (2 * Ctx.getTypeSize(LHSTy)) < PromotedSize || in CanElideOverflowCheck()
3519 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() local
3546 if (const AtomicType *atomicTy = LHSTy->getAs<AtomicType>()) { in EmitCompoundAssignLValue()
3587 EmitScalarConversion(OpInfo.RHS, E->getRHS()->getType(), LHSTy, in EmitCompoundAssignLValue()
3589 LHSTy); in EmitCompoundAssignLValue()
3618 OpInfo.LHS = EmitScalarConversion(OpInfo.LHS, LHSTy, PromotionTypeLHS, in EmitCompoundAssignLValue()
3621 OpInfo.LHS = EmitScalarConversion(OpInfo.LHS, LHSTy, in EmitCompoundAssignLValue()
3634 Result = EmitScalarConversion(Result, PromotionTypeCR, LHSTy, Loc); in EmitCompoundAssignLValue()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprObjC.cpp4935 QualType LHSTy = LHS.get()->getType(); in FindCompositeObjCPointerType() local
4941 if (LHSTy->isObjCClassType() && in FindCompositeObjCPointerType()
4943 RHS = SemaRef.ImpCastExprToType(RHS.get(), LHSTy, in FindCompositeObjCPointerType()
4945 return LHSTy; in FindCompositeObjCPointerType()
4948 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4954 if (LHSTy->isObjCIdType() && in FindCompositeObjCPointerType()
4956 RHS = SemaRef.ImpCastExprToType(RHS.get(), LHSTy, in FindCompositeObjCPointerType()
4958 return LHSTy; in FindCompositeObjCPointerType()
4961 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4967 if (Context.isObjCSelType(LHSTy) && in FindCompositeObjCPointerType()
[all …]
H A DSemaExpr.cpp1435 static QualType handleFixedPointConversion(Sema &S, QualType LHSTy, in handleFixedPointConversion() argument
1437 assert((LHSTy->isFixedPointType() || RHSTy->isFixedPointType()) && in handleFixedPointConversion()
1439 assert((LHSTy->isFixedPointOrIntegerType() || in handleFixedPointConversion()
1448 if (RHSTy->isSignedFixedPointType() && LHSTy->isUnsignedFixedPointType()) in handleFixedPointConversion()
1449 LHSTy = S.Context.getCorrespondingSignedFixedPointType(LHSTy); in handleFixedPointConversion()
1450 else if (RHSTy->isUnsignedFixedPointType() && LHSTy->isSignedFixedPointType()) in handleFixedPointConversion()
1461 unsigned LHSTyRank = GetFixedPointRank(LHSTy); in handleFixedPointConversion()
1464 QualType ResultTy = LHSTyRank > RHSTyRank ? LHSTy : RHSTy; in handleFixedPointConversion()
1466 if (LHSTy->isSaturatedFixedPointType() || RHSTy->isSaturatedFixedPointType()) in handleFixedPointConversion()
5120 QualType LHSTy = LHSExp->getType(), RHSTy = RHSExp->getType(); in CreateBuiltinArraySubscriptExpr() local
[all …]
H A DSemaARM.cpp791 QualType LHSTy = getASTContext().getPointerType(EltTy); in CheckNeonBuiltinFunctionCall() local
793 ConvTy = SemaRef.CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckNeonBuiltinFunctionCall()
796 if (SemaRef.DiagnoseAssignmentResult(ConvTy, Arg->getBeginLoc(), LHSTy, in CheckNeonBuiltinFunctionCall()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp866 EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, in getShiftAmountTy() argument
868 assert(LHSTy.isInteger() && "Shift amount is not an integer type!"); in getShiftAmountTy()
869 if (LHSTy.isVector()) in getShiftAmountTy()
870 return LHSTy; in getShiftAmountTy()
871 MVT ShiftVT = getScalarShiftAmountTy(DL, LHSTy); in getShiftAmountTy()
874 if (ShiftVT.getSizeInBits() < Log2_32_Ceil(LHSTy.getSizeInBits())) in getShiftAmountTy()
876 assert(ShiftVT.getSizeInBits() >= Log2_32_Ceil(LHSTy.getSizeInBits()) && in getShiftAmountTy()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PreLegalizerCombiner.cpp85 LLT LHSTy = MRI.getType(LHS); in matchICmpRedundantTrunc() local
86 if (!LHSTy.isScalar()) in matchICmpRedundantTrunc()
98 WideTy.getSizeInBits() - LHSTy.getSizeInBits()) in matchICmpRedundantTrunc()
H A DAArch64InstructionSelector.cpp1784 auto LHSTy = MRI.getType(LHS); in tryOptCompareBranchFedByICmp() local
1785 if (!LHSTy.isVector() && LHSTy.getSizeInBits() <= 64) { in tryOptCompareBranchFedByICmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRISelLowering.h90 MVT getScalarShiftAmountTy(const DataLayout &, EVT LHSTy) const override { in getScalarShiftAmountTy() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2156 auto RankVectorTypesComp = [&DL](VectorType *RHSTy, VectorType *LHSTy) { in checkVectorTypesForPromotion() argument
2159 DL.getTypeSizeInBits(LHSTy).getFixedValue() && in checkVectorTypesForPromotion()
2163 assert(LHSTy->getElementType()->isIntegerTy() && in checkVectorTypesForPromotion()
2166 cast<FixedVectorType>(LHSTy)->getNumElements(); in checkVectorTypesForPromotion()
2168 auto RankVectorTypesEq = [&DL](VectorType *RHSTy, VectorType *LHSTy) { in checkVectorTypesForPromotion() argument
2171 DL.getTypeSizeInBits(LHSTy).getFixedValue() && in checkVectorTypesForPromotion()
2175 assert(LHSTy->getElementType()->isIntegerTy() && in checkVectorTypesForPromotion()
2178 cast<FixedVectorType>(LHSTy)->getNumElements(); in checkVectorTypesForPromotion()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGParser.cpp2936 auto *LHSTy = dyn_cast<ListRecTy>(LHS->getType()); in ParseValue() local
2937 if (!LHSTy) { in ParseValue()
2950 BinOpInit::get(BinOpInit::LISTSLICE, LHS, RHS, LHSTy)->Fold(CurRec); in ParseValue()
2953 LHSTy->getElementType()) in ParseValue()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13538 QualType LHSTy = E->getLHS()->getType(); in EvaluateComparisonBinaryOperator() local
13541 if (LHSTy->isIntegralOrEnumerationType() && in EvaluateComparisonBinaryOperator()
13556 if (LHSTy->isFixedPointType() || RHSTy->isFixedPointType()) { in EvaluateComparisonBinaryOperator()
13557 APFixedPoint LHSFX(Info.Ctx.getFixedPointSemantics(LHSTy)); in EvaluateComparisonBinaryOperator()
13572 if (LHSTy->isAnyComplexType() || RHSTy->isAnyComplexType()) { in EvaluateComparisonBinaryOperator()
13579 } else if (LHSTy->isRealFloatingType()) { in EvaluateComparisonBinaryOperator()
13614 if (LHSTy->isRealFloatingType() && in EvaluateComparisonBinaryOperator()
13650 if (LHSTy->isPointerType() && RHSTy->isPointerType()) { in EvaluateComparisonBinaryOperator()
13728 if (LHSTy->isVoidPointerType() && LHSOffset != RHSOffset && IsRelational) in EvaluateComparisonBinaryOperator()
13774 unsigned PtrSize = Info.Ctx.getTypeSize(LHSTy); in EvaluateComparisonBinaryOperator()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp6097 if (auto *LHSTy = dyn_cast<VectorType>(LHS->getType())) in OptimizeOverflowCheck() local
6098 OverflowTy = VectorType::get(OverflowTy, LHSTy->getElementCount()); in OptimizeOverflowCheck()
7166 auto *LHSTy = dyn_cast<FixedVectorType>(LHS->getType()); in foldReductionIdiom() local
7167 if (!LHSTy || !LHSTy->getElementType()->isIntegerTy()) in foldReductionIdiom()
7170 LHSTy->getNumElements() * LHSTy->getElementType()->getIntegerBitWidth(); in foldReductionIdiom()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4450 LLT LHSTy = MRI.getType(LHS); in matchICmpToLHSKnownBits() local
4451 unsigned LHSSize = LHSTy.getSizeInBits(); in matchICmpToLHSKnownBits()
4456 if (!isLegalOrBeforeLegalizer({Op, {DstTy, LHSTy}})) in matchICmpToLHSKnownBits()
H A DLegalizerHelper.cpp7938 auto [Dst0, Dst0Ty, Dst1, Dst1Ty, LHS, LHSTy, RHS, RHSTy] = in lowerSADDO_SSUBO()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1588 SDValue getShiftAmountOperand(EVT LHSTy, SDValue Op);
H A DTargetLowering.h407 EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2406 SDValue SelectionDAG::getShiftAmountOperand(EVT LHSTy, SDValue Op) { in getShiftAmountOperand() argument
2408 EVT ShTy = TLI->getShiftAmountTy(LHSTy, getDataLayout()); in getShiftAmountOperand()
H A DDAGCombiner.cpp852 EVT getShiftAmountTy(EVT LHSTy) { in getShiftAmountTy() argument
853 return TLI.getShiftAmountTy(LHSTy, DAG.getDataLayout()); in getShiftAmountTy()