Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h285 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp610 if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
616 } else if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
H A DConstants.cpp2675 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity() function in ConstantExpr
2740 return getBinOpIdentity(I->getOpcode(), Ty, AllowRHSConstant, NSZ); in getIdentity()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp658 return ConstantExpr::getBinOpIdentity(Opcode, V->getType()); in getIdentityValue()
1185 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1194 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
1224 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1233 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
2122 Constant *C = ConstantExpr::getBinOpIdentity(BO.getOpcode(), BO.getType(), in foldBinopWithPhiOperands()
H A DInstCombinePHI.cpp1419 BO ? ConstantExpr::getBinOpIdentity(BO->getOpcode(), Iv2Start->getType()) in foldDependentIVs()
H A DInstCombineSelect.cpp84 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity()
519 Constant *C = ConstantExpr::getBinOpIdentity( in foldSelectIntoOp()
800 ConstantExpr::getBinOpIdentity(BinOp->getOpcode(), BinOp->getType(), in foldSelectICmpAndBinOp()
H A DInstCombineVectorOps.cpp2245 Constant *IdC = ConstantExpr::getBinOpIdentity(BOpcode, Shuf.getType(), true); in foldSelectShuffleWith1Binop()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp558 Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, I->getType()); in LinearizeExprTree()
1920 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) { in OptimizeExpression()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h1201 LLVM_ABI static Constant *getBinOpIdentity(unsigned Opcode, Type *Ty,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUtils.cpp1260 return ConstantExpr::getBinOpIdentity(Opc, Ty, false, in getReductionIdentity()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1920 if (Res == ConstantExpr::getBinOpIdentity(Opcode, Res->getType())) in simplifyAndOrWithICmpEq()
4371 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpsReplaced()
4373 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpsReplaced()