Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
HDInstCombiner.h289 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
HDConstantFold.cpp615 if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
621 } else if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
HDConstants.cpp2653 Constant *ConstantExpr::getBinOpIdentity(unsigned Opcode, Type *Ty, in getBinOpIdentity() function in ConstantExpr
2718 return getBinOpIdentity(I->getOpcode(), Ty, AllowRHSConstant, NSZ); in getIdentity()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
HDInstructionCombining.cpp629 return ConstantExpr::getBinOpIdentity(Opcode, V->getType()); in getIdentityValue()
1157 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1166 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
1196 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in foldUsingDistributiveLaws()
1205 if (R && R == ConstantExpr::getBinOpIdentity(InnerOpcode, R->getType())) { in foldUsingDistributiveLaws()
1900 Constant *C = ConstantExpr::getBinOpIdentity(BO.getOpcode(), BO.getType(), in foldBinopWithPhiOperands()
HDInstCombineSelect.cpp83 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity()
537 Constant *C = ConstantExpr::getBinOpIdentity( in foldSelectIntoOp()
779 ConstantExpr::getBinOpIdentity(BinOp->getOpcode(), BinOp->getType(), in foldSelectICmpAndBinOp()
HDInstCombinePHI.cpp1416 BO ? ConstantExpr::getBinOpIdentity(BO->getOpcode(), Iv2Start->getType()) in foldDependentIVs()
HDInstCombineVectorOps.cpp2167 Constant *IdC = ConstantExpr::getBinOpIdentity(BOpcode, Shuf.getType(), true); in foldSelectShuffleWith1Binop()
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
HDReassociate.cpp558 Constant *Identity = ConstantExpr::getBinOpIdentity(Opcode, I->getType()); in LinearizeExprTree()
1919 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) { in OptimizeExpression()
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
HDConstants.h1174 static Constant *getBinOpIdentity(unsigned Opcode, Type *Ty,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
HDInstructionSimplify.cpp1965 if (Res == ConstantExpr::getBinOpIdentity(Opcode, Res->getType())) in simplifyAndOrWithICmpEq()
4374 if (NewOps[0] == ConstantExpr::getBinOpIdentity(Opcode, I->getType())) in simplifyWithOpReplaced()
4376 if (NewOps[1] == ConstantExpr::getBinOpIdentity(Opcode, I->getType(), in simplifyWithOpReplaced()