| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsISelDAGToDAG.cpp | 256 SDValue NegC = CurDAG->FoldConstantArithmetic( in selectVecAddAsVecSubIfProfitable() local 258 assert(NegC && "Constant-folding failed!"); in selectVecAddAsVecSubIfProfitable() 259 SDValue NewNode = CurDAG->getNode(ISD::SUB, DL, VT, X, NegC); in selectVecAddAsVecSubIfProfitable()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 429 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local 430 return SelectInst::Create(X, NegC, ConstantInt::getNullValue(Ty)); in visitMul() 437 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local 439 return SelectInst::Create(IsNeg, NegC, ConstantInt::getNullValue(Ty)); in visitMul() 561 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFMul() local 562 return BinaryOperator::CreateFMulFMF(X, NegC, &I); in visitFMul() 1392 Constant *NegC = ConstantInt::get(Ty, -(*Op1C)); in visitSDiv() local 1393 Instruction *BO = BinaryOperator::CreateSDiv(X, NegC); in visitSDiv() 1464 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFDivConstantDivisor() local 1465 return BinaryOperator::CreateFDivFMF(X, NegC, &I); in foldFDivConstantDivisor() [all …]
|
| H A D | InstCombineAddSub.cpp | 2410 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2411 return BinaryOperator::CreateFMulFMF(X, NegC, &I); in foldFNegIntoConstant() 2414 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2415 return BinaryOperator::CreateFDivFMF(X, NegC, &I); in foldFNegIntoConstant() 2418 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) { in foldFNegIntoConstant() local 2419 Instruction *FDiv = BinaryOperator::CreateFDivFMF(NegC, X, &I); in foldFNegIntoConstant() 2433 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in foldFNegIntoConstant() local 2434 return BinaryOperator::CreateFSubFMF(NegC, X, &I); in foldFNegIntoConstant() 2593 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFSub() local 2594 return BinaryOperator::CreateFAddFMF(Op0, NegC, &I); in visitFSub()
|
| H A D | InstCombineCompares.cpp | 6956 if (Constant *NegC = ConstantFoldUnaryOpOperand(Instruction::FNeg, C, DL)) in visitFCmpInst() local 6957 return new FCmpInst(I.getSwappedPredicate(), X, NegC, "", &I); in visitFCmpInst()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | ThreadSafety.cpp | 1253 CapabilityExpr NegC = !*Entry; in addLock() local 1254 const FactEntry *Nen = FSet.findLock(FactMan, NegC); in addLock() 1256 FSet.removeLock(FactMan, NegC); in addLock() 1261 NegC.toString(), Entry->loc()); in addLock()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| H A D | PPCInstrInfo.cpp | 588 Constant *NegC = ConstantFP::get(dyn_cast<ConstantFP>(C)->getContext(), F1); in finalizeInsInstrs() local 592 unsigned ConstPoolIdx = MCP->getConstantPoolIndex(NegC, Alignment); in finalizeInsInstrs()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 10512 bool NegC = invertIfNegative(C); in PerformDAGCombine() local 10515 if (!NegA && !NegB && !NegC) in PerformDAGCombine() 10518 unsigned NewOpcode = negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC); in PerformDAGCombine()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 7504 ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(0)); in matchRotateSub() local 7505 if (!NegC) in matchRotateSub() 7538 Width = NegC->getAPIntValue(); in matchRotateSub() 7551 Width = PosC->getAPIntValue() + NegC->getAPIntValue(); in matchRotateSub()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 52148 bool NegC = !!NewOps[2]; in getNegatedExpression() local 52149 unsigned NewOpc = negateFMAOpcode(Opc, NegA != NegB, NegC, true); in getNegatedExpression() 52151 Cost = (NegA || NegB || NegC) ? NegatibleCost::Cheaper in getNegatedExpression() 53114 bool NegC = invertIfNegative(C); in combineFMA() local 53116 if (!NegA && !NegB && !NegC) in combineFMA() 53120 negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC, false); in combineFMA()
|