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

References

include/llvm/Analysis/CFGPrinter.h
  165     if (OpNo >= WeightsNode->getNumOperands())
include/llvm/IR/DebugInfoMetadata.h
   78   unsigned size() const { return N ? N->getNumOperands() : 0u; }
  269   unsigned getNumDwarfOperands() const { return getNumOperands() - 1; }
 1582     if (getNumOperands() == 2)
 1821     return getNumOperands() > 8 ? getOperandAs<Metadata>(8) : nullptr;
 1824     return getNumOperands() > 9 ? getOperandAs<Metadata>(9) : nullptr;
 1827     return getNumOperands() > 10 ? getOperandAs<Metadata>(10) : nullptr;
include/llvm/IR/Metadata.h
 1250   unsigned size() const { return N ? N->getNumOperands() : 0u; }
 1251   bool empty() const { return N ? N->getNumOperands() == 0 : true; }
lib/Analysis/BranchProbabilityInfo.cpp
  269   if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1)
  280   for (unsigned i = 1, e = WeightsNode->getNumOperands(); i != e; ++i) {
lib/Analysis/LoopInfo.cpp
  507   if (!LoopID || LoopID->getNumOperands() == 0 ||
  514   assert((!LoopID || LoopID->getNumOperands() > 0) &&
  567           if (AG->getNumOperands() == 0) {
  620     for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) {
  982   assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
  986   for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) {
  988     if (!MD || MD->getNumOperands() < 1)
 1007   return Node->getNumOperands() == 0 && Node->isDistinct();
 1024     for (unsigned i = 1, ie = OrigLoopID->getNumOperands(); i < ie; ++i) {
lib/Analysis/ScopedNoAliasAA.cpp
   69     if (Node->getNumOperands() < 2)
lib/Analysis/TypeBasedAliasAnalysis.cpp
  136   if (N->getNumOperands() < 3)
  167     if (Node->getNumOperands() < 2)
  180     if (Node->getNumOperands() < 3)
  213     if (Node->getNumOperands() < 4)
  244     if (Node->getNumOperands() < OpNo + 1)
  290     return (getNode()->getNumOperands() - FirstFieldOpNo) / NumOpsPerField;
  307       if (Node->getNumOperands() < 6)
  311       if (Node->getNumOperands() < 2)
  316       if (Node->getNumOperands() <= 3) {
  317         uint64_t Cur = Node->getNumOperands() == 2
  334     for (unsigned Idx = FirstFieldOpNo; Idx < Node->getNumOperands();
  347       TheIdx = Node->getNumOperands() - NumOpsPerField;
  366   return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3;
  454     if (getNumOperands() < 1)
  545   if (!AccessType || AccessType->getNumOperands() < 2)
lib/Analysis/ValueTracking.cpp
  441   unsigned NumRanges = Ranges.getNumOperands() / 2;
 1980   const unsigned NumRanges = Ranges->getNumOperands() / 2;
lib/Analysis/VectorUtils.cpp
  513   if (AccGroups->getNumOperands() == 0) {
  571   if (MD1->getNumOperands() == 0) {
lib/Bitcode/Reader/MetadataLoader.cpp
  353   Ops.reserve(Tuple->getNumOperands());
  503           for (unsigned I = 0; I < GVs->getNumOperands(); I++)
lib/Bitcode/Writer/BitcodeWriter.cpp
 1433   for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2056       assert(N->getNumOperands() == 1 &&
 2078     assert(N->getNumOperands() == 1 &&
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
   60     if (ErrorLine >= LocInfo->getNumOperands())
   63     if (LocInfo->getNumOperands() != 0)
  501         LocMD->getNumOperands() != 0) {
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1091       OS.EmitIntValue(Strs->getNumOperands(), 2);
lib/CodeGen/MachineInstr.cpp
 1998         LocMD->getNumOperands() != 0) {
lib/CodeGen/MachinePipeliner.cpp
  279   assert(LoopID->getNumOperands() > 0 && "requires atleast one operand");
  282   for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) {
  294       assert(MD->getNumOperands() == 2 &&
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  277       if (cast<MDNode>(Operand)->getNumOperands() != 2)
lib/IR/AbstractCallSite.cpp
  102   assert(CallbackEncMD->getNumOperands() >= 2 && "Incomplete !callback metadata");
  106   for (unsigned u = 0, e = CallbackEncMD->getNumOperands() - 1; u < e; u++) {
  123       CallbackEncMD->getOperand(CallbackEncMD->getNumOperands() - 1).get();
lib/IR/AsmWriter.cpp
 1205   for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
 1556   for (unsigned mi = 0, me = Node->getNumOperands(); mi != me; ++mi) {
lib/IR/AutoUpgrade.cpp
 3745   if (isa<MDNode>(MD.getOperand(0)) && MD.getNumOperands() >= 3)
 3749   if (MD.getNumOperands() == 3) {
 3988     if (Op->getNumOperands() != 3)
 4080   if (T->getNumOperands() < 1)
 4104   if (T->getNumOperands() < 1)
 4114   Ops.reserve(T->getNumOperands());
 4116   for (unsigned I = 1, E = T->getNumOperands(); I != E; ++I)
 4131   Ops.reserve(T->getNumOperands());
lib/IR/ConstantRange.cpp
 1495   const unsigned NumRanges = Ranges.getNumOperands() / 2;
 1497   assert(Ranges.getNumOperands() % 2 == 0 && "Must be a sequence of pairs");
lib/IR/Core.cpp
 1127   return cast<MDNode>(MD->getMetadata())->getNumOperands();
 1185   const unsigned numOperands = N->getNumOperands();
lib/IR/DebugInfo.cpp
  273   if (Scope->getNumOperands() == 0)
  508     Ops.reserve(N->getNumOperands());
  656             for (unsigned N = 0; N < T->getNumOperands(); ++N)
lib/IR/DebugInfoMetadata.cpp
  433   assert((std::end(Ops) - std::begin(Ops)) == (int)CT->getNumOperands() &&
  435   for (unsigned I = 0, E = CT->getNumOperands(); I != E; ++I)
lib/IR/DiagnosticInfo.cpp
   58     if (SrcLoc->getNumOperands() != 0)
lib/IR/Function.cpp
 1574         for (unsigned i = 2; i < MD->getNumOperands(); i++)
lib/IR/Instruction.cpp
  693   if (!ProfileData || ProfileData->getNumOperands() != 3 ||
lib/IR/Instructions.cpp
  490       ProfileData->getNumOperands() > 0) {
  499     for (unsigned i = 1; i < ProfileData->getNumOperands(); i += 2) {
 3923   if (ProfileData->getNumOperands() != SI.getNumSuccessors() + 1) {
 4007     if (ProfileData->getNumOperands() == SI.getNumSuccessors() + 1)
lib/IR/IntrinsicInst.cpp
   49   assert(!cast<MDNode>(MD)->getNumOperands() && "Expected an empty MDNode");
lib/IR/LLVMContextImpl.h
  234     if (Ops.size() != RHS->getNumOperands() - Offset)
lib/IR/MDBuilder.cpp
  135   unsigned NumExistingOps = ExistingCallbacks->getNumOperands();
  288   if (Tag->getNumOperands() <= ImmutabilityFlagOp)
lib/IR/Metadata.cpp
   91   if (!N || N->getNumOperands() != 1)
  700   assert(Op < getNumOperands() && "Expected valid operand");
  736     for (unsigned O = 0, E = getNumOperands(); O != E; ++O)
  885       if (N->getNumOperands() == Ops.size() && N == N->getOperand(0)) {
  993   int AN = A->getNumOperands() / 2;
  994   int BN = B->getNumOperands() / 2;
 1318   if (!ProfileData || ProfileData->getNumOperands() != 3)
 1355     for (unsigned i = 1; i < ProfileData->getNumOperands(); i++) {
 1363              ProfileData->getNumOperands() > 3) {
lib/IR/Module.cpp
  296     if (Flag->getNumOperands() >= 3 &&
  355   assert(Node->getNumOperands() == 3 &&
lib/IR/ProfileSummary.cpp
   87   if (MD->getNumOperands() != 2)
  101   if (!MD || MD->getNumOperands() != 2)
  114   if (!MD || MD->getNumOperands() != 2)
  124     if (!EntryMD || EntryMD->getNumOperands() != 3)
  144   if (!Tuple || Tuple->getNumOperands() != 8)
lib/IR/Verifier.cpp
 1332     Assert(N->getNumOperands() == 1,
 1350     Assert(N->getNumOperands() == 1,
 1396   Assert(Op->getNumOperands() == 3,
 1431     Assert(Value && Value->getNumOperands() == 2,
 1492   Assert(Node && Node->getNumOperands() == 3, "expected a MDNode triple", MDO);
 1852       Assert(MD->getNumOperands() >= 2,
 2366         for (unsigned i = 1; i < MD->getNumOperands(); ++i)
 3325   unsigned NumOperands = Range->getNumOperands();
 4012   Assert(MD->getNumOperands() == 1, "dereferenceable, dereferenceable_or_null "
 4020   Assert(MD->getNumOperands() >= 2,
 4047     Assert(MD->getNumOperands() == 1 + ExpectedNumOperands,
 4049     for (unsigned i = 1; i < MD->getNumOperands(); ++i) {
 4162     Assert(MD->getNumOperands() == 1, "fpmath takes one operand!", &I);
 4204     Assert(AlignMD->getNumOperands() == 1, "align takes one operand!", &I);
 4919              (isa<MDNode>(MD) && !cast<MDNode>(MD)->getNumOperands()),
 5207   if (BaseNode->getNumOperands() < 2) {
 5228   if (BaseNode->getNumOperands() == 2) {
 5236     if (BaseNode->getNumOperands() % 3 != 0) {
 5242     if (BaseNode->getNumOperands() % 2 != 1) {
 5275   for (unsigned Idx = FirstFieldOpNo; Idx < BaseNode->getNumOperands();
 5335   return MD->getNumOperands() < 2;
 5340   if (MD->getNumOperands() != 2 && MD->getNumOperands() != 3)
 5340   if (MD->getNumOperands() != 2 && MD->getNumOperands() != 3)
 5346   if (MD->getNumOperands() == 3) {
 5379   assert(BaseNode->getNumOperands() >= 2 && "Invalid base node!");
 5384   if (BaseNode->getNumOperands() == 2)
 5389   for (unsigned Idx = FirstFieldOpNo; Idx < BaseNode->getNumOperands();
 5408   unsigned LastIdx = BaseNode->getNumOperands() - NumOpsPerField;
 5416   if (!Type || Type->getNumOperands() < 3)
 5435       isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3;
 5447     AssertTBAA(MD->getNumOperands() == 4 || MD->getNumOperands() == 5,
 5447     AssertTBAA(MD->getNumOperands() == 4 || MD->getNumOperands() == 5,
 5450     AssertTBAA(MD->getNumOperands() < 5,
 5463   if (MD->getNumOperands() == ImmutabilityFlagOpNo + 1) {
lib/LTO/LTOModule.cpp
  633       for (unsigned ii = 0, ie = MDOptions->getNumOperands(); ii != ie; ++ii) {
lib/Linker/IRMover.cpp
 1333       MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands());
 1333       MDs.reserve(DstValue->getNumOperands() + SrcValue->getNumOperands());
lib/ProfileData/InstrProf.cpp
  985   unsigned NOps = MD->getNumOperands();
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  202   if (Node->getNumOperands() != 3)
  261     if (Op->getNumOperands())
  273   if (Op0->getNumOperands() <= 1)
  315   if (Node && ArgNo < Node->getNumOperands())
  322   if (Node && ArgNo < Node->getNumOperands())
  327   if (Node && ArgNo < Node->getNumOperands())
  336     if (Node && ArgNo < Node->getNumOperands())
  342   if (Node && ArgNo < Node->getNumOperands())
  643   if (Node->getNumOperands() != 3)
  666     if (Op->getNumOperands())
  679   if (Op0->getNumOperands() <= 1)
  732   if (Node && ArgNo < Node->getNumOperands())
  739   if (Node && ArgNo < Node->getNumOperands())
  744   if (Node && ArgNo < Node->getNumOperands())
  753     if (Node && ArgNo < Node->getNumOperands())
  759   if (Node && ArgNo < Node->getNumOperands())
lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp
   76   const bool HasReqdWorkGroupSize = MD && MD->getNumOperands() == 3;
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  470           if (Node->getNumOperands() == 3)
lib/Target/AMDGPU/AMDGPUUnifyMetadata.cpp
   65         assert(VersionMD->getNumOperands() == 2);
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
   96   size_t NumOps = Node->getNumOperands();
  108     if (ArgNode->getNumOperands() != ExpectNumArgNodeOps)
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
   40     if (MDN && MDN->getNumOperands()) {
   57   for (unsigned I = 0, E = Tuple->getNumOperands() & -2; I != E; I += 2) {
lib/Target/NVPTX/NVPTXUtilities.cpp
   49   assert((md->getNumOperands() % 2) == 1 && "Invalid number of operands");
   52   for (unsigned i = 1, e = md->getNumOperands(); i != e; i += 2) {
  301     for (int i = 0, n = alignNode->getNumOperands(); i < n; i++) {
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  148       if (!Tuple || Tuple->getNumOperands() != 2)
  295     assert(Idx->getNumOperands() == 1);
lib/Target/X86/X86FrameLowering.cpp
 2540     if (Node->getNumOperands() != 2) continue;
lib/Transforms/IPO/CrossDSOCFI.cpp
   95       assert(Func->getNumOperands() >= 2);
   96       for (unsigned I = 2; I < Func->getNumOperands(); ++I)
lib/Transforms/IPO/LowerTypeTests.cpp
 1169   if (Type->getNumOperands() != 2)
 1853         assert(FuncMD->getNumOperands() >= 2);
 1933           for (unsigned I = 2; I < FuncMD->getNumOperands(); ++I)
 2137         assert(AliasMD->getNumOperands() >= 4);
 2179         assert(Symver->getNumOperands() >= 2);
lib/Transforms/InstCombine/InstCombineCalls.cpp
  173     if (M->getNumOperands() == 3 && M->getOperand(0) &&
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1114   assert(MDN->getNumOperands() == 3);
 1131     assert(MDN->getNumOperands() == 5);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  613       MD->getNumOperands() != 3)
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  526       bool ThreeElement = N->getNumOperands() == 3;
  527       if (!ThreeElement && N->getNumOperands() != 2)
lib/Transforms/Scalar/JumpThreading.cpp
 2158   return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1;
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  104     assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
  107     for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) {
  133     assert(MD->getNumOperands() == 2 &&
lib/Transforms/Scalar/LoopUnrollPass.cpp
  693     assert(MD->getNumOperands() == 2 &&
lib/Transforms/Utils/FunctionComparator.cpp
  158   if (int Res = cmpNumbers(L->getNumOperands(), R->getNumOperands()))
  158   if (int Res = cmpNumbers(L->getNumOperands(), R->getNumOperands()))
  160   for (size_t I = 0; I < L->getNumOperands(); ++I) {
lib/Transforms/Utils/InlineFunction.cpp
  838     for (unsigned i = 0, ie = M->getNumOperands(); i != ie; ++i)
  858     for (unsigned i = 0, ie = I->getNumOperands(); i != ie; ++i) {
 1363   assert(OrigLoopId && OrigLoopId->getNumOperands() > 0 &&
 1371   for (unsigned i = 1; i < OrigLoopId->getNumOperands(); ++i) {
lib/Transforms/Utils/Local.cpp
  187         if (NCases > 1 && MD && MD->getNumOperands() == 2 + NCases) {
  190           for (unsigned MD_i = 1, MD_e = MD->getNumOperands(); MD_i < MD_e;
  276       if (MD && MD->getNumOperands() == 3) {
lib/Transforms/Utils/LoopUnroll.cpp
  964   assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
  967   for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) {
lib/Transforms/Utils/LoopUtils.cpp
  217     for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) {
  220       if (Node->getNumOperands() == 2) {
  256   switch (MD->getNumOperands()) {
  271   switch (MD->getNumOperands()) {
  330         if (Op->getNumOperands() == 0)
  348     Changed = OrigLoopID->getNumOperands() > 1;
lib/Transforms/Utils/MisExpect.cpp
  149     unsigned NOps = MD->getNumOperands();
lib/Transforms/Utils/SimplifyCFG.cpp
  972   for (unsigned i = 1, e = MD->getNumOperands(); i < e; ++i) {
lib/Transforms/Utils/ValueMapper.cpp
  600   for (unsigned I = 0, E = N.getNumOperands(); I != E; ++I) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  187   assert(LoopID->getNumOperands() > 0 && "requires at least one operand");
  190   for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) {
  197       if (!MD || MD->getNumOperands() == 0)
  200       for (unsigned i = 1, ie = MD->getNumOperands(); i < ie; ++i)
lib/Transforms/Vectorize/LoopVectorize.cpp
 6588     for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) {
tools/clang/unittests/CodeGen/IRMatchers.h
  186           if (OpNo < MT->getNumOperands())
  339       if (MT->getNumOperands() != Operands.size())
  341       for (unsigned I = 0, E = MT->getNumOperands(); I != E; ++I) {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  133     if (metadata_node->getNumOperands() != 2)
 1079   if (!alloc_md || !alloc_md->getNumOperands())
tools/polly/lib/CodeGen/IRBuilder.cpp
  107   assert(Id->getNumOperands() == 1 && "Unexpected extra operands in Id");
  139     MDNode *Id = cast<MDNode>(Ids->getOperand(Ids->getNumOperands() - 1));
unittests/IR/MDBuilderTest.cpp
   37   EXPECT_EQ(MD1->getNumOperands(), 1U);
   51   EXPECT_EQ(R1->getNumOperands(), 2U);
   64   EXPECT_GE(R0->getNumOperands(), 1U);
   65   EXPECT_GE(R1->getNumOperands(), 1U);
   68   EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr);
   69   EXPECT_TRUE(R1->getNumOperands() == 1 || R1->getOperand(1) == nullptr);
   76   EXPECT_GE(R0->getNumOperands(), 1U);
   79   EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr);
   91   EXPECT_GE(N0->getNumOperands(), 2U);
   92   EXPECT_GE(N1->getNumOperands(), 2U);
   93   EXPECT_GE(N2->getNumOperands(), 3U);
unittests/IR/MetadataTest.cpp
  201   EXPECT_EQ(3u, n1->getNumOperands());
  206   EXPECT_EQ(1u, n2->getNumOperands());
 1099   EXPECT_EQ(2u, N->getNumOperands());