Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyCallGraph.cpp1619 SCC *NewC = nullptr; in addSplitFunction() local
1626 NewC = OriginalC; in addSplitFunction()
1627 NewC->Nodes.push_back(&NewN); in addSplitFunction()
1632 if (!NewC) { in addSplitFunction()
1660 if (!NewC) { in addSplitFunction()
1666 NewRC->SCCIndices[NewC] = 0; in addSplitFunction()
1667 NewRC->SCCs.push_back(NewC); in addSplitFunction()
1674 SCCMap[&NewN] = NewC; in addSplitFunction()
1742 NewRC->SCCIndices[NewC] = Index; in addSplitRefRecursiveFunctions()
1743 NewRC->SCCs.push_back(NewC); in addSplitRefRecursiveFunctions()
[all …]
H A DCGSCCPassManager.cpp873 for (SCC &NewC : llvm::reverse(llvm::drop_begin(NewSCCRange))) { in incorporateNewSCCRange()
874 assert(C != &NewC && "No need to re-visit the current SCC!"); in incorporateNewSCCRange()
875 assert(OldC != &NewC && "Already handled the original SCC!"); in incorporateNewSCCRange()
876 UR.CWorklist.insert(&NewC); in incorporateNewSCCRange()
877 LLVM_DEBUG(dbgs() << "Enqueuing a newly formed SCC:" << NewC << "\n"); in incorporateNewSCCRange()
881 updateNewSCCFunctionAnalyses(NewC, G, AM, *FAM); in incorporateNewSCCRange()
885 AM.invalidate(NewC, PA); in incorporateNewSCCRange()
H A DConstantFolding.cpp1131 Constant *NewC = OldC; in ConstantFoldConstantImpl() local
1137 NewC = ConstantFoldConstantImpl(OldC, DL, TLI, FoldedOps); in ConstantFoldConstantImpl()
1138 FoldedOps.insert({OldC, NewC}); in ConstantFoldConstantImpl()
1140 NewC = It->second; in ConstantFoldConstantImpl()
1143 Ops.push_back(NewC); in ConstantFoldConstantImpl()
H A DInstructionSimplify.cpp4473 SmallVector<Constant *, 16> NewC; in simplifySelectInst() local
4484 NewC.push_back(TEltC); in simplifySelectInst()
4487 NewC.push_back(FEltC); in simplifySelectInst()
4490 NewC.push_back(TEltC); in simplifySelectInst()
4494 if (NewC.size() == NumElts) in simplifySelectInst()
4495 return ConstantVector::get(NewC); in simplifySelectInst()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp409 Value *NewC = Builder.CreateBinOp(I.getOpcode(), C, C1); in commonShiftTransforms() local
410 return BinaryOperator::Create(I.getOpcode(), NewC, A); in commonShiftTransforms()
440 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms() local
444 BinaryOperator::Create(I.getOpcode(), NewC, A); in commonShiftTransforms()
1044 auto *NewC = ConstantExpr::getShl(ConstantInt::get(Ty, 1), C1); in visitShl() local
1045 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitShl()
1158 auto *NewC = ConstantInt::get( in visitLShr() local
1160 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitLShr()
H A DInstCombineSimplifyDemanded.cpp576 Constant *NewC = ConstantExpr::getShl(C, LeftShiftAmtC); in SimplifyDemandedUseBits() local
577 if (ConstantExpr::getLShr(NewC, LeftShiftAmtC) == C) { in SimplifyDemandedUseBits()
578 Instruction *Lshr = BinaryOperator::CreateLShr(NewC, X); in SimplifyDemandedUseBits()
655 Constant *NewC = ConstantExpr::getLShr(C, RightShiftAmtC); in SimplifyDemandedUseBits() local
656 if (ConstantExpr::getShl(NewC, RightShiftAmtC) == C) { in SimplifyDemandedUseBits()
657 Instruction *Shl = BinaryOperator::CreateShl(NewC, X); in SimplifyDemandedUseBits()
H A DInstCombineCompares.cpp1941 return new ICmpInst(Pred, And, NewC); in foldICmpOrConstant()
1953 return new ICmpInst(NewPred, X, NewC); in foldICmpOrConstant()
2023 Constant *NewC = nullptr; in foldICmpMulConstant() local
2036 NewC = ConstantInt::get( in foldICmpMulConstant()
2040 NewC = ConstantInt::get( in foldICmpMulConstant()
2045 NewC = ConstantInt::get( in foldICmpMulConstant()
2049 NewC = ConstantInt::get( in foldICmpMulConstant()
2054 return NewC ? new ICmpInst(Pred, Mul->getOperand(0), NewC) : nullptr; in foldICmpMulConstant()
2251 Constant *NewC = in foldICmpShlConstant() local
2787 APInt NewC = in foldICmpAddConstant() local
[all …]
H A DInstCombineVectorOps.cpp1989 Constant *NewC = Op0IsBinop ? ConstantExpr::getShuffleVector(C, IdC, Mask) : in foldSelectShuffleWith1Binop() local
1996 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpcode, NewC, true); in foldSelectShuffleWith1Binop()
2001 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop()
2118 Constant *NewC = ConstantExpr::getShuffleVector(C0, C1, Mask); in foldSelectShuffle() local
2127 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpc, NewC, in foldSelectShuffle()
2162 Value *NewBO = ConstantsAreOp1 ? Builder.CreateBinOp(BOpc, V, NewC) : in foldSelectShuffle()
2163 Builder.CreateBinOp(BOpc, NewC, V); in foldSelectShuffle()
H A DInstCombineMulDivRem.cpp1267 Constant *C2, *NewC = nullptr; in foldFDivConstantDividend() local
1271 NewC = ConstantFoldBinaryOpOperands(Instruction::FDiv, C, C2, DL); in foldFDivConstantDividend()
1274 NewC = ConstantFoldBinaryOpOperands(Instruction::FMul, C, C2, DL); in foldFDivConstantDividend()
1280 if (!NewC || !NewC->isNormalFP()) in foldFDivConstantDividend()
1283 return BinaryOperator::CreateFDivFMF(NewC, X, &I); in foldFDivConstantDividend()
H A DInstCombineAddSub.cpp825 Constant *NewC = in foldNoWrapAdd() local
827 return new ZExtInst(Builder.CreateNUWAdd(X, NewC), Ty); in foldNoWrapAdd()
835 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local
837 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
842 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local
844 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
H A DInstructionCombining.cpp1356 Constant *NewC = ConstantFoldBinaryOpOperands(BO.getOpcode(), C0, C1, DL); in foldBinopWithPhiOperands() local
1357 if (!NewC) in foldBinopWithPhiOperands()
1372 NewPhi->addIncoming(NewC, ConstBB); in foldBinopWithPhiOperands()
1817 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop() local
1822 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop()
1826 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop()
1827 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()
H A DInstCombineAndOrXor.cpp1200 APInt NewC, Offset; in foldAndOrOfICmpsUsingRanges() local
1201 CR->getEquivalentICmp(NewPred, NewC, Offset); in foldAndOrOfICmpsUsingRanges()
1205 return Builder.CreateICmp(NewPred, NewV, ConstantInt::get(Ty, NewC)); in foldAndOrOfICmpsUsingRanges()
1578 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp() local
1579 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp()
1580 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp()
1789 Constant *NewC = ConstantInt::get(Ty, *C & *XorC); in visitAnd() local
1792 return BinaryOperator::CreateXor(And, NewC); in visitAnd()
H A DInstCombineCalls.cpp989 Constant *NewC = ConstantExpr::getSelect(CondC, C0, C1); in reassociateMinMaxWithConstants() local
993 return CallInst::Create(MinMax, {LHS->getArgOperand(0), NewC}); in reassociateMinMaxWithConstants()
1620 APInt NewC = in visitCallInst() local
1625 IID, X, ConstantInt::get(Arg1->getType(), NewC))); in visitCallInst()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DCGSCCPassManagerTest.cpp1210 auto &NewC = in TEST_F() local
1212 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F()
1213 (void)&NewC; in TEST_F()
1256 auto &NewC = in TEST_F() local
1258 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F()
1259 (void)&NewC; in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp2628 Comparison NewC(C); in adjustForTestUnderMask() local
2632 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask()
2633 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask()
2634 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask()
2642 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask()
2653 NewC.CCMask ^= SystemZ::CCMASK_CMP_EQ; in adjustForTestUnderMask()
2668 NewC.Op0.getOpcode() == ISD::SHL && in adjustForTestUnderMask()
2669 isSimpleShift(NewC.Op0, ShiftVal) && in adjustForTestUnderMask()
2676 NewC.Op0 = NewC.Op0.getOperand(0); in adjustForTestUnderMask()
2687 NewC.Op0 = NewC.Op0.getOperand(0); in adjustForTestUnderMask()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp761 SmallVector<Constant *, 32> NewC(NumElts); in replaceUndefsWith() local
766 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith()
768 return ConstantVector::get(NewC); in replaceUndefsWith()
791 SmallVector<Constant *, 32> NewC(NumElts); in mergeUndefsWith() local
793 NewC[I] = C->getAggregateElement(I); in mergeUndefsWith()
795 assert(NewC[I] && OtherEltC && "Unknown vector element"); in mergeUndefsWith()
796 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
797 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith()
802 return ConstantVector::get(NewC); in mergeUndefsWith()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp1234 Comdat *NewC = M.getOrInsertComdat(NewName); in trySingleImplDevirt() local
1235 NewC->setSelectionKind(C->getSelectionKind()); in trySingleImplDevirt()
1238 GO.setComdat(NewC); in trySingleImplDevirt()
H A DGlobalOpt.cpp838 if (Constant *NewC = ConstantFoldInstruction(I, DL, TLI)) { in ConstantPropUsersOf() local
839 I->replaceAllUsesWith(NewC); in ConstantPropUsersOf()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp2084 CycleType NewC(C.begin()+LogPos, C.end()); in perfect() local
2085 NewC.append(C.begin(), C.begin()+LogPos); in perfect()
2086 return NewC; in perfect()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplate.cpp7803 const Expr *NewC = nullptr, *OldC = nullptr; in MatchTemplateParameterKind() local
7805 NewC = TC->getImmediatelyDeclaredConstraint(); in MatchTemplateParameterKind()
7810 S.Diag(NewC ? NewC->getBeginLoc() : New->getBeginLoc(), in MatchTemplateParameterKind()
7816 if (!NewC != !OldC) { in MatchTemplateParameterKind()
7822 if (NewC) { in MatchTemplateParameterKind()
7825 NewC->Profile(NewCID, S.Context, /*Canonical=*/true); in MatchTemplateParameterKind()
H A DTreeTransform.h10791 ExprResult NewC = getDerived().TransformExpr(C); in TransformRecoveryExpr() local
10792 if (NewC.isInvalid()) in TransformRecoveryExpr()
10794 Children.push_back(NewC.get()); in TransformRecoveryExpr()
10796 Changed |= NewC.get() != C; in TransformRecoveryExpr()
13175 TransformedInitCapture &NewC = InitCaptures[C - E->capture_begin()]; in TransformLambdaExpr() local
13180 for (InitCaptureInfoTy &Info : NewC.Expansions) { in TransformLambdaExpr()
13188 OldVD->getLocation(), InitQualType, NewC.EllipsisLoc, in TransformLambdaExpr()
H A DSemaTemplateInstantiateDecl.cpp3619 OMPClause *NewC = SemaRef.ActOnOpenMPMapClause( in VisitOMPDeclareMapperDecl() local
3623 Clauses.push_back(NewC); in VisitOMPDeclareMapperDecl()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp528 SDValue NewC = TLO.DAG.getConstant(DemandedBits & C, DL, VT); in ShrinkDemandedConstant() local
529 SDValue NewOp = TLO.DAG.getNode(Opcode, DL, VT, Op.getOperand(0), NewC); in ShrinkDemandedConstant()
4807 APInt NewC = C1; in SimplifySetCC() local
4811 NewC = NewC + 1; in SimplifySetCC()
4816 NewC.lshrInPlace(ShiftBits); in SimplifySetCC()
4817 if (ShiftBits && NewC.getMinSignedBits() <= 64 && in SimplifySetCC()
4818 isLegalICmpImmediate(NewC.getSExtValue()) && in SimplifySetCC()
4822 SDValue CmpRHS = DAG.getConstant(NewC, dl, ShValTy); in SimplifySetCC()
H A DDAGCombiner.cpp2394 if (SDValue NewC = DAG.FoldConstantArithmetic( in foldAddSubOfSignBit() local
2399 return DAG.getNode(ISD::ADD, DL, VT, NewShift, NewC); in foldAddSubOfSignBit()
3526 if (SDValue NewC = DAG.FoldConstantArithmetic(ISD::SUB, DL, VT, {N01, N1})) in visitSUB() local
3527 return DAG.getNode(ISD::ADD, DL, VT, N0.getOperand(0), NewC); in visitSUB()
3533 if (SDValue NewC = DAG.FoldConstantArithmetic(ISD::SUB, DL, VT, {N0, N11})) in visitSUB() local
3534 return DAG.getNode(ISD::SUB, DL, VT, NewC, N1.getOperand(0)); in visitSUB()
3540 if (SDValue NewC = DAG.FoldConstantArithmetic(ISD::ADD, DL, VT, {N01, N1})) in visitSUB() local
3541 return DAG.getNode(ISD::SUB, DL, VT, N0.getOperand(0), NewC); in visitSUB()
3548 return DAG.getNode(ISD::SUB, DL, VT, NewC, N0.getOperand(1)); in visitSUB()
14685 SDValue NewC = DAG.getNode(ISD::FADD, DL, VT, N0.getOperand(1), N1); in visitFADD() local
[all …]
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp9470 SDValue NewC = TLO.DAG.getConstant(NewMask, DL, Op.getValueType()); in targetShrinkDemandedConstant() local
9472 Op.getOperand(0), NewC); in targetShrinkDemandedConstant()

12