Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h327 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp611 return ConstantExpr::getBinOpIdentity(Opcode, V->getType()); in getIdentityValue()
1134 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1143 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
1173 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1182 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
1693 Constant *C = ConstantExpr::getBinOpIdentity(BO.getOpcode(), BO.getType(), in foldBinopWithPhiOperands()
H A DInstCombineSelect.cpp83 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity()
531 Constant *C = ConstantExpr::getBinOpIdentity( in foldSelectIntoOp()
763 ConstantExpr::getBinOpIdentity(BinOp->getOpcode(), BinOp->getType(), in foldSelectICmpAndBinOp()
H A DInstCombineVectorOps.cpp2157 Constant *IdC = ConstantExpr::getBinOpIdentity(BOpcode, Shuf.getType(), true); in foldSelectShuffleWith1Binop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp682 if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
688 } else if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
H A DConstants.cpp2514 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity() function in ConstantExpr
2579 return getBinOpIdentity(I->getOpcode(), Ty, AllowRHSConstant, NSZ); in getIdentity()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1104 static Constant *getBinOpIdentity(unsigned Opcode, Type *Ty,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp653 Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, I->getType()); in LinearizeExprTree()
2002 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) { in OptimizeExpression()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1958 if (Res == ConstantExpr::getBinOpIdentity(Opcode, Res->getType())) in simplifyAndOrWithICmpEq()
4353 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
4355 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()