reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/CodeGen/BasicTTIImpl.h
 1139       Cost += ConcreteTTI->getArithmeticInstrCost(BinaryOperator::Or, RetTy);
 1298       return ConcreteTTI->getArithmeticReductionCost(Instruction::Or, Tys[0],
 1380       Cost += ConcreteTTI->getArithmeticInstrCost(Instruction::Or, RetTy);
include/llvm/IR/Instruction.h
  176     return Opcode == And || Opcode == Or || Opcode == Xor;
  487     return Opcode == And || Opcode == Or || Opcode == Xor ||
  503     case And: case Or: case Xor:
  518     return Opcode == And || Opcode == Or;
include/llvm/IR/PatternMatch.h
  880 inline BinaryOp_match<LHS, RHS, Instruction::Or> m_Or(const LHS &L,
  882   return BinaryOp_match<LHS, RHS, Instruction::Or>(L, R);
 1835 inline BinaryOp_match<LHS, RHS, Instruction::Or, true> m_c_Or(const LHS &L,
 1837   return BinaryOp_match<LHS, RHS, Instruction::Or, true>(L, R);
lib/Analysis/BasicAliasAnalysis.cpp
  315       case Instruction::Or:
lib/Analysis/CFLGraph.h
  574       case Instruction::Or:
lib/Analysis/ConstantFolding.cpp
 1270         CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) {
 1276         Predicate == ICmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
lib/Analysis/DemandedBits.cpp
  246   case Instruction::Or:
lib/Analysis/IVDescriptors.cpp
  575   case Instruction::Or:
  758     return Instruction::Or;
lib/Analysis/InstructionSimplify.cpp
   81   if (BinOpCode == BinaryOperator::Or) {
  109     return BinOpCode == BinaryOperator::Or ? TrueVal : FalseVal;
 1993   if (Value *V = ExpandBinOp(Instruction::And, Op0, Op1, Instruction::Or,
 2061   if (Constant *C = foldOrCommuteConstant(Instruction::Or, Op0, Op1, Q))
 2146   if (Value *V = SimplifyAssociativeBinOp(Instruction::Or, Op0, Op1, Q,
 2151   if (Value *V = ExpandBinOp(Instruction::Or, Op0, Op1, Instruction::And, Q,
 2158     if (Value *V = ThreadBinOpOverSelect(Instruction::Or, Op0, Op1, Q,
 2191     if (Value *V = ThreadBinOpOverPHI(Instruction::Or, Op0, Op1, Q, MaxRecurse))
 4794   case Instruction::Or:
 5314   case Instruction::Or:
lib/Analysis/LazyValueInfo.cpp
 1296              (!isTrueDest && BO->getOpcode() != BinaryOperator::Or))
lib/Analysis/ObjCARCInstKind.cpp
  268     case Instruction::Or:
lib/Analysis/ScalarEvolution.cpp
 4514   case Instruction::Or:
 6298     case Instruction::Or:
 7276     if (BO->getOpcode() == Instruction::Or) {
 9688     } else if (BO->getOpcode() == Instruction::Or) {
lib/Analysis/TargetTransformInfo.cpp
 1170   case Instruction::Or:
lib/Analysis/ValueTracking.cpp
 1015   case Instruction::Or:
 1366             Opcode == Instruction::Or ||
 2480     case Instruction::Or:
 5321           LHS->getOpcode() == Instruction::Or) &&
 5380          LHSBO->getOpcode() == Instruction::Or))
 5449   case Instruction::Or:
lib/AsmParser/LLLexer.cpp
  847   INSTKEYWORD(and,   And);  INSTKEYWORD(or,    Or);   INSTKEYWORD(xor,   Xor);
lib/Bitcode/Reader/BitcodeReader.cpp
 1103     return IsFP ? -1 : Instruction::Or;
lib/Bitcode/Writer/BitcodeWriter.cpp
  546   case Instruction::Or:   return bitc::BINOP_OR;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2297   case Instruction::Or:
 2310     case Instruction::Or:  return MCBinaryExpr::createOr (LHS, RHS, Ctx);
lib/CodeGen/CodeGenPrepare.cpp
 3746        Inst->getOpcode() == Instruction::Or))
 7211       Opc = Instruction::Or;
 7254     if (Opc == Instruction::Or)
 7268     if (Opc == Instruction::Or) {
lib/CodeGen/ExpandReductions.cpp
   43     return Instruction::Or;
lib/CodeGen/SelectionDAG/FastISel.cpp
 1830   case Instruction::Or:
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 2099         BOpc = Instruction::Or;
 2100       else if (BOpc == Instruction::Or)
 2122   if (Opc == Instruction::Or) {
 2266         (Opcode == Instruction::And || Opcode == Instruction::Or)) {
 2988   case Instruction::Or:
lib/CodeGen/TargetLoweringBase.cpp
 1608   case Or:             return ISD::OR;
lib/ExecutionEngine/ExecutionEngine.cpp
  789     case Instruction::Or:
  807           case Instruction::Or:  GV.IntVal = LHS.IntVal | RHS.IntVal; break;
lib/ExecutionEngine/Interpreter/Execution.cpp
  794     case Instruction::Or:    INTEGER_VECTOR_OPERATION(|) break;
  836     case Instruction::Or:    R.IntVal = Src1.IntVal | Src2.IntVal; break;
 2086   case Instruction::Or:   Dest.IntVal = Op0.IntVal | Op1.IntVal; break;
lib/FuzzMutate/Operations.cpp
   30   Ops.push_back(binOpDescriptor(1, Instruction::Or));
  108   case Instruction::Or:
lib/IR/ConstantFold.cpp
  238   case Instruction::Or: {
 1043     case Instruction::Or:                          // X | undef -> -1
 1184     case Instruction::Or:
 1250       case Instruction::Or:
lib/IR/ConstantRange.cpp
  803   case Instruction::Or:
lib/IR/Constants.cpp
 1898   case Instruction::Or:
 2314   return get(Instruction::Or, C1, C2);
 2346       case Instruction::Or:  // X | 0 = X
 2390   case Instruction::Or:
lib/IR/Instruction.cpp
  327   case Or : return "or";
lib/IR/Instructions.cpp
 2326   case And: case Or:
lib/IR/Verifier.cpp
 3197   case Instruction::Or:
lib/Target/AArch64/AArch64FastISel.cpp
 1963   case Instruction::Or:
 5173   case Instruction::Or:
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  113   case Instruction::Or:
  903   case Instruction::Or:
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  259     return B.CreateBinOp(Instruction::Or, LHS, RHS);
lib/Target/ARM/ARMFastISel.cpp
 2846     case Instruction::Or:
lib/Target/ARM/ARMTargetTransformInfo.cpp
 1086   case Instruction::Or:
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  984     case Instruction::Or:
 1236     case Instruction::Or:
 1271       case Instruction::Or:
 1574     case Instruction::Or:
 1596         case Instruction::Or:
 1673       if (I->getOpcode() != Instruction::Or)
 1692         case Instruction::Or:
 1710           case Instruction::Or:
lib/Target/Mips/MipsFastISel.cpp
  877   case Instruction::Or:
 2066   case Instruction::Or:
lib/Target/PowerPC/PPCFastISel.cpp
 1962     case Instruction::Or:
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  149   case Instruction::Or:
lib/Target/RISCV/RISCVTargetTransformInfo.cpp
   54   case Instruction::Or:
lib/Target/SystemZ/SystemZTDC.cpp
  103            LI->getOpcode() == Instruction::Or ||
  299     case Instruction::Or:
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  126   case Instruction::Or:
  477                  I->getOpcode() == Instruction::Or ||
  482       else if (Opcode == Instruction::Or || Opcode == Instruction::And) {
  492     if (Opcode == Instruction::Or)
  965   case Instruction::Or:
lib/Target/X86/X86TargetTransformInfo.cpp
 3021   case Instruction::Or:
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  101     case Instruction::Or:
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
   54   case Instruction::Or:
  116     case Instruction::Or:
  347     case Instruction::Or:
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1104           I.getOpcode() == Instruction::Or ||
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1416   assert((Opcode == Instruction::And || Opcode == Instruction::Or) &&
 1461   assert((Opcode == Instruction::And || Opcode == Instruction::Or) &&
 1465   Opcode = (Opcode == Instruction::And) ? Instruction::Or : Instruction::And;
 1629   assert(I.getOpcode() == Instruction::Or);
 1820       case Instruction::Or:
 1980   assert(Or.getOpcode() == Instruction::Or && "bswap requires an 'or'");
 2628           Op1->hasOneUse() && (B->getOpcode() == Instruction::Or ||
 2851   if (Value *OrICmp = SimplifyBinOp(Instruction::Or, LHS, RHS, SQ)) {
 3028         NotVal->getOpcode() == Instruction::Or) {
lib/Transforms/InstCombine/InstCombineCasts.cpp
  180   case Instruction::Or:
  355   case Instruction::Or:
  593   case Instruction::Or:
  998   case Instruction::Or:
 1179   if (SrcI && SrcI->getOpcode() == Instruction::Or) {
 1191       BinaryOperator *Or = BinaryOperator::Create(Instruction::Or, LCast, RCast);
 1327   case Instruction::Or:
 1973   case Instruction::Or:
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1919     auto BOpc = Pred == CmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
 1932     auto BOpc = Pred == CmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
 2834     case Instruction::Or:
 2977   case Instruction::Or: {
lib/Transforms/InstCombine/InstCombineSelect.cpp
  248   case Instruction::Or:
  268   case Instruction::Or:
lib/Transforms/InstCombine/InstCombineShifts.cpp
  436   case Instruction::Or:
  553   case Instruction::Or:
  595   case Instruction::Or:
  687       case Instruction::Or:
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  199   case Instruction::Or: {
  806   case Instruction::Or: {
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1165     case Instruction::Or:
 1233     case Instruction::Or:
 1331     case Instruction::Or:
 1456     case Instruction::Or: {
lib/Transforms/InstCombine/InstructionCombining.cpp
  478     return ROp == Instruction::Or || ROp == Instruction::Xor;
  481   if (LOp == Instruction::Or)
lib/Transforms/Scalar/EarlyCSE.cpp
  829       (BI->getSuccessor(0) == BB) ? Instruction::And : Instruction::Or;
lib/Transforms/Scalar/GVN.cpp
  513     case Instruction::Or:
lib/Transforms/Scalar/GVNSink.cpp
  461     case Instruction::Or:
lib/Transforms/Scalar/IndVarSimplify.cpp
 1100   case Instruction::Or:
lib/Transforms/Scalar/JumpThreading.cpp
  691     if (I->getOpcode() == Instruction::Or ||
  704       if (I->getOpcode() == Instruction::Or)
lib/Transforms/Scalar/LoopRerollPass.cpp
  792           BO->getOpcode() == Instruction::Or)
lib/Transforms/Scalar/LoopUnswitch.cpp
  450         BO->getOpcode() == Instruction::Or) {
  459         NewChain = BO->getOpcode() == Instruction::Or ? OC_OpChainOr :
lib/Transforms/Scalar/NewGVN.cpp
 2016     case Instruction::Or:
lib/Transforms/Scalar/Reassociate.cpp
  123   if (I && (I->getOpcode() == Instruction::Or ||
  134       isOr = (I->getOpcode() == Instruction::Or);
 1145         if (Opcode == Instruction::Or)    // ...|X|~X = -1
 1154       if (Opcode == Instruction::And || Opcode == Instruction::Or) {
 1864   case Instruction::Or:
lib/Transforms/Scalar/SCCP.cpp
 1032       I.getOpcode() == Instruction::Or) {
 1553       case Instruction::Or:
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  492       BO->getOpcode() != Instruction::Or) {
  501   if (BO->getOpcode() == Instruction::Or &&
  708   if (BO->getOpcode() == Instruction::Or) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  396       if (cast<Instruction>(BI.getCondition())->getOpcode() != Instruction::Or)
  477                  Instruction::Or &&
 1934     if (cast<Instruction>(BI->getCondition())->getOpcode() != Instruction::Or) {
 2576       CondI.getOpcode() != Instruction::Or)
 2694                      Instruction::Or &&
lib/Transforms/Scalar/SpeculativeExecution.cpp
  218     case Instruction::Or:
lib/Transforms/Utils/Local.cpp
 1703     case Instruction::Or:
 2694     if (I->getOpcode() == Instruction::Or) {
 2820   if (Operator::getOpcode(I) != Instruction::Or)
lib/Transforms/Utils/LoopRotationUtils.cpp
  550     case Instruction::Or:
lib/Transforms/Utils/LoopUtils.cpp
  882   case Instruction::Or:
  961     return createSimpleTargetReduction(B, TTI, Instruction::Or, Src, Flags);
lib/Transforms/Utils/LoopVersioning.cpp
   78     RuntimeCheck = BinaryOperator::Create(Instruction::Or, MemRuntimeCheck,
lib/Transforms/Utils/PredicateInfo.cpp
  431     else if (BinOp->getOpcode() == Instruction::Or)
  448               BinOp->getOpcode() == Instruction::Or) &&
lib/Transforms/Utils/SimplifyCFG.cpp
  635     bool isEQ = (cast<Instruction>(V)->getOpcode() == Instruction::Or);
  650         if (I->getOpcode() == (isEQ ? Instruction::Or : Instruction::And)) {
 2688         Opc = Instruction::Or;
 2695         Opc = Instruction::Or;
 2830                 Instruction::Or, PBI->getCondition(), MergedCond, "or.cond"));
 2841                 Instruction::Or, NotCond, MergedCond, "or.cond"));
 3718   bool TrueWhenEqual = (Cond->getOpcode() == Instruction::Or);
lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  138     return createInstruction(Instruction::BinaryOps::Or, {LHS, RHS});
lib/Transforms/Vectorize/LoopVectorize.cpp
 4153   case Instruction::Or:
 6198   case Instruction::Or:
 6866     case Instruction::Or:
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2583     case Instruction::Or:
 3097     case Instruction::Or:
 3297   if (RdxOpcode != Instruction::Or)
 3981     case Instruction::Or:
 5017   case Instruction::Or:
 5779                 Opcode == Instruction::And || Opcode == Instruction::Or ||
tools/clang/lib/CodeGen/CGAtomic.cpp
  613     PostOp = llvm::Instruction::Or;
 1082       PostOp = llvm::Instruction::Or;
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2791                                 llvm::Instruction::Or);
11465     Value *Or = EmitX86MaskLogic(*this, Instruction::Or, Ops);
11474     Value *Or = EmitX86MaskLogic(*this, Instruction::Or, Ops);
11566     return EmitX86MaskLogic(*this, Instruction::Or, Ops);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1051     And = llvm::Instruction::Or;
 1056     Or = llvm::Instruction::Or;
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2829     And = llvm::Instruction::Or;
 2834     Or = llvm::Instruction::Or;
tools/lldb/source/Expression/IRInterpreter.cpp
  581       case Instruction::Or:
  708     case Instruction::Or:
  789       case Instruction::Or:
tools/llvm-stress/llvm-stress.cpp
  406     case 11:{Op = Instruction::Or;   break; }
tools/polly/lib/Analysis/ScopBuilder.cpp
  458     assert(Opcode == Instruction::And || Opcode == Instruction::Or);
 2662   case Instruction::Or:
tools/polly/lib/Analysis/ScopDetection.cpp
  565     if (Opcode == Instruction::And || Opcode == Instruction::Or) {
tools/polly/lib/Support/SCEVValidator.cpp
  685     if (Opcode == Instruction::And || Opcode == Instruction::Or)
unittests/Transforms/Vectorize/VPlanPredicatorTest.cpp
  212   EXPECT_EQ(Or->getOpcode(), Instruction::Or);