Home
last modified time | relevance | path

Searched refs:getBinOpIdentity (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h319 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp567 Constant *Identity = ConstantExpr::getBinOpIdentity( in insertAccumulator()
H A DReassociate.cpp643 Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, I->getType()); in LinearizeExprTree()
1977 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) { in OptimizeExpression()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp607 return ConstantExpr::getBinOpIdentity(Opcode, V->getType()); in getIdentityValue()
799 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in SimplifyUsingDistributiveLaws()
808 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in SimplifyUsingDistributiveLaws()
838 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in SimplifyUsingDistributiveLaws()
847 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in SimplifyUsingDistributiveLaws()
H A DInstCombineSelect.cpp83 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity()
461 Constant *C = ConstantExpr::getBinOpIdentity( in foldSelectIntoOp()
H A DInstCombineVectorOps.cpp1980 Constant *IdC = ConstantExpr::getBinOpIdentity(BOpcode, Shuf.getType(), true); in foldSelectShuffleWith1Binop()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h1110 static Constant *getBinOpIdentity(unsigned Opcode, Type *Ty,
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp881 Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, C1->getType()); in ConstantFoldBinaryInstruction()
H A DConstants.cpp2748 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity() function in ConstantExpr
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4128 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
4130 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()