Lines Matching refs:Or
1133 return Builder.CreateBinOp(IsAnd ? Instruction::And : Instruction::Or, Cmp0, in foldAndOrOfICmpsWithConstEq()
1276 assert((Opcode == Instruction::And || Opcode == Instruction::Or) && in reassociateFCmps()
1321 assert((Opcode == Instruction::And || Opcode == Instruction::Or) && in matchDeMorgansLaws()
1326 (Opcode == Instruction::And) ? Instruction::Or : Instruction::And; in matchDeMorgansLaws()
1504 assert(I.getOpcode() == Instruction::Or); in foldOrToXor()
1589 assert(Opcode == Instruction::And || Opcode == Instruction::Or); in foldComplexAndOrPatterns()
1593 (Opcode == Instruction::And) ? Instruction::Or : Instruction::And; in foldComplexAndOrPatterns()
1628 return (Opcode == Instruction::Or) in foldComplexAndOrPatterns()
1638 return (Opcode == Instruction::Or) in foldComplexAndOrPatterns()
1661 if (Opcode == Instruction::Or && Op0->hasOneUse() && in foldComplexAndOrPatterns()
1668 Value *Or = cast<BinaryOperator>(X)->getOperand(0); in foldComplexAndOrPatterns() local
1669 return BinaryOperator::CreateNot(Builder.CreateAnd(Or, Y)); in foldComplexAndOrPatterns()
1700 return (Opcode == Instruction::Or) in foldComplexAndOrPatterns()
1853 case Instruction::Or: in visitAnd()
2204 static Instruction *matchFunnelShift(Instruction &Or, InstCombinerImpl &IC) { in matchFunnelShift() argument
2207 unsigned Width = Or.getType()->getScalarSizeInBits(); in matchFunnelShift()
2212 if (!match(Or.getOperand(0), m_BinOp(Or0)) || in matchFunnelShift()
2213 !match(Or.getOperand(1), m_BinOp(Or1))) in matchFunnelShift()
2254 KnownBits KnownL = IC.computeKnownBits(L, /*Depth*/ 0, &Or); in matchFunnelShift()
2301 Function *F = Intrinsic::getDeclaration(Or.getModule(), IID, Or.getType()); in matchFunnelShift()
2306 static Instruction *matchOrConcat(Instruction &Or, in matchOrConcat() argument
2308 assert(Or.getOpcode() == Instruction::Or && "bswap requires an 'or'"); in matchOrConcat()
2309 Value *Op0 = Or.getOperand(0), *Op1 = Or.getOperand(1); in matchOrConcat()
2310 Type *Ty = Or.getType(); in matchOrConcat()
2337 Function *F = Intrinsic::getDeclaration(Or.getModule(), id, Ty); in matchOrConcat()
2767 Value *Or = Builder.CreateOr(X, Y); in visitOr() local
2768 return BinaryOperator::CreateXor(Or, ConstantInt::get(Ty, *CV)); in visitOr()
2826 Value *Or = Builder.CreateOr(X, *C2 | *C3, "bitfield"); in visitOr() local
2828 return BinaryOperator::CreateAnd(Or, C01); in visitOr()
2921 Op1->hasOneUse() && (B->getOpcode() == Instruction::Or || in visitOr()
3245 if (Value *OrICmp = simplifyBinOp(Instruction::Or, LHS, RHS, SQ)) { in foldXorOfICmps()
3403 NewOpc = Instruction::Or; in sinkNotIntoOtherHandOfAndOrOr()
3405 case Instruction::Or: in sinkNotIntoOtherHandOfAndOrOr()
3476 NotVal->getOpcode() == Instruction::Or) { in foldNot()
3683 Value *Or = Builder.CreateOr(X, ConstantExpr::getNot(C2)); in visitXor() local
3684 return BinaryOperator::CreateXor(Or, ConstantExpr::getNot(C1)); in visitXor()