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

Declarations

include/llvm/IR/InstrTypes.h
  216   static BinaryOperator *Create(BinaryOps Op, Value *S1, Value *S2,

References

examples/ModuleMaker/ModuleMaker.cpp
   54   Instruction *Add = BinaryOperator::Create(Instruction::Add, Two, Three,
include/llvm/IR/IRBuilder.h
 1077     BinaryOperator *BO = Insert(BinaryOperator::Create(Opc, LHS, RHS), Name);
 1477     Instruction *BinOp = BinaryOperator::Create(Opc, LHS, RHS);
include/llvm/IR/InstrTypes.h
  253     BinaryOperator *BO = Create(Opc, V1, V2, Name);
  291     BinaryOperator *BO = Create(Opc, V1, V2, Name);
  303     BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
  310     BinaryOperator *BO = Create(Opc, V1, V2, Name);
  322     BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
  329     BinaryOperator *BO = Create(Opc, V1, V2, Name);
  341     BinaryOperator *BO = Create(Opc, V1, V2, Name, I);
include/llvm/IR/NoFolder.h
  175     return BinaryOperator::Create(Opc, LHS, RHS);
lib/AsmParser/LLParser.cpp
 6486   Inst = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
 6503   Inst = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
lib/Bitcode/Reader/BitcodeReader.cpp
 3897       I = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
lib/CodeGen/CodeGenPrepare.cpp
 1485         BinaryOperator::Create(Instruction::And, AndI->getOperand(0),
lib/FuzzMutate/Operations.cpp
   94     return BinaryOperator::Create(Op, Srcs[0], Srcs[1], "B", Inst);
lib/IR/Constants.cpp
 3035       BinaryOperator::Create((Instruction::BinaryOps)getOpcode(),
lib/IR/Instructions.cpp
 2349   BinaryOperator *Res = Create(Op, S1, S2, Name);
 4110   return Create(getOpcode(), Op<0>(), Op<1>());
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  890   BinaryOperator *SetjmpTableSize = BinaryOperator::Create(
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1452   return BinaryOperator::Create(Opcode, NewFCmp, BO11);
 1796         return BinaryOperator::Create(BinOp, X, NewRHS);
 1802         return BinaryOperator::Create(BinOp, NewLHS, Y);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1726     return BinaryOperator::Create(*Action.BinaryOp, II->getArgOperand(0),
 1741     return BinaryOperator::Create(
lib/Transforms/InstCombine/InstCombineCasts.cpp
  189     Res = BinaryOperator::Create((Instruction::BinaryOps)Opc, LHS, RHS);
  603       return BinaryOperator::Create(BinOp->getOpcode(), NarrowC, TruncX);
  609       return BinaryOperator::Create(BinOp->getOpcode(), TruncX, NarrowC);
  615       return BinaryOperator::Create(BinOp->getOpcode(), X, NarrowOp1);
  620       return BinaryOperator::Create(BinOp->getOpcode(), NarrowOp0, X);
  833         return BinaryOperator::Create(
 1191       BinaryOperator *Or = BinaryOperator::Create(Instruction::Or, LCast, RCast);
 1568           Instruction *RI = BinaryOperator::Create(BO->getOpcode(), LHS, RHS);
 2076     return BinaryOperator::Create(BO->getOpcode(), X, CastedOp1);
 2083     return BinaryOperator::Create(BO->getOpcode(), CastedOp0, X);
 2095     return BinaryOperator::Create(BO->getOpcode(), CastedOp0, CastedC);
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1920     return BinaryOperator::Create(BOpc, CmpP, CmpQ);
 1933     return BinaryOperator::Create(BOpc, Cmp12, Cmp34);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  706         return BinaryOperator::Create(I.getOpcode(), X,
  716         auto *NewDiv = BinaryOperator::Create(I.getOpcode(), X,
  724         auto *Mul = BinaryOperator::Create(Instruction::Mul, X,
  742         auto *BO = BinaryOperator::Create(I.getOpcode(), X,
  750         auto *Mul = BinaryOperator::Create(Instruction::Mul, X,
  789       return BinaryOperator::Create(I.getOpcode(), X, Op1);
lib/Transforms/InstCombine/InstCombinePHI.cpp
  365     BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal);
  814     BinOp = BinaryOperator::Create(BinOp->getOpcode(), PhiVal, ConstantOp);
lib/Transforms/InstCombine/InstCombineSelect.cpp
  399     BinaryOperator *NewBO = BinaryOperator::Create(BO->getOpcode(), Op0, Op1);
  449             BinaryOperator *BO = BinaryOperator::Create(TVI->getOpcode(),
  480             BinaryOperator *BO = BinaryOperator::Create(FVI->getOpcode(),
lib/Transforms/InstCombine/InstCombineShifts.cpp
  116   BinaryOperator *NewShift = BinaryOperator::Create(ShiftOpcode, X, NewShAmt);
  276   auto *NewShift = BinaryOperator::Create(OuterShift->getOpcode(), X,
  283   return BinaryOperator::Create(Instruction::And, NewShift, NewMask);
  294     return BinaryOperator::Create(I.getOpcode(), Op0, NewExt);
  322       return BinaryOperator::Create(
  719           return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM);
  754           return BinaryOperator::Create(Op0BO->getOpcode(), XM, YS);
  774           return BinaryOperator::Create(Op0BO->getOpcode(), NewShift,
  901         auto *NewShr = BinaryOperator::Create(
 1156       BinaryOperator::Create(OldAShr.getOpcode(), X, NumLowBitsToSkip);
 1207         auto *NewShl = BinaryOperator::Create(Instruction::Shl, X, ShiftDiff);
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 1238           BinaryOperator::Create(cast<BinaryOperator>(I)->getOpcode(),
 1510   Instruction *NewBO = BinaryOperator::Create(BOpcode, X, NewC);
 1664   Instruction *NewBO = ConstantsAreOp1 ? BinaryOperator::Create(BOpc, V, NewC) :
 1665                                          BinaryOperator::Create(BOpc, NewC, V);
lib/Transforms/InstCombine/InstructionCombining.cpp
  443            BinaryOperator::Create(Opcode, A, B);
 1477       Instruction *NewBO = BinaryOperator::Create(Opcode, V1, V2);
 2717         return BinaryOperator::Create(BinOp, LHS, RHS);
lib/Transforms/Scalar/ConstantHoisting.cpp
  751       Mat = BinaryOperator::Create(Instruction::Add, Base, Offset,
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  522   BinaryOperator *BinOp = BinaryOperator::Create(
lib/Transforms/Scalar/IndVarSimplify.cpp
 1131   auto *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS, RHS,
 1222   auto *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS, RHS,
 1504   auto *WideBO = BinaryOperator::Create(NarrowBO->getOpcode(), LHS, RHS,
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2170       BinaryOperator::Create(Incr->getOpcode() == Instruction::Add ?
lib/Transforms/Scalar/Reassociate.cpp
  760       NewOp = BinaryOperator::Create(Instruction::BinaryOps(Opcode),
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  674     NewBO = BinaryOperator::Create(BO->getOpcode(), NextInChain, TheOther,
  677     NewBO = BinaryOperator::Create(BO->getOpcode(), TheOther, NextInChain,
  727     NewBO = BinaryOperator::Create(NewOp, NextInChain, TheOther, "", IP);
  729     NewBO = BinaryOperator::Create(NewOp, TheOther, NextInChain, "", IP);
lib/Transforms/Utils/LoopVersioning.cpp
   78     RuntimeCheck = BinaryOperator::Create(Instruction::Or, MemRuntimeCheck,
lib/Transforms/Utils/SimplifyIndVar.cpp
  304     auto *UDiv = BinaryOperator::Create(
  322   auto *URem = BinaryOperator::Create(BinaryOperator::URem, N, D,
  450   BinaryOperator *NewResult = BinaryOperator::Create(
  487   BinaryOperator *BO = BinaryOperator::Create(
tools/llvm-stress/llvm-stress.cpp
  410     PT->push_back(BinaryOperator::Create(Op, Val0, Val1, "B", Term));
tools/polly/lib/Support/ScopHelper.cpp
  324     Inst = BinaryOperator::Create((Instruction::BinaryOps)Inst->getOpcode(),
unittests/Transforms/Utils/CloningTest.cpp
   70   BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V);
   71   BinaryOperator *Sub = BinaryOperator::Create(Instruction::Sub, V, V);
   72   BinaryOperator *Mul = BinaryOperator::Create(Instruction::Mul, V, V);
  154   BinaryOperator *SDiv = BinaryOperator::Create(Instruction::SDiv, V, V);