Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGExprComplex.cpp1044 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() local
1045 if (const AtomicType *AT = LHSTy->getAs<AtomicType>()) in EmitCompoundAssignLValue()
1046 LHSTy = AT->getValueType(); in EmitCompoundAssignLValue()
1091 if (LHSTy->isAnyComplexType()) { in EmitCompoundAssignLValue()
1095 EmitComplexToComplexCast(LHSVal, LHSTy, PromotionTypeLHS, Loc); in EmitCompoundAssignLValue()
1097 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
1102 if (LHSTy->isRealFloatingType()) { in EmitCompoundAssignLValue()
1109 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, in EmitCompoundAssignLValue()
1112 if (!CGF.getContext().hasSameUnqualifiedType(ComplexElementTy, LHSTy)) in EmitCompoundAssignLValue()
1114 CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue()
[all …]
DCGExprScalar.cpp199 QualType LHSTy = *OptionalLHSTy; in CanElideOverflowCheck() local
205 !LHSTy->isUnsignedIntegerType() || !RHSTy->isUnsignedIntegerType()) in CanElideOverflowCheck()
211 return (2 * Ctx.getTypeSize(LHSTy)) < PromotedSize || in CanElideOverflowCheck()
3226 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() local
3253 if (const AtomicType *atomicTy = LHSTy->getAs<AtomicType>()) { in EmitCompoundAssignLValue()
3294 EmitScalarConversion(OpInfo.RHS, E->getRHS()->getType(), LHSTy, in EmitCompoundAssignLValue()
3296 LHSTy); in EmitCompoundAssignLValue()
3325 OpInfo.LHS = EmitScalarConversion(OpInfo.LHS, LHSTy, PromotionTypeLHS, in EmitCompoundAssignLValue()
3328 OpInfo.LHS = EmitScalarConversion(OpInfo.LHS, LHSTy, in EmitCompoundAssignLValue()
3336 Result = EmitScalarConversion(Result, PromotionTypeCR, LHSTy, Loc, in EmitCompoundAssignLValue()
[all …]
/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaExpr.cpp1431 static QualType handleFixedPointConversion(Sema &S, QualType LHSTy, in handleFixedPointConversion() argument
1433 assert((LHSTy->isFixedPointType() || RHSTy->isFixedPointType()) && in handleFixedPointConversion()
1435 assert((LHSTy->isFixedPointOrIntegerType() || in handleFixedPointConversion()
1444 if (RHSTy->isSignedFixedPointType() && LHSTy->isUnsignedFixedPointType()) in handleFixedPointConversion()
1445 LHSTy = S.Context.getCorrespondingSignedFixedPointType(LHSTy); in handleFixedPointConversion()
1446 else if (RHSTy->isUnsignedFixedPointType() && LHSTy->isSignedFixedPointType()) in handleFixedPointConversion()
1457 unsigned LHSTyRank = GetFixedPointRank(LHSTy); in handleFixedPointConversion()
1460 QualType ResultTy = LHSTyRank > RHSTyRank ? LHSTy : RHSTy; in handleFixedPointConversion()
1462 if (LHSTy->isSaturatedFixedPointType() || RHSTy->isSaturatedFixedPointType()) in handleFixedPointConversion()
5676 QualType LHSTy = LHSExp->getType(), RHSTy = RHSExp->getType(); in CreateBuiltinArraySubscriptExpr() local
[all …]
DSemaChecking.cpp3015 QualType LHSTy = Context.getPointerType(EltTy); in CheckNeonBuiltinFunctionCall() local
3017 ConvTy = CheckSingleAssignmentConstraints(LHSTy, RHS); in CheckNeonBuiltinFunctionCall()
3020 if (DiagnoseAssignmentResult(ConvTy, Arg->getBeginLoc(), LHSTy, RHSTy, in CheckNeonBuiltinFunctionCall()
/openbsd/src/gnu/llvm/llvm/lib/Target/AArch64/GISel/
DAArch64PreLegalizerCombiner.cpp74 LLT LHSTy = MRI.getType(LHS); in matchICmpRedundantTrunc() local
75 if (!LHSTy.isScalar()) in matchICmpRedundantTrunc()
87 WideTy.getSizeInBits() - LHSTy.getSizeInBits()) in matchICmpRedundantTrunc()
DAArch64InstructionSelector.cpp1720 auto LHSTy = MRI.getType(LHS); in tryOptCompareBranchFedByICmp() local
1721 if (!LHSTy.isVector() && LHSTy.getSizeInBits() <= 64) { in tryOptCompareBranchFedByICmp()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DTargetLoweringBase.cpp919 EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL, in getShiftAmountTy() argument
921 assert(LHSTy.isInteger() && "Shift amount is not an integer type!"); in getShiftAmountTy()
922 if (LHSTy.isVector()) in getShiftAmountTy()
923 return LHSTy; in getShiftAmountTy()
925 LegalTypes ? getScalarShiftAmountTy(DL, LHSTy) : getPointerTy(DL); in getShiftAmountTy()
928 if (ShiftVT.getSizeInBits() < Log2_32_Ceil(LHSTy.getSizeInBits())) in getShiftAmountTy()
930 assert(ShiftVT.getSizeInBits() >= Log2_32_Ceil(LHSTy.getSizeInBits()) && in getShiftAmountTy()
/openbsd/src/gnu/llvm/llvm/lib/Target/AVR/
DAVRISelLowering.h90 MVT getScalarShiftAmountTy(const DataLayout &, EVT LHSTy) const override { in getScalarShiftAmountTy() argument
/openbsd/src/gnu/llvm/clang/lib/AST/
DExprConstant.cpp12852 QualType LHSTy = E->getLHS()->getType(); in EvaluateComparisonBinaryOperator() local
12855 if (LHSTy->isIntegralOrEnumerationType() && in EvaluateComparisonBinaryOperator()
12870 if (LHSTy->isFixedPointType() || RHSTy->isFixedPointType()) { in EvaluateComparisonBinaryOperator()
12871 APFixedPoint LHSFX(Info.Ctx.getFixedPointSemantics(LHSTy)); in EvaluateComparisonBinaryOperator()
12886 if (LHSTy->isAnyComplexType() || RHSTy->isAnyComplexType()) { in EvaluateComparisonBinaryOperator()
12893 } else if (LHSTy->isRealFloatingType()) { in EvaluateComparisonBinaryOperator()
12928 if (LHSTy->isRealFloatingType() && in EvaluateComparisonBinaryOperator()
12964 if (LHSTy->isPointerType() && RHSTy->isPointerType()) { in EvaluateComparisonBinaryOperator()
13042 if (LHSTy->isVoidPointerType() && LHSOffset != RHSOffset && IsRelational) in EvaluateComparisonBinaryOperator()
13088 unsigned PtrSize = Info.Ctx.getTypeSize(LHSTy); in EvaluateComparisonBinaryOperator()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp5045 if (auto *LHSTy = dyn_cast<VectorType>(LHS->getType())) in OptimizeOverflowCheck() local
5046 OverflowTy = VectorType::get(OverflowTy, LHSTy->getElementCount()); in OptimizeOverflowCheck()
6131 auto *LHSTy = dyn_cast<FixedVectorType>(LHS->getType()); in foldReductionIdiom() local
6132 if (!LHSTy || !LHSTy->getElementType()->isIntegerTy()) in foldReductionIdiom()
6135 LHSTy->getNumElements() * LHSTy->getElementType()->getIntegerBitWidth(); in foldReductionIdiom()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DSROA.cpp2200 auto RankVectorTypes = [&DL](VectorType *RHSTy, VectorType *LHSTy) { in isVectorPromotionViable() argument
2203 DL.getTypeSizeInBits(LHSTy).getFixedValue() && in isVectorPromotionViable()
2207 assert(LHSTy->getElementType()->isIntegerTy() && in isVectorPromotionViable()
2210 cast<FixedVectorType>(LHSTy)->getNumElements(); in isVectorPromotionViable()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp4294 LLT LHSTy = MRI.getType(LHS); in matchICmpToLHSKnownBits() local
4295 unsigned LHSSize = LHSTy.getSizeInBits(); in matchICmpToLHSKnownBits()
4300 if (!isLegalOrBeforeLegalizer({Op, {DstTy, LHSTy}})) in matchICmpToLHSKnownBits()
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/
DSelectionDAG.h1609 SDValue getShiftAmountOperand(EVT LHSTy, SDValue Op);
DTargetLowering.h398 EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL,
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp2259 SDValue SelectionDAG::getShiftAmountOperand(EVT LHSTy, SDValue Op) { in getShiftAmountOperand() argument
2261 EVT ShTy = TLI->getShiftAmountTy(LHSTy, getDataLayout()); in getShiftAmountOperand()
DDAGCombiner.cpp796 EVT getShiftAmountTy(EVT LHSTy) { in getShiftAmountTy() argument
797 assert(LHSTy.isInteger() && "Shift amount is not an integer type!"); in getShiftAmountTy()
798 return TLI.getShiftAmountTy(LHSTy, DAG.getDataLayout(), LegalTypes); in getShiftAmountTy()