Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DValueList.cpp195 Constant *NewC; in resolveConstantForwardRefs() local
197 NewC = ConstantArray::get(UserCA->getType(), NewOps); in resolveConstantForwardRefs()
199 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in resolveConstantForwardRefs()
201 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
204 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs()
207 UserC->replaceAllUsesWith(NewC); in resolveConstantForwardRefs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCGSCCPassManager.cpp388 for (SCC &NewC : llvm::reverse(make_range(std::next(NewSCCRange.begin()), in incorporateNewSCCRange()
390 assert(C != &NewC && "No need to re-visit the current SCC!"); in incorporateNewSCCRange()
391 assert(OldC != &NewC && "Already handled the original SCC!"); in incorporateNewSCCRange()
392 UR.CWorklist.insert(&NewC); in incorporateNewSCCRange()
393 LLVM_DEBUG(dbgs() << "Enqueuing a newly formed SCC:" << NewC << "\n"); in incorporateNewSCCRange()
397 updateNewSCCFunctionAnalyses(NewC, G, AM); in incorporateNewSCCRange()
401 AM.invalidate(NewC, PA); in incorporateNewSCCRange()
DConstantFolding.cpp1057 auto *NewC = cast<Constant>(&NewU); in ConstantFoldConstantImpl() local
1060 if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) { in ConstantFoldConstantImpl()
1061 auto It = FoldedOps.find(NewC); in ConstantFoldConstantImpl()
1064 ConstantFoldConstantImpl(NewC, DL, TLI, FoldedOps)) { in ConstantFoldConstantImpl()
1065 FoldedOps.insert({NewC, FoldedC}); in ConstantFoldConstantImpl()
1066 NewC = FoldedC; in ConstantFoldConstantImpl()
1068 FoldedOps.insert({NewC, NewC}); in ConstantFoldConstantImpl()
1071 NewC = It->second; in ConstantFoldConstantImpl()
1074 Ops.push_back(NewC); in ConstantFoldConstantImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp1214 Constant *NewC = Op0IsBinop ? ConstantExpr::getShuffleVector(C, IdC, Mask) : in foldSelectShuffleWith1Binop() local
1221 NewC = getSafeVectorConstantForBinop(BOpcode, NewC, true); in foldSelectShuffleWith1Binop()
1226 Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC); in foldSelectShuffleWith1Binop()
1293 Constant *NewC = ConstantExpr::getShuffleVector(C0, C1, Mask); in foldSelectShuffle() local
1302 NewC = getSafeVectorConstantForBinop(BOpc, NewC, ConstantsAreOp1); in foldSelectShuffle()
1336 Instruction *NewBO = ConstantsAreOp1 ? BinaryOperator::Create(BOpc, V, NewC) : in foldSelectShuffle()
1337 BinaryOperator::Create(BOpc, NewC, V); in foldSelectShuffle()
DInstCombineAndOrXor.cpp1394 Value *NewC = ConstantExpr::getTrunc(C, X->getType()); in narrowMaskedBinOp() local
1395 Value *NewBO = Opc == Instruction::Sub ? Builder.CreateBinOp(Opc, NewC, X) in narrowMaskedBinOp()
1396 : Builder.CreateBinOp(Opc, X, NewC); in narrowMaskedBinOp()
1445 Constant *NewC = ConstantInt::get(I.getType(), *C & *XorC); in visitAnd() local
1448 return BinaryOperator::CreateXor(And, NewC); in visitAnd()
2573 Constant *NewC = ConstantInt::get(I.getType(), -(*C) - 1); in visitXor() local
2574 return BinaryOperator::CreateAdd(X, NewC); in visitXor()
2578 Constant *NewC = ConstantInt::get(I.getType(), *C + *RHSC); in visitXor() local
2579 return BinaryOperator::CreateSub(NewC, X); in visitXor()
2584 Constant *NewC = ConstantInt::get(I.getType(), -(*C) - 1); in visitXor() local
[all …]
DInstCombineMulDivRem.cpp1154 Constant *C2, *NewC = nullptr; in foldFDivConstantDividend() local
1157 NewC = ConstantExpr::getFDiv(C, C2); in foldFDivConstantDividend()
1160 NewC = ConstantExpr::getFMul(C, C2); in foldFDivConstantDividend()
1166 if (!NewC || !NewC->isNormalFP()) in foldFDivConstantDividend()
1169 return BinaryOperator::CreateFDivFMF(NewC, X, &I); in foldFDivConstantDividend()
DInstructionCombining.cpp1420 Constant *NewC = ConstantVector::get(NewVecC); in foldShuffledBinop() local
1426 NewC = getSafeVectorConstantForBinop(Inst.getOpcode(), NewC, ConstOp1); in foldShuffledBinop()
1430 Value *NewLHS = isa<Constant>(LHS) ? NewC : V1; in foldShuffledBinop()
1431 Value *NewRHS = isa<Constant>(LHS) ? V1 : NewC; in foldShuffledBinop()
DInstCombineCompares.cpp1976 Constant *NewC = in foldICmpShlConstant() local
1978 return new ICmpInst(Pred, Builder.CreateTrunc(X, TruncTy), NewC); in foldICmpShlConstant()
2345 APInt NewC = C.ssub_ov(*C2, Overflow); in foldICmpAddConstant() local
2351 return new ICmpInst(Pred, X, ConstantInt::get(Ty, NewC)); in foldICmpAddConstant()
2491 Value *NewC = ConstantInt::get(EltTy, C.trunc(EltTy->getBitWidth())); in foldICmpBitCastConstant() local
2492 return new ICmpInst(Pred, Extract, NewC); in foldICmpBitCastConstant()
DInstCombineAddSub.cpp971 Constant *NewC = in foldAddWithConstant() local
973 return new ZExtInst(Builder.CreateNUWAdd(X, NewC), Ty); in foldAddWithConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DCGSCCPassManagerTest.cpp1171 auto &NewC = in TEST_F() local
1173 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F()
1174 (void)&NewC; in TEST_F()
1217 auto &NewC = in TEST_F() local
1219 assert(&NewC != &C && "Should get a new SCC due to update!"); in TEST_F()
1220 (void)&NewC; in TEST_F()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp1980 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp2127 Comparison NewC(C); in adjustForTestUnderMask() local
2131 NewC.Op0 = C.Op0.getOperand(0); in adjustForTestUnderMask()
2132 NewC.Op1 = C.Op0.getOperand(1); in adjustForTestUnderMask()
2133 Mask = dyn_cast<ConstantSDNode>(NewC.Op1); in adjustForTestUnderMask()
2141 if (NewC.Op0.getValueType() != MVT::i64 || in adjustForTestUnderMask()
2142 NewC.CCMask == SystemZ::CCMASK_CMP_EQ || in adjustForTestUnderMask()
2143 NewC.CCMask == SystemZ::CCMASK_CMP_NE || in adjustForTestUnderMask()
2144 NewC.ICmpType == SystemZICMP::SignedOnly) in adjustForTestUnderMask()
2147 if (NewC.CCMask == SystemZ::CCMASK_CMP_LE || in adjustForTestUnderMask()
2148 NewC.CCMask == SystemZ::CCMASK_CMP_GT) { in adjustForTestUnderMask()
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp987 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/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1884 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()
DDAGCombiner.cpp1902 SDValue NewC = DAG.getConstant(N0C->getAPIntValue() - N1C1->getAPIntValue(), in visitSUB() local
1904 return DAG.getNode(ISD::SUB, DL, VT, NewC, in visitSUB()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DWholeProgramDevirt.cpp804 Comdat *NewC = M.getOrInsertComdat(NewName); in trySingleImplDevirt() local
805 NewC->setSelectionKind(C->getSelectionKind()); in trySingleImplDevirt()
808 GO.setComdat(NewC); in trySingleImplDevirt()
DGlobalOpt.cpp817 if (Constant *NewC = ConstantFoldInstruction(I, DL, TLI)) { in ConstantPropUsersOf() local
818 I->replaceAllUsesWith(NewC); in ConstantPropUsersOf()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp373 SDValue NewC = DAG.getConstant(Demanded & C, DL, VT); in ShrinkDemandedConstant() local
374 SDValue NewOp = DAG.getNode(Opcode, DL, VT, Op.getOperand(0), NewC); in ShrinkDemandedConstant()
2516 APInt NewC = C1; in SimplifySetCC() local
2520 NewC = NewC + 1; in SimplifySetCC()
2525 NewC.lshrInPlace(ShiftBits); in SimplifySetCC()
2526 if (ShiftBits && NewC.getMinSignedBits() <= 64 && in SimplifySetCC()
2527 isLegalICmpImmediate(NewC.getSExtValue())) { in SimplifySetCC()
2534 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC()
DDAGCombiner.cpp2031 APInt NewC = IsAdd ? C->getAPIntValue() + 1 : C->getAPIntValue() - 1; in foldAddSubOfSignBit() local
2032 return DAG.getNode(ISD::ADD, DL, VT, NewShift, DAG.getConstant(NewC, DL, VT)); in foldAddSubOfSignBit()
2645 SDValue NewC = DAG.getNode(ISD::SUB, DL, VT, N0, N11); in visitSUB() local
2646 return DAG.getNode(ISD::SUB, DL, VT, NewC, N1.getOperand(0)); in visitSUB()
10798 SDValue NewC = DAG.getNode(ISD::FADD, DL, VT, N0.getOperand(1), N1, Flags); in visitFADD() local
10799 return DAG.getNode(ISD::FADD, DL, VT, N0.getOperand(0), NewC, Flags); in visitFADD()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAGHVX.cpp1768 CycleType NewC(C.begin()+LogPos, C.end()); in perfect() local
1769 NewC.append(C.begin(), C.begin()+LogPos); in perfect()
1770 return NewC; in perfect()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1068 Constant *NewC; in resolveConstantForwardRefs() local
1070 NewC = ConstantArray::get(UserCA->getType(), NewOps); in resolveConstantForwardRefs()
1072 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in resolveConstantForwardRefs()
1074 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
1077 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs()
1080 UserC->replaceAllUsesWith(NewC); in resolveConstantForwardRefs()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp775 if (Constant *NewC = ConstantFoldInstruction(I, DL, TLI)) { in ConstantPropUsersOf() local
776 I->replaceAllUsesWith(NewC); in ConstantPropUsersOf()
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringARM32.cpp556 int32_t NewC = C->getValue(); in genTargetHelperCallFor() local
558 NewC &= ~(0x80000000l >> ShAmt); in genTargetHelperCallFor()
560 NewC = (NewC << ShAmt) >> ShAmt; in genTargetHelperCallFor()
562 Src1 = Ctx->getConstantInt32(NewC); in genTargetHelperCallFor()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp28856 SDValue NewC = TLO.DAG.getConstant(ZeroExtendMask, DL, VT); in targetShrinkDemandedConstant() local
28857 SDValue NewOp = TLO.DAG.getNode(ISD::AND, DL, VT, Op.getOperand(0), NewC); in targetShrinkDemandedConstant()