/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/ |
D | ValueList.cpp | 204 Constant *NewC; in resolveConstantForwardRefs() local 206 NewC = ConstantArray::get(UserCA->getType(), NewOps); in resolveConstantForwardRefs() 208 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in resolveConstantForwardRefs() 210 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs() 213 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs() 216 UserC->replaceAllUsesWith(NewC); in resolveConstantForwardRefs()
|
/external/llvm-project/llvm/lib/Bitcode/Reader/ |
D | ValueList.cpp | 201 Constant *NewC; in resolveConstantForwardRefs() local 203 NewC = ConstantArray::get(UserCA->getType(), NewOps); in resolveConstantForwardRefs() 205 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in resolveConstantForwardRefs() 207 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs() 210 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs() 213 UserC->replaceAllUsesWith(NewC); in resolveConstantForwardRefs()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | CGSCCPassManager.cpp | 408 for (SCC &NewC : llvm::reverse(make_range(std::next(NewSCCRange.begin()), in incorporateNewSCCRange() 410 assert(C != &NewC && "No need to re-visit the current SCC!"); in incorporateNewSCCRange() 411 assert(OldC != &NewC && "Already handled the original SCC!"); in incorporateNewSCCRange() 412 UR.CWorklist.insert(&NewC); in incorporateNewSCCRange() 413 LLVM_DEBUG(dbgs() << "Enqueuing a newly formed SCC:" << NewC << "\n"); in incorporateNewSCCRange() 417 updateNewSCCFunctionAnalyses(NewC, G, AM); in incorporateNewSCCRange() 421 AM.invalidate(NewC, PA); in incorporateNewSCCRange()
|
D | ConstantFolding.cpp | 1086 auto *NewC = cast<Constant>(&NewU); in ConstantFoldConstantImpl() local 1089 if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) { in ConstantFoldConstantImpl() 1090 auto It = FoldedOps.find(NewC); in ConstantFoldConstantImpl() 1093 ConstantFoldConstantImpl(NewC, DL, TLI, FoldedOps)) { in ConstantFoldConstantImpl() 1094 FoldedOps.insert({NewC, FoldedC}); in ConstantFoldConstantImpl() 1095 NewC = FoldedC; in ConstantFoldConstantImpl() 1097 FoldedOps.insert({NewC, NewC}); in ConstantFoldConstantImpl() 1100 NewC = It->second; in ConstantFoldConstantImpl() 1103 Ops.push_back(NewC); in ConstantFoldConstantImpl()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | CGSCCPassManager.cpp | 879 for (SCC &NewC : llvm::reverse(make_range(std::next(NewSCCRange.begin()), in incorporateNewSCCRange() 881 assert(C != &NewC && "No need to re-visit the current SCC!"); in incorporateNewSCCRange() 882 assert(OldC != &NewC && "Already handled the original SCC!"); in incorporateNewSCCRange() 883 UR.CWorklist.insert(&NewC); in incorporateNewSCCRange() 884 LLVM_DEBUG(dbgs() << "Enqueuing a newly formed SCC:" << NewC << "\n"); in incorporateNewSCCRange() 888 updateNewSCCFunctionAnalyses(NewC, G, AM, *FAM); in incorporateNewSCCRange() 892 AM.invalidate(NewC, PA); in incorporateNewSCCRange()
|
D | ConstantFolding.cpp | 1133 Constant *NewC = OldC; in ConstantFoldConstantImpl() local 1139 NewC = ConstantFoldConstantImpl(OldC, DL, TLI, FoldedOps); in ConstantFoldConstantImpl() 1140 FoldedOps.insert({OldC, NewC}); in ConstantFoldConstantImpl() 1142 NewC = It->second; in ConstantFoldConstantImpl() 1145 Ops.push_back(NewC); in ConstantFoldConstantImpl()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 1820 Constant *NewC = Op0IsBinop ? ConstantExpr::getShuffleVector(C, IdC, Mask) : in foldSelectShuffleWith1Binop() local 1827 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpcode, NewC, true); in foldSelectShuffleWith1Binop() 1832 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop() 1946 Constant *NewC = ConstantExpr::getShuffleVector(C0, C1, Mask); in foldSelectShuffle() local 1955 NewC = InstCombiner::getSafeVectorConstantForBinop(BOpc, NewC, in foldSelectShuffle() 1990 Instruction *NewBO = ConstantsAreOp1 ? BinaryOperator::Create(BOpc, V, NewC) : in foldSelectShuffle() 1991 BinaryOperator::Create(BOpc, NewC, V); in foldSelectShuffle()
|
D | InstCombineMulDivRem.cpp | 1245 Constant *C2, *NewC = nullptr; in foldFDivConstantDividend() local 1248 NewC = ConstantExpr::getFDiv(C, C2); in foldFDivConstantDividend() 1251 NewC = ConstantExpr::getFMul(C, C2); in foldFDivConstantDividend() 1257 if (!NewC || !NewC->isNormalFP()) in foldFDivConstantDividend() 1260 return BinaryOperator::CreateFDivFMF(NewC, X, &I); in foldFDivConstantDividend()
|
D | InstCombineCompares.cpp | 1930 Constant *NewC = ConstantInt::get(Or->getType(), C ^ (*MaskC)); in foldICmpOrConstant() local 1931 return new ICmpInst(Pred, And, NewC); in foldICmpOrConstant() 1989 Constant *NewC = ConstantInt::get(Mul->getType(), C.sdiv(*MulC)); in foldICmpMulConstant() local 1990 return new ICmpInst(Pred, Mul->getOperand(0), NewC); in foldICmpMulConstant() 1994 Constant *NewC = ConstantInt::get(Mul->getType(), C.udiv(*MulC)); in foldICmpMulConstant() local 1995 return new ICmpInst(Pred, Mul->getOperand(0), NewC); in foldICmpMulConstant() 2197 Constant *NewC = in foldICmpShlConstant() local 2199 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant() 2620 APInt NewC = in foldICmpAddConstant() local 2627 return new ICmpInst(Pred, X, ConstantInt::get(Ty, NewC)); in foldICmpAddConstant() [all …]
|
D | InstCombineAddSub.cpp | 838 Constant *NewC = in foldNoWrapAdd() local 840 return new ZExtInst(Builder.CreateNUWAdd(X, NewC), Ty); in foldNoWrapAdd() 848 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local 850 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd() 855 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local 857 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
|
D | InstructionCombining.cpp | 1667 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop() local 1672 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop() 1676 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop() 1677 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 1484 Constant *NewC = Op0IsBinop ? ConstantExpr::getShuffleVector(C, IdC, Mask) : in foldSelectShuffleWith1Binop() local 1491 NewC = getSafeVectorConstantForBinop(BOpcode, NewC, true); in foldSelectShuffleWith1Binop() 1496 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop() 1609 Constant *NewC = ConstantExpr::getShuffleVector(C0, C1, Mask); in foldSelectShuffle() local 1618 NewC = getSafeVectorConstantForBinop(BOpc, NewC, ConstantsAreOp1); in foldSelectShuffle() 1652 Instruction *NewBO = ConstantsAreOp1 ? BinaryOperator::Create(BOpc, V, NewC) : in foldSelectShuffle() 1653 BinaryOperator::Create(BOpc, NewC, V); in foldSelectShuffle()
|
D | InstCombineMulDivRem.cpp | 1184 Constant *C2, *NewC = nullptr; in foldFDivConstantDividend() local 1187 NewC = ConstantExpr::getFDiv(C, C2); in foldFDivConstantDividend() 1190 NewC = ConstantExpr::getFMul(C, C2); in foldFDivConstantDividend() 1196 if (!NewC || !NewC->isNormalFP()) in foldFDivConstantDividend() 1199 return BinaryOperator::CreateFDivFMF(NewC, X, &I); in foldFDivConstantDividend()
|
D | InstCombineAndOrXor.cpp | 1714 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp() local 1715 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp() 1716 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp() 1765 Constant *NewC = ConstantInt::get(I.getType(), *C & *XorC); in visitAnd() local 1768 return BinaryOperator::CreateXor(And, NewC); in visitAnd() 3104 Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC); in visitXor() local 3105 return BinaryOperator::CreateSub(NewC, X); in visitXor() 3109 Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC); in visitXor() local 3110 return BinaryOperator::CreateAdd(X, NewC); in visitXor() 3116 Constant *NewC = ConstantInt::get(I.getType(), *C ^ *RHSC); in visitXor() local [all …]
|
D | InstCombineAddSub.cpp | 841 Constant *NewC = in foldNoWrapAdd() local 843 return new ZExtInst(Builder.CreateNUWAdd(X, NewC), Ty); in foldNoWrapAdd() 851 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local 853 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd() 858 Constant *NewC = ConstantExpr::getAdd(WideC, Op1C); in foldNoWrapAdd() local 860 return BinaryOperator::CreateAdd(WideX, NewC); in foldNoWrapAdd()
|
D | InstCombineCompares.cpp | 2154 Constant *NewC = in foldICmpShlConstant() local 2156 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant() 2577 APInt NewC = in foldICmpAddConstant() local 2584 return new ICmpInst(Pred, X, ConstantInt::get(Ty, NewC)); in foldICmpAddConstant() 2809 Value *NewC = ConstantInt::get(EltTy, C->trunc(EltTy->getBitWidth())); in foldICmpBitCast() local 2810 return new ICmpInst(Pred, Extract, NewC); in foldICmpBitCast() 5246 Constant *NewC = ConstantExpr::getAdd(C, OneOrNegOne); in getFlippedStrictnessPredicateAndConstant() local 5248 return std::make_pair(NewPred, NewC); in getFlippedStrictnessPredicateAndConstant() 6182 Constant *NewC = ConstantFP::get(X->getType(), TruncC); in visitFCmpInst() local 6183 return new FCmpInst(Pred, X, NewC, "", &I); in visitFCmpInst()
|
D | InstructionCombining.cpp | 1578 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop() local 1583 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop() 1587 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop() 1588 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 1980 Comparison NewC(C); in adjustForTestUnderMask() local 1984 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask() 1985 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask() 1986 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask() 1994 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask() 1995 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask() 1996 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask() 1997 NewC.ICmpType == SystemZICMP::SignedOnly) in adjustForTestUnderMask() 2000 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask() 2001 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask() [all …]
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | CGSCCPassManagerTest.cpp | 1209 auto &NewC = in TEST_F() local 1211 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F() 1212 (void)&NewC; in TEST_F() 1255 auto &NewC = in TEST_F() local 1257 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F() 1258 (void)&NewC; in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 2386 Comparison NewC(C); in adjustForTestUnderMask() local 2390 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask() 2391 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask() 2392 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask() 2400 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask() 2401 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask() 2402 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask() 2403 NewC.ICmpType == SystemZICMP::SignedOnly) in adjustForTestUnderMask() 2406 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask() 2407 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask() [all …]
|
/external/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 987 if (auto *NewC = dyn_cast<ConstantExpr>(C)) in ConstantFoldInstruction() local 988 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction() 1047 auto *NewC = cast<Constant>(&NewU); in ConstantFoldConstantExpressionImpl() local 1050 if (auto *NewCE = dyn_cast<ConstantExpr>(NewC)) { in ConstantFoldConstantExpressionImpl() 1052 NewC = ConstantFoldConstantExpressionImpl(NewCE, DL, TLI, FoldedOps); in ConstantFoldConstantExpressionImpl() 1054 Ops.push_back(NewC); in ConstantFoldConstantExpressionImpl()
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 2426 Comparison NewC(C); in adjustForTestUnderMask() local 2430 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask() 2431 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask() 2432 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask() 2440 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask() 2441 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask() 2442 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask() 2443 NewC.ICmpType == SystemZICMP::SignedOnly) in adjustForTestUnderMask() 2446 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask() 2447 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | Constants.cpp | 750 SmallVector<Constant *, 32> NewC(NumElts); in replaceUndefsWith() local 755 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith() 757 return ConstantVector::get(NewC); in replaceUndefsWith() 780 SmallVector<Constant *, 32> NewC(NumElts); in mergeUndefsWith() local 782 NewC[I] = C->getAggregateElement(I); in mergeUndefsWith() 784 assert(NewC[I] && OtherEltC && "Unknown vector element"); in mergeUndefsWith() 785 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith() 786 NewC[I] = UndefValue::get(EltTy); in mergeUndefsWith() 791 return ConstantVector::get(NewC); in mergeUndefsWith()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1884 APInt NewC = C1; in SimplifySetCC() local 1888 NewC = NewC + 1; in SimplifySetCC() 1893 NewC = NewC.lshr(ShiftBits); in SimplifySetCC() 1894 if (ShiftBits && NewC.getMinSignedBits() <= 64 && in SimplifySetCC() 1895 isLegalICmpImmediate(NewC.getSExtValue())) { in SimplifySetCC() 1903 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | WholeProgramDevirt.cpp | 964 Comdat *NewC = M.getOrInsertComdat(NewName); in trySingleImplDevirt() local 965 NewC->setSelectionKind(C->getSelectionKind()); in trySingleImplDevirt() 968 GO.setComdat(NewC); in trySingleImplDevirt()
|