Home
last modified time | relevance | path

Searched refs:NegC (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsISelDAGToDAG.cpp255 SDValue NegC = CurDAG->FoldConstantArithmetic( in selectVecAddAsVecSubIfProfitable() local
257 assert(NegC && "Constant-folding failed!"); in selectVecAddAsVecSubIfProfitable()
258 SDValue NewNode = CurDAG->getNode(ISD::SUB, DL, VT, X, NegC); in selectVecAddAsVecSubIfProfitable()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp369 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local
370 return SelectInst::Create(X, NegC, ConstantInt::getNullValue(Ty)); in visitMul()
377 Constant *NegC = ConstantExpr::getNeg(ImmC); in visitMul() local
379 return SelectInst::Create(IsNeg, NegC, ConstantInt::getNullValue(Ty)); in visitMul()
1164 Constant *NegC = ConstantInt::get(Ty, -(*Op1C)); in visitSDiv() local
1165 Instruction *BO = BinaryOperator::CreateSDiv(X, NegC); in visitSDiv()
H A DInstCombineCompares.cpp6868 Constant *NegC = ConstantExpr::getFNeg(C); in visitFCmpInst() local
6869 return new FCmpInst(I.getSwappedPredicate(), X, NegC, "", &I); in visitFCmpInst()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafety.cpp1253 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()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp584 Constant *NegC = ConstantFP::get(dyn_cast<ConstantFP>(C)->getContext(), F1); in finalizeInsInstrs() local
588 unsigned ConstPoolIdx = MCP->getConstantPoolIndex(NegC, Alignment); in finalizeInsInstrs()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp9276 bool NegC = invertIfNegative(C); in PerformDAGCombine() local
9279 if (!NegA && !NegB && !NegC) in PerformDAGCombine()
9282 unsigned NewOpcode = negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC); in PerformDAGCombine()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp7336 ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(0)); in matchRotateSub() local
7337 if (!NegC) in matchRotateSub()
7370 Width = NegC->getAPIntValue(); in matchRotateSub()
7383 Width = PosC->getAPIntValue() + NegC->getAPIntValue(); in matchRotateSub()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp50825 bool NegC = !!NewOps[2]; in getNegatedExpression() local
50826 unsigned NewOpc = negateFMAOpcode(Opc, NegA != NegB, NegC, true); in getNegatedExpression()
50828 Cost = (NegA || NegB || NegC) ? NegatibleCost::Cheaper in getNegatedExpression()
51777 bool NegC = invertIfNegative(C); in combineFMA() local
51779 if (!NegA && !NegB && !NegC) in combineFMA()
51783 negateFMAOpcode(N->getOpcode(), NegA != NegB, NegC, false); in combineFMA()