|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/ModuleMaker/ModuleMaker.cpp 54 Instruction *Add = BinaryOperator::Create(Instruction::Add, Two, Three,
include/llvm/CodeGen/BasicTTIImpl.h 1289 return ConcreteTTI->getArithmeticReductionCost(Instruction::Add, Tys[0],
1388 ? BinaryOperator::Add
1414 ? BinaryOperator::Add
include/llvm/IR/IRBuilder.h 1138 return CreateInsertNUWNSWBinOp(Instruction::Add, LHS, RHS, Name,
include/llvm/IR/InstrTypes.h 360 DEFINE_HELPERS(Add, NSW) // CreateNSWAdd
361 DEFINE_HELPERS(Add, NUW) // CreateNUWAdd
include/llvm/IR/Instruction.h 488 Opcode == Add || Opcode == Mul;
501 case Add: case FAdd:
include/llvm/IR/Operator.h 100 return I->getOpcode() == Instruction::Add ||
106 return CE->getOpcode() == Instruction::Add ||
422 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
include/llvm/IR/PatternMatch.h 759 inline BinaryOp_match<LHS, RHS, Instruction::Add> m_Add(const LHS &L,
761 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R);
935 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Add,
938 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Add,
968 inline OverflowingBinaryOp_match<LHS, RHS, Instruction::Add,
971 return OverflowingBinaryOp_match<LHS, RHS, Instruction::Add,
1814 inline BinaryOp_match<LHS, RHS, Instruction::Add, true> m_c_Add(const LHS &L,
1816 return BinaryOp_match<LHS, RHS, Instruction::Add, true>(L, R);
lib/Analysis/BasicAliasAnalysis.cpp 325 case Instruction::Add:
lib/Analysis/CFLGraph.h 561 case Instruction::Add:
lib/Analysis/DemandedBits.cpp 174 case Instruction::Add:
lib/Analysis/IVDescriptors.cpp 569 case Instruction::Add:
754 return Instruction::Add;
lib/Analysis/InstructionSimplify.cpp 578 if (Constant *C = foldOrCommuteConstant(Instruction::Add, Op0, Op1, Q))
624 if (Value *V = SimplifyAssociativeBinOp(Instruction::Add, Op0, Op1, Q,
739 if (Value *W = SimplifyBinOp(Instruction::Add, X, V, Q, MaxRecurse-1)) {
747 if (Value *W = SimplifyBinOp(Instruction::Add, Y, V, Q, MaxRecurse-1)) {
783 if (Value *W = SimplifyBinOp(Instruction::Add, V, Y, Q, MaxRecurse-1)) {
864 if (Value *V = ExpandBinOp(Instruction::Mul, Op0, Op1, Instruction::Add,
2676 if (LBO && LBO->getOpcode() == Instruction::Add) {
2686 if (RBO && RBO->getOpcode() == Instruction::Add) {
4772 case Instruction::Add:
5254 case Instruction::Add:
lib/Analysis/LoopInfo.cpp 161 if (Inc->getOpcode() == Instruction::Add && Inc->getOperand(0) == PN)
354 if (IndDesc.getInductionOpcode() != Instruction::Add &&
410 if (IndDesc.getInductionOpcode() != Instruction::Add)
lib/Analysis/ObjCARCInstKind.cpp 252 case Instruction::Add:
lib/Analysis/PHITransAddr.cpp 34 if (Inst->getOpcode() == Instruction::Add &&
253 if (Inst->getOpcode() == Instruction::Add &&
265 if (BOp->getOpcode() == Instruction::Add)
293 if (BO->getOpcode() == Instruction::Add &&
lib/Analysis/ScalarEvolution.cpp 2371 return Instruction::Add;
4447 Instruction::Add, IncRange, OBO::NoSignedWrap);
4457 Instruction::Add, IncRange, OBO::NoUnsignedWrap);
4508 case Instruction::Add:
4524 return BinaryOp(Instruction::Add, Op->getOperand(0), Op->getOperand(1));
4970 if (BO->Opcode != Instruction::Add)
5080 if (BO->Opcode == Instruction::Add && BO->LHS == PN) {
6157 case Instruction::Add: {
6197 if (!NewBO || (NewBO->Opcode != Instruction::Add &&
lib/Analysis/ScalarEvolutionExpander.cpp 751 Sum = InsertBinop(Instruction::Add, Sum, W, S->getNoWrapFlags(),
944 case Instruction::Add:
lib/Analysis/TargetTransformInfo.cpp 1154 case Instruction::Add:
lib/Analysis/ValueTracking.cpp 1227 case Instruction::Add: {
1363 if (Opcode == Instruction::Add ||
1399 if (Opcode == Instruction::Add) {
2251 if (!BO || BO->getOpcode() != Instruction::Add)
2507 case Instruction::Add:
3820 if (U->getOpcode() != Instruction::Add ||
4323 case Instruction::Add:
5423 case Instruction::Add:
lib/AsmParser/LLLexer.cpp 841 INSTKEYWORD(add, Add); INSTKEYWORD(fadd, FAdd);
lib/AsmParser/LLParser.cpp 3461 if (Opc == Instruction::Add || Opc == Instruction::Sub ||
3485 case Instruction::Add:
lib/Bitcode/Reader/BitcodeReader.cpp 1081 return IsFP ? Instruction::FAdd : Instruction::Add;
2542 if (Opc == Instruction::Add ||
3900 if (Opc == Instruction::Add ||
lib/Bitcode/Writer/BitcodeWriter.cpp 530 case Instruction::Add:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 2291 case Instruction::Add:
2303 case Instruction::Add: return MCBinaryExpr::createAdd(LHS, RHS, Ctx);
lib/CodeGen/CodeGenPrepare.cpp 1199 if (BO->getOpcode() == Instruction::Add &&
3551 case Instruction::Add:
4078 case Instruction::Add: {
lib/CodeGen/ExpandReductions.cpp 37 return Instruction::Add;
lib/CodeGen/InterleavedLoadCombinePass.cpp 915 case Instruction::Add:
lib/CodeGen/SelectionDAG/FastISel.cpp 1793 case Instruction::Add:
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 2985 case Instruction::Add:
lib/CodeGen/TargetLoweringBase.cpp 1592 case Add: return ISD::ADD;
lib/ExecutionEngine/ExecutionEngine.cpp 778 case Instruction::Add:
799 case Instruction::Add: GV.IntVal = LHS.IntVal + RHS.IntVal; break;
lib/ExecutionEngine/Interpreter/Execution.cpp 786 case Instruction::Add: INTEGER_VECTOR_OPERATION(+) break;
823 case Instruction::Add: R.IntVal = Src1.IntVal + Src2.IntVal; break;
2073 case Instruction::Add: Dest.IntVal = Op0.IntVal + Op1.IntVal; break;
lib/FuzzMutate/Operations.cpp 19 Ops.push_back(binOpDescriptor(1, Instruction::Add));
97 case Instruction::Add:
lib/IR/ConstantFold.cpp 1002 case Instruction::Add:
1102 case Instruction::Add:
1226 case Instruction::Add:
1348 case Instruction::Add:
2277 Combined = ConstantExpr::get(Instruction::Add, C1, C2);
2280 ConstantExpr::get(Instruction::Add, Idx0, Combined);
lib/IR/ConstantRange.cpp 243 case Instruction::Add: {
781 case Instruction::Add:
825 case Instruction::Add:
lib/IR/Constants.cpp 1878 case Instruction::Add:
2254 return get(Instruction::Add, C1, C2, Flags);
2345 case Instruction::Add: // X + 0 = X
lib/IR/Globals.cpp 443 case Instruction::Add: {
lib/IR/Instruction.cpp 122 case Instruction::Add:
312 case Add: return "add";
lib/IR/Instructions.cpp 2277 case Add: case Sub:
lib/IR/IntrinsicInst.cpp 232 return Instruction::Add;
lib/IR/Verifier.cpp 3165 case Instruction::Add:
lib/Target/AArch64/AArch64FastISel.cpp 680 case Instruction::Add: {
1934 case Instruction::Add:
5153 case Instruction::Add:
lib/Target/AArch64/AArch64ISelLowering.cpp 8702 case Instruction::Add: {
lib/Target/AArch64/AArch64TargetTransformInfo.cpp 105 case Instruction::Add:
221 case Instruction::Add: // UADDL(2), SADDL(2), UADDW(2), SADDW(2).
508 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Opd1Info, Opd2Info,
534 int AddCost = getArithmeticInstrCost(Instruction::Add, Ty, Opd1Info,
907 case Instruction::Add:
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp 253 return B.CreateBinOp(Instruction::Add, LHS, RHS);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp 249 case Instruction::Add:
263 case Instruction::Add:
lib/Target/ARM/ARMCodeGenPrepare.cpp 342 if (Opc != Instruction::Add && Opc != Instruction::Sub)
353 ((Opc == Instruction::Add) && NegImm);
435 case Instruction::Add:
479 if (I->getOpcode() != Instruction::Add)
866 if (I->getOpcode() != Instruction::Add && I->getOpcode() != Instruction::Sub)
lib/Target/ARM/ARMFastISel.cpp 2844 case Instruction::Add:
lib/Target/ARM/ARMISelLowering.cpp14759 case Instruction::Add: {
14776 case Instruction::Add:
lib/Target/ARM/ARMParallelDSP.cpp 456 case Instruction::Add: {
522 if (I.getOpcode() != Instruction::Add)
lib/Target/ARM/ARMTargetTransformInfo.cpp 126 if (Opcode == Instruction::Add)
1092 case Instruction::Add:
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 638 if (BO->getOpcode() != Instruction::Add)
994 case Instruction::Add:
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 2090 case Instruction::Add: {
2095 case Instruction::Add: return MCBinaryExpr::createAdd(LHS, RHS, Ctx);
lib/Target/PowerPC/PPCFastISel.cpp 1960 case Instruction::Add:
lib/Target/PowerPC/PPCTargetTransformInfo.cpp 148 case Instruction::Add:
lib/Target/RISCV/RISCVTargetTransformInfo.cpp 52 case Instruction::Add:
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 108 case Instruction::Add:
943 case Instruction::Add: // SE: 16->32, 16/32->64, z14:16->64. ZE: 32->64
lib/Target/WebAssembly/WebAssemblyFastISel.cpp 332 case Instruction::Add: {
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 891 Instruction::Add, IRB.getInt32(4), IRB.getInt32(0), "setjmpTableSize",
lib/Target/X86/X86FastISel.cpp 885 case Instruction::Add: {
lib/Target/X86/X86TargetTransformInfo.cpp 264 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Op1Info, Op2Info,
3005 case Instruction::Add:
lib/Target/XCore/XCoreLowerThreadLocal.cpp 88 case Instruction::Add:
lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp 50 case Instruction::Add:
112 case Instruction::Add:
343 case Instruction::Add:
lib/Transforms/InstCombine/InstCombineAddSub.cpp 1079 assert(I.getOpcode() == Instruction::Add && "Expecting add instruction");
1103 assert((I.getOpcode() == Instruction::Add ||
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 125 case Instruction::Add:
1822 case Instruction::Add:
lib/Transforms/InstCombine/InstCombineCasts.cpp 62 if (I->getOpcode() == Instruction::Add) {
176 case Instruction::Add:
351 case Instruction::Add:
595 case Instruction::Add:
1000 case Instruction::Add:
1329 case Instruction::Add:
lib/Transforms/InstCombine/InstCombineCompares.cpp 2867 case Instruction::Add:
2929 case Instruction::Add: {
3705 if (BO0 && BO0->getOpcode() == Instruction::Add) {
3709 if (BO1 && BO1->getOpcode() == Instruction::Add) {
3931 case Instruction::Add:
4438 case Instruction::Add:
4452 case Instruction::Add:
5544 if (OptimizeOverflowCheck(Instruction::Add, /*Signed*/false, A, B,
lib/Transforms/InstCombine/InstCombineInternal.h 203 if (BO->getOpcode() == Instruction::Add ||
589 case Instruction::Add: return willNotOverflowAdd(LHS, RHS, CxtI, IsSigned);
lib/Transforms/InstCombine/InstCombineSelect.cpp 245 case Instruction::Add:
266 case Instruction::Add:
1677 FI->getOpcode() == Instruction::Add) ||
1683 TI->getOpcode() == Instruction::Add) ||
1993 return BinaryOperator::CreateNUW(BinaryOperator::Add, NewMinMax,
2006 return BinaryOperator::CreateNSW(BinaryOperator::Add, NewMinMax,
2064 if (AddSub->getOpcode() == Instruction::Add)
lib/Transforms/InstCombine/InstCombineShifts.cpp 593 case Instruction::Add:
685 case Instruction::Add:
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp 425 case Instruction::Add:
454 if ((I->getOpcode() == Instruction::Add ||
461 Known = KnownBits::computeForAddSub(I->getOpcode() == Instruction::Add,
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 1153 case Instruction::Add:
1217 case Instruction::Add:
1315 case Instruction::Add:
1460 return { Instruction::Add, BO0, BO1 };
lib/Transforms/InstCombine/InstructionCombining.cpp 210 if (Opcode != Instruction::Add && Opcode != Instruction::Sub)
218 if (Opcode == Instruction::Add)
441 BinaryOperator *NewBO = (IsNUW && Opcode == Instruction::Add) ?
487 return ROp == Instruction::Add || ROp == Instruction::Sub;
527 if (TopOpcode == Instruction::Add || TopOpcode == Instruction::Sub) {
617 if (TopLevelOpcode == Instruction::Add &&
lib/Transforms/Instrumentation/PoisonChecking.cpp 115 case Instruction::Add: {
lib/Transforms/Scalar/ConstantHoisting.cpp 418 int Cost = TTI->getIntImmCost(Instruction::Add, 1, Offset, PtrIntTy);
751 Mat = BinaryOperator::Create(Instruction::Add, Base, Offset,
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 448 case Instruction::Add:
876 case Instruction::Add:
lib/Transforms/Scalar/Float2Int.cpp 113 case Instruction::FAdd: return Instruction::Add;
lib/Transforms/Scalar/GVN.cpp 497 case Instruction::Add:
lib/Transforms/Scalar/GVNSink.cpp 445 case Instruction::Add:
lib/Transforms/Scalar/IndVarSimplify.cpp 920 TTI->getArithmeticInstrCost(Instruction::Add, Ty) >
921 TTI->getArithmeticInstrCost(Instruction::Add,
1093 case Instruction::Add:
1185 case Instruction::Add:
1239 if (OpCode == Instruction::Add)
1258 if (OpCode != Instruction::Add && OpCode != Instruction::Sub &&
1422 if (OpCode != Instruction::Add && OpCode != Instruction::Sub &&
2026 case Instruction::Add:
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 1327 (SubOneOp->getOpcode() == Instruction::Add &&
1345 if (Inst->getOpcode() != Instruction::Add)
1470 if (Inst->getOpcode() != Instruction::Add)
lib/Transforms/Scalar/LoopRerollPass.cpp 541 if (BO->getOpcode() == Instruction::Add) {
746 case Instruction::Add:
765 if ((BO && BO->getOpcode() != Instruction::Add) ||
791 if (BO->getOpcode() == Instruction::Add ||
lib/Transforms/Scalar/LoopStrengthReduce.cpp 2145 if (Incr->getOpcode() != Instruction::Add
2170 BinaryOperator::Create(Incr->getOpcode() == Instruction::Add ?
lib/Transforms/Scalar/NaryReassociate.cpp 218 case Instruction::Add:
287 case Instruction::Add:
483 case Instruction::Add:
499 case Instruction::Add:
513 case Instruction::Add:
lib/Transforms/Scalar/NewGVN.cpp 2000 case Instruction::Add:
lib/Transforms/Scalar/Reassociate.cpp 334 if (Opcode == Instruction::Add || Opcode == Instruction::FAdd) {
831 isReassociableOp(V, Instruction::Add, Instruction::FAdd)) {
835 if (I->getOpcode() == Instruction::Add) {
934 if (isReassociableOp(V0, Instruction::Add, Instruction::FAdd) ||
938 if (isReassociableOp(V1, Instruction::Add, Instruction::FAdd) ||
943 (isReassociableOp(VB, Instruction::Add, Instruction::FAdd) ||
1874 case Instruction::Add:
2082 isReassociableOp(I->user_back(), Instruction::Add)))) {
2186 if (BO->hasOneUse() && BO->getOpcode() == Instruction::Add &&
2243 cast<Instruction>(I->user_back())->getOpcode() == Instruction::Add &&
lib/Transforms/Scalar/SCCP.cpp 1513 case Instruction::Add:
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp 490 if (BO->getOpcode() != Instruction::Add &&
516 if (BO->getOpcode() == Instruction::Add && !ZeroExtended && NonNegative) {
537 if (BO->getOpcode() == Instruction::Add ||
722 NewOp = Instruction::Add;
1272 if ((opc == Instruction::Add || opc == Instruction::Sub) &&
lib/Transforms/Scalar/SpeculativeExecution.cpp 215 case Instruction::Add:
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 374 case Instruction::Add:
lib/Transforms/Utils/Evaluator.cpp 106 case Instruction::Add:
lib/Transforms/Utils/Local.cpp 1693 case Instruction::Add:
lib/Transforms/Utils/LoopRotationUtils.cpp 547 case Instruction::Add:
lib/Transforms/Utils/LoopUtils.cpp 873 case Instruction::Add:
955 return createSimpleTargetReduction(B, TTI, Instruction::Add, Src, Flags);
lib/Transforms/Utils/SimplifyIndVar.cpp 412 case Instruction::Add:
735 if (BO->getOpcode() != Instruction::Add &&
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 451 if (OpB->getOpcode() == Instruction::Add &&
lib/Transforms/Vectorize/LoopVectorize.cpp 1699 AddOp = Instruction::Add;
1963 AddOp = Instruction::Add;
4140 case Instruction::Add:
6186 case Instruction::Add:
6843 case Instruction::Add:
lib/Transforms/Vectorize/SLPVectorizer.cpp 2567 case Instruction::Add:
3081 case Instruction::Add:
3154 TTI->getArithmeticInstrCost(Instruction::Add, ScalarTy, Op1VK, Op2VK);
3160 TTI->getArithmeticInstrCost(Instruction::Add, VecTy, Op1VK, Op2VK);
3965 case Instruction::Add:
5013 case Instruction::Add:
5777 (Opcode == Instruction::Add || Opcode == Instruction::FAdd ||
tools/clang/lib/CodeGen/CGAtomic.cpp 574 PostOp = llvm::Instruction::Add;
1058 PostOp = llvm::Instruction::Add;
tools/clang/lib/CodeGen/CGBuiltin.cpp 2770 llvm::Instruction::Add);
tools/clang/lib/CodeGen/CGExprScalar.cpp 2386 llvm::Instruction::BinaryOps op = isInc ? llvm::Instruction::Add :
tools/lldb/source/Expression/IRInterpreter.cpp 518 case Instruction::Add:
697 case Instruction::Add:
747 case Instruction::Add:
tools/llvm-stress/llvm-stress.cpp 395 case 0:{Op = (isFloat?Instruction::FAdd : Instruction::Add); break; }
tools/polly/lib/Analysis/ScopBuilder.cpp 2660 case Instruction::Add:
tools/polly/lib/CodeGen/IslExprBuilder.cpp 104 case Instruction::Add:
118 case Instruction::Add:
153 return createBinOp(Instruction::Add, LHS, RHS, Name);
unittests/Analysis/ScalarEvolutionTest.cpp 1560 EXPECT_EQ(NextBinOp->getOpcode(), Instruction::Add);
unittests/IR/ConstantRangeTest.cpp 1385 Instruction::Add, C, OBO::NoUnsignedWrap);
1390 Instruction::Add, C, OBO::NoSignedWrap);
1438 Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
1450 Instruction::Add, ConstantRange(32, /* isFullSet = */ true),
1462 Instruction::Add, APInt(32, 0), OBO::NoUnsignedWrap).isFullSet());
1464 Instruction::Add, APInt(32, 0), OBO::NoSignedWrap).isFullSet());
1472 Instruction::Add, OneToFive, OBO::NoSignedWrap),
1476 Instruction::Add, OneToFive, OBO::NoUnsignedWrap),
1488 Instruction::Add, MinusFiveToMinusTwo, OBO::NoSignedWrap),
1492 Instruction::Add, MinusFiveToMinusTwo, OBO::NoUnsignedWrap),
1505 Instruction::Add, MinusOneToOne, OBO::NoSignedWrap),
1509 Instruction::Add, MinusOneToOne, OBO::NoUnsignedWrap),
1522 Instruction::Add, One, OBO::NoSignedWrap),
1526 Instruction::Add, One, OBO::NoUnsignedWrap),
1635 Instruction::Add, OverflowingBinaryOperator::NoUnsignedWrap,
1642 Instruction::Add, OverflowingBinaryOperator::NoSignedWrap,
unittests/Transforms/Utils/CloningTest.cpp 70 BinaryOperator *Add = BinaryOperator::Create(Instruction::Add, V, V);
unittests/Transforms/Vectorize/VPlanHCFGTest.cpp 69 EXPECT_EQ(Instruction::Add, Add->getOpcode());
80 EXPECT_EQ(Instruction::Add, IndvarAdd->getOpcode());
unittests/Transforms/Vectorize/VPlanSlpTest.cpp 114 EXPECT_EQ(Instruction::Add, CombinedAdd->getOpcode());
183 EXPECT_EQ(Instruction::Add, CombinedAdd->getOpcode());
248 EXPECT_EQ(Instruction::Add, CombinedAdd->getOpcode());
318 EXPECT_EQ(CombinedAdd->getOpcode(), Instruction::Add);