Searched refs:getBinOpIdentity (Results 1 – 10 of 10) sorted by relevance
| /freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| HD | InstCombiner.h | 289 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop()
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
| HD | ConstantFold.cpp | 615 if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction() 621 } else if (Constant *Identity = ConstantExpr::getBinOpIdentity( in ConstantFoldBinaryInstruction()
|
| HD | Constants.cpp | 2653 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/ |
| HD | InstructionCombining.cpp | 629 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()
|
| HD | InstCombineSelect.cpp | 83 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()
|
| HD | InstCombinePHI.cpp | 1416 BO ? ConstantExpr::getBinOpIdentity(BO->getOpcode(), Iv2Start->getType()) in foldDependentIVs()
|
| HD | InstCombineVectorOps.cpp | 2167 Constant *IdC = ConstantExpr::getBinOpIdentity(BOpcode, Shuf.getType(), true); in foldSelectShuffleWith1Binop()
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| HD | Reassociate.cpp | 558 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/ |
| HD | Constants.h | 1174 static Constant *getBinOpIdentity(unsigned Opcode, Type *Ty,
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| HD | InstructionSimplify.cpp | 1965 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()
|