Home
last modified time | relevance | path

Searched refs:NewC (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1641 SCC *NewC = nullptr; in addSplitFunction() local
1648 NewC = OriginalC; in addSplitFunction()
1649 NewC->Nodes.push_back(&NewN); in addSplitFunction()
1654 if (!NewC) { in addSplitFunction()
1662 NewC = createSCC(*NewRC, SmallVector<Node *, 1>({&NewN})); in addSplitFunction()
1673 NewRC->SCCs.insert(NewRC->SCCs.begin() + InsertIndex, NewC); in addSplitFunction()
1682 if (!NewC) { in addSplitFunction()
1687 NewC = createSCC(*NewRC, SmallVector<Node *, 1>({&NewN})); in addSplitFunction()
1688 NewRC->SCCIndices[NewC] = 0; in addSplitFunction()
1689 NewRC->SCCs.push_back(NewC); in addSplitFunction()
[all …]
H A DCGSCCPassManager.cpp864 for (SCC &NewC : llvm::reverse(llvm::drop_begin(NewSCCRange))) { in incorporateNewSCCRange()
865 assert(C != &NewC && "No need to re-visit the current SCC!"); in incorporateNewSCCRange()
866 assert(OldC != &NewC && "Already handled the original SCC!"); in incorporateNewSCCRange()
867 UR.CWorklist.insert(&NewC); in incorporateNewSCCRange()
868 LLVM_DEBUG(dbgs() << "Enqueuing a newly formed SCC:" << NewC << "\n"); in incorporateNewSCCRange()
872 updateNewSCCFunctionAnalyses(NewC, G, AM, *FAM); in incorporateNewSCCRange()
876 AM.invalidate(NewC, PA); in incorporateNewSCCRange()
H A DInstructionSimplify.cpp4956 SmallVector<Constant *, 16> NewC; in simplifySelectInst() local
4967 NewC.push_back(TEltC); in simplifySelectInst()
4970 NewC.push_back(FEltC); in simplifySelectInst()
4973 NewC.push_back(TEltC); in simplifySelectInst()
4977 if (NewC.size() == NumElts) in simplifySelectInst()
4978 return ConstantVector::get(NewC); in simplifySelectInst()
5608 SmallVector<Constant *, 32> NewC(NumElts); in propagateNaN() local
5614 NewC[i] = EltC; in propagateNaN()
5616 NewC[i] = ConstantFP::get( in propagateNaN()
5619 NewC[i] = ConstantFP::getNaN(VecTy->getElementType()); in propagateNaN()
[all …]
H A DConstantFolding.cpp1107 Constant *NewC = OldC; in ConstantFoldConstantImpl() local
1113 NewC = ConstantFoldConstantImpl(OldC, DL, TLI, FoldedOps); in ConstantFoldConstantImpl()
1114 FoldedOps.insert({OldC, NewC}); in ConstantFoldConstantImpl()
1116 NewC = It->second; in ConstantFoldConstantImpl()
1119 Ops.push_back(NewC); in ConstantFoldConstantImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp97 Constant *NewC = Fn(C); in transformGlobalArray() local
98 Changed |= (!NewC || NewC != C); in transformGlobalArray()
99 if (NewC) in transformGlobalArray()
100 CurrentCtors.push_back(NewC); in transformGlobalArray()
H A DLoopUnroll.cpp398 APInt NewC = C1->sadd_ov(*C2, SignedOverflow); in simplifyLoopAfterUnroll() local
400 Inst.setOperand(1, ConstantInt::get(Inst.getType(), NewC)); in simplifyLoopAfterUnroll()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp445 Value *NewC = Builder.CreateBinOp(I.getOpcode(), C, C1); in commonShiftTransforms() local
446 BinaryOperator *NewShiftOp = BinaryOperator::Create(I.getOpcode(), NewC, A); in commonShiftTransforms()
483 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms() local
487 BinaryOperator::Create(I.getOpcode(), NewC, A); in commonShiftTransforms()
1255 auto *NewC = Builder.CreateShl(ConstantInt::get(Ty, 1), C1); in visitShl() local
1256 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitShl()
1449 auto *NewC = ConstantInt::get( in visitLShr() local
1451 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitLShr()
H A DInstCombineCompares.cpp2101 Value *NewC = in foldICmpOrConstant() local
2103 return new ICmpInst(Pred, OrOp0, NewC); in foldICmpOrConstant()
2122 Constant *NewC = ConstantInt::get(Or->getType(), C ^ (*MaskC)); in foldICmpOrConstant() local
2123 return new ICmpInst(Pred, And, NewC); in foldICmpOrConstant()
2134 Constant *NewC = ConstantInt::get(X->getType(), TrueIfSigned ? 1 : 0); in foldICmpOrConstant() local
2135 return new ICmpInst(NewPred, X, NewC); in foldICmpOrConstant()
2220 Constant *NewC = ConstantInt::get(MulTy, C.sdiv(*MulC)); in foldICmpMulConstant() local
2221 return new ICmpInst(Pred, X, NewC); in foldICmpMulConstant()
2232 Constant *NewC = ConstantInt::get(MulTy, C.udiv(*MulC)); in foldICmpMulConstant() local
2233 return new ICmpInst(Pred, X, NewC); in foldICmpMulConstant()
[all …]
H A DInstCombineVectorOps.cpp2267 Constant *NewC = Op0IsBinop ? ConstantExpr::getShuffleVector(C, IdC, Mask) : in foldSelectShuffleWith1Binop() local
2274 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpcode, NewC, true); in foldSelectShuffleWith1Binop()
2278 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop()
2398 Constant *NewC = ConstantExpr::getShuffleVector(C0, C1, Mask); in foldSelectShuffle() local
2407 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpc, NewC, in foldSelectShuffle()
2442 Value *NewBO = ConstantsAreOp1 ? Builder.CreateBinOp(BOpc, V, NewC) : in foldSelectShuffle()
2443 Builder.CreateBinOp(BOpc, NewC, V); in foldSelectShuffle()
H A DInstCombineAddSub.cpp824 APInt NewC = *C2 + C1->trunc(C2->getBitWidth()); in foldNoWrapAdd() local
826 if (NewC.isZero()) in foldNoWrapAdd()
831 Builder.CreateNUWAdd(X, ConstantInt::get(X->getType(), NewC)), Ty); in foldNoWrapAdd()
841 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd() local
843 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
849 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd() local
851 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
1200 APInt NewC = C1 - C2 * C0; in SimplifyAddWithRemainder() local
1201 if (!NewC.isZero() && !Rem->hasOneUse()) in SimplifyAddWithRemainder()
1206 if (NewC.isZero()) in SimplifyAddWithRemainder()
[all …]
H A DInstCombineAndOrXor.cpp1376 APInt NewC, Offset; in foldAndOrOfICmpsUsingRanges() local
1377 CR->getEquivalentICmp(NewPred, NewC, Offset); in foldAndOrOfICmpsUsingRanges()
1381 return Builder.CreateICmp(NewPred, NewV, ConstantInt::get(Ty, NewC)); in foldAndOrOfICmpsUsingRanges()
1998 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp() local
1999 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp()
2000 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp()
2255 Value *NewC = Builder.CreateBinOp( in foldBinOpOfDisplacedShifts() local
2257 return BinaryOperator::Create(ShiftOp, NewC, ShAmt); in foldBinOpOfDisplacedShifts()
2456 Constant *NewC = ConstantInt::get(Ty, *C & *XorC); in visitAnd() local
2459 return BinaryOperator::CreateXor(And, NewC); in visitAnd()
[all …]
H A DInstCombineSimplifyDemanded.cpp691 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::Shl, C, in SimplifyDemandedUseBits() local
693 if (ConstantFoldBinaryOpOperands(Instruction::LShr, NewC, in SimplifyDemandedUseBits()
695 Instruction *Lshr = BinaryOperator::CreateLShr(NewC, X); in SimplifyDemandedUseBits()
772 Constant *NewC = ConstantFoldBinaryOpOperands(Instruction::LShr, C, in SimplifyDemandedUseBits() local
774 if (ConstantFoldBinaryOpOperands(Instruction::Shl, NewC, in SimplifyDemandedUseBits()
776 Instruction *Shl = BinaryOperator::CreateShl(NewC, X); in SimplifyDemandedUseBits()
H A DInstructionCombining.cpp2189 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands() local
2190 if (!NewC) in foldBinopWithPhiOperands()
2205 NewPhi->addIncoming(NewC, ConstBB); in foldBinopWithPhiOperands()
2435 if (Constant *NewC = in foldVectorBinop() local
2440 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop()
2444 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop()
2445 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()
3249 std::optional<APInt> NewC; in visitGetElementPtrInst() local
3253 NewC = *C - countr_zero(TyAllocSize); in visitGetElementPtrInst()
3259 NewC = Quot; in visitGetElementPtrInst()
[all …]
H A DInstCombineMulDivRem.cpp332 Value *NewC = Builder.CreateMul(C1, MulC); in visitMul() local
337 auto *BO = BinaryOperator::CreateAdd(NewMul, NewC); in visitMul()
1952 Constant *C2, *NewC = nullptr; in foldFDivConstantDividend() local
1955 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1958 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
1964 if (!NewC || !NewC->isNormalFP()) in foldFDivConstantDividend()
1967 return BinaryOperator::CreateFDivFMF(NewC, X, &I); in foldFDivConstantDividend()
H A DInstCombineCalls.cpp1306 Value *NewC = Builder.CreateSelect(CondC, C0, C1); in reassociateMinMaxWithConstants() local
1308 {LHS->getArgOperand(0), NewC}); in reassociateMinMaxWithConstants()
2467 APInt NewC = in visitCallInst() local
2472 IID, X, ConstantInt::get(Arg1->getType(), NewC))); in visitCallInst()
2548 auto *NewC = Builder.CreateBinaryIntrinsic(Intrinsic::usub_sat, C, C1); in visitCallInst() local
2550 Builder.CreateBinaryIntrinsic(Intrinsic::usub_sat, NewC, A); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp798 SmallVector<Constant *, 32> NewC(NumElts); in replaceUndefsWith() local
803 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith()
805 return ConstantVector::get(NewC); in replaceUndefsWith()
828 SmallVector<Constant *, 32> NewC(NumElts); in mergeUndefsWith() local
830 NewC[I] = C->getAggregateElement(I); in mergeUndefsWith()
832 assert(NewC[I] && OtherEltC && "Unknown vector element"); in mergeUndefsWith()
833 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
834 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith()
839 return ConstantVector::get(NewC); in mergeUndefsWith()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp3226 Comparison NewC(C); in adjustForTestUnderMask() local
3230 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask()
3231 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask()
3232 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask()
3240 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask()
3241 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask()
3242 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask()
3243 NewC.ICmpType == SystemZICMP::SignedOnly) in adjustForTestUnderMask()
3246 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask()
3247 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp403 auto *NewC = It->second.get(); in getOrCreateValueInternal() local
406 return NewC; in getOrCreateValueInternal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp1347 Comdat *NewC = M.getOrInsertComdat(NewName); in trySingleImplDevirt() local
1348 NewC->setSelectionKind(C->getSelectionKind()); in trySingleImplDevirt()
1351 GO.setComdat(NewC); in trySingleImplDevirt()
H A DGlobalOpt.cpp905 if (Constant *NewC = ConstantFoldInstruction(I, DL, TLI)) { in ConstantPropUsersOf() local
906 I->replaceAllUsesWith(NewC); in ConstantPropUsersOf()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp7435 APInt NewC, Offset; in tryFoldAndOrOrICmpsUsingRanges() local
7436 CR->getEquivalentICmp(NewPred, NewC, Offset); in tryFoldAndOrOrICmpsUsingRanges()
7451 auto NewCon = B.buildConstant(CmpOperandTy, NewC); in tryFoldAndOrOrICmpsUsingRanges()
7457 auto NewCon = B.buildConstant(CmpOperandTy, NewC); in tryFoldAndOrOrICmpsUsingRanges()
7463 auto NewCon = B.buildConstant(CmpOperandTy, NewC); in tryFoldAndOrOrICmpsUsingRanges()
7467 auto NewCon = B.buildConstant(CmpOperandTy, NewC); in tryFoldAndOrOrICmpsUsingRanges()
7650 APInt NewC = IsSigned ? MaybeAddRHS->sadd_ov(*MaybeRHS, Overflow) in matchAddOverflow() local
7655 auto ConstRHS = B.buildConstant(DstTy, NewC); in matchAddOverflow()
7662 auto ConstRHS = B.buildConstant(DstTy, NewC); in matchAddOverflow()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp2382 CycleType NewC(C.begin() + LogPos, C.end()); in perfect() local
2383 NewC.append(C.begin(), C.begin() + LogPos); in perfect()
2384 return NewC; in perfect()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplate.cpp8061 const Expr *NewC = nullptr, *OldC = nullptr; in MatchTemplateParameterKind() local
8065 NewC = TC->getImmediatelyDeclaredConstraint(); in MatchTemplateParameterKind()
8071 NewC = E; in MatchTemplateParameterKind()
8079 S.Diag(NewC ? NewC->getBeginLoc() : New->getBeginLoc(), in MatchTemplateParameterKind()
8085 if (!NewC != !OldC) { in MatchTemplateParameterKind()
8091 if (NewC) { in MatchTemplateParameterKind()
8093 NewC)) { in MatchTemplateParameterKind()
H A DTreeTransform.h13139 ExprResult NewC = getDerived().TransformExpr(C); in TransformRecoveryExpr() local
13140 if (NewC.isInvalid()) in TransformRecoveryExpr()
13142 Children.push_back(NewC.get()); in TransformRecoveryExpr()
13144 Changed |= NewC.get() != C; in TransformRecoveryExpr()
15571 TransformedInitCapture &NewC = InitCaptures[C - E->capture_begin()]; in TransformLambdaExpr() local
15576 for (InitCaptureInfoTy &Info : NewC.Expansions) { in TransformLambdaExpr()
15584 OldVD->getLocation(), InitQualType, NewC.EllipsisLoc, in TransformLambdaExpr()
15597 if (NewC.EllipsisLoc.isInvalid()) in TransformLambdaExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp570 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant() local
571 SDValue NewOp = TLO.DAG.getNode(Opcode, DL, VT, Op.getOperand(0), NewC, in ShrinkDemandedConstant()
5381 APInt NewC = C1; in SimplifySetCC() local
5385 NewC = NewC + 1; in SimplifySetCC()
5390 NewC.lshrInPlace(ShiftBits); in SimplifySetCC()
5391 if (ShiftBits && NewC.getSignificantBits() <= 64 && in SimplifySetCC()
5392 isLegalICmpImmediate(NewC.getSExtValue()) && in SimplifySetCC()
5397 SDValue CmpRHS = DAG.getConstant(NewC, dl, ShValTy); in SimplifySetCC()

12