/external/llvm-project/mlir/unittests/IR/ |
D | OperationSupportTest.cpp | 41 EXPECT_EQ(user->getNumOperands(), 1u); in TEST() 45 EXPECT_EQ(user->getNumOperands(), 0u); in TEST() 65 EXPECT_EQ(user->getNumOperands(), 1u); in TEST() 69 EXPECT_EQ(user->getNumOperands(), 0u); in TEST() 73 EXPECT_EQ(user->getNumOperands(), 3u); in TEST() 93 EXPECT_EQ(user->getNumOperands(), 1u); in TEST() 97 EXPECT_EQ(user->getNumOperands(), 3u); in TEST() 101 EXPECT_EQ(user->getNumOperands(), 2u); in TEST() 105 EXPECT_EQ(user->getNumOperands(), 3u); in TEST() 109 EXPECT_EQ(user->getNumOperands(), 0u); in TEST() [all …]
|
/external/llvm-project/llvm/unittests/IR/ |
D | MDBuilderTest.cpp | 37 EXPECT_EQ(MD1->getNumOperands(), 1U); in TEST_F() 51 EXPECT_EQ(R1->getNumOperands(), 2U); in TEST_F() 64 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F() 65 EXPECT_GE(R1->getNumOperands(), 1U); in TEST_F() 68 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F() 69 EXPECT_TRUE(R1->getNumOperands() == 1 || R1->getOperand(1) == nullptr); in TEST_F() 76 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F() 79 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F() 91 EXPECT_GE(N0->getNumOperands(), 2U); in TEST_F() 92 EXPECT_GE(N1->getNumOperands(), 2U); in TEST_F() [all …]
|
/external/llvm/unittests/IR/ |
D | MDBuilderTest.cpp | 38 EXPECT_EQ(MD1->getNumOperands(), 1U); in TEST_F() 52 EXPECT_EQ(R1->getNumOperands(), 2U); in TEST_F() 65 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F() 66 EXPECT_GE(R1->getNumOperands(), 1U); in TEST_F() 69 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F() 70 EXPECT_TRUE(R1->getNumOperands() == 1 || R1->getOperand(1) == nullptr); in TEST_F() 77 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F() 80 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F() 92 EXPECT_GE(N0->getNumOperands(), 2U); in TEST_F() 93 EXPECT_GE(N1->getNumOperands(), 2U); in TEST_F() [all …]
|
/external/llvm/include/llvm/IR/ |
D | OperandTraits.h | 53 return U->getNumOperands(); in operands() 68 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin() 74 return U->getNumOperands(); in operands() 98 return U->getOperandList() + U->getNumOperands(); in op_end() 101 return U->getNumOperands(); in operands() 120 inline unsigned getNumOperands() const 147 unsigned CLASS::getNumOperands() const { \
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | OperandTraits.h | 53 return U->getNumOperands(); in operands() 68 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin() 74 return U->getNumOperands(); in operands() 98 return U->getOperandList() + U->getNumOperands(); in op_end() 101 return U->getNumOperands(); in operands() 120 inline unsigned getNumOperands() const 147 unsigned CLASS::getNumOperands() const { \
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | OperandTraits.h | 55 return U->getNumOperands(); in operands() 73 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin() 79 return U->getNumOperands(); in operands() 100 return U->getOperandList() + U->getNumOperands(); in op_end() 103 return U->getNumOperands(); in operands() 122 inline unsigned getNumOperands() const 149 unsigned CLASS::getNumOperands() const { \
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | OperandTraits.h | 55 return U->getNumOperands(); in operands() 73 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin() 79 return U->getNumOperands(); in operands() 100 return U->getOperandList() + U->getNumOperands(); in op_end() 103 return U->getNumOperands(); in operands() 122 inline unsigned getNumOperands() const 149 unsigned CLASS::getNumOperands() const { \
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 153 if (Node->getNumOperands() < 2) in getParent() 166 if (Node->getNumOperands() < 3) in TypeIsImmutable() 201 if (Node->getNumOperands() < 4) in TypeIsImmutable() 228 if (Node->getNumOperands() < 2) in getParent() 233 if (Node->getNumOperands() <= 3) { in getParent() 234 uint64_t Cur = Node->getNumOperands() == 2 in getParent() 248 for (unsigned Idx = 1; Idx < Node->getNumOperands(); Idx += 2) { in getParent() 260 TheIdx = Node->getNumOperands() - 2; in getParent() 278 return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3; in isStructPathTBAA() 374 if (getNumOperands() < 1) in isTBAAVtableAccess() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 137 if (N->getNumOperands() < 3) in isNewFormatTypeNode() 168 if (Node->getNumOperands() < 2) in getParent() 181 if (Node->getNumOperands() < 3) in isTypeImmutable() 214 if (Node->getNumOperands() < 4) in isNewFormat() 245 if (Node->getNumOperands() < OpNo + 1) in isTypeImmutable() 291 return (getNode()->getNumOperands() - FirstFieldOpNo) / NumOpsPerField; in getNumFields() 308 if (Node->getNumOperands() < 6) in getField() 312 if (Node->getNumOperands() < 2) in getField() 317 if (Node->getNumOperands() <= 3) { in getField() 318 uint64_t Cur = Node->getNumOperands() == 2 in getField() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 137 if (N->getNumOperands() < 3) in isNewFormatTypeNode() 168 if (Node->getNumOperands() < 2) in getParent() 181 if (Node->getNumOperands() < 3) in isTypeImmutable() 214 if (Node->getNumOperands() < 4) in isNewFormat() 245 if (Node->getNumOperands() < OpNo + 1) in isTypeImmutable() 291 return (getNode()->getNumOperands() - FirstFieldOpNo) / NumOpsPerField; in getNumFields() 308 if (Node->getNumOperands() < 6) in getField() 312 if (Node->getNumOperands() < 2) in getField() 317 if (Node->getNumOperands() <= 3) { in getField() 318 uint64_t Cur = Node->getNumOperands() == 2 in getField() [all …]
|
/external/llvm/lib/Target/WebAssembly/InstPrinter/ |
D | WebAssemblyInstPrinter.cpp | 56 for (auto i = Desc.getNumOperands(), e = MI->getNumOperands(); i < e; ++i) { in printInst() 96 for (unsigned i = 0, e = MI->getNumOperands(); i < e; ++i) { in printInst() 141 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand() 157 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand() 169 assert(OpNo < Desc.getNumOperands() && in printOperand() 183 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinterInlineAsm.cpp | 63 if (ErrorLine >= LocInfo->getNumOperands()) in srcMgrDiagHandler() 66 if (LocInfo->getNumOperands() != 0) in srcMgrDiagHandler() 164 unsigned NumOperands = MI->getNumOperands(); in EmitMSInlineAsmStr() 218 if (OpNo >= MI->getNumOperands()) break; in EmitMSInlineAsmStr() 226 if (OpNo >= MI->getNumOperands() || in EmitMSInlineAsmStr() 260 unsigned NumOperands = MI->getNumOperands(); in EmitGCCInlineAsmStr() 384 if (OpNo >= MI->getNumOperands()) break; in EmitGCCInlineAsmStr() 392 if (OpNo >= MI->getNumOperands() || in EmitGCCInlineAsmStr() 437 assert(NumDefs != MI->getNumOperands()-2 && "No asm string?"); in EmitInlineAsm() 460 for (unsigned i = MI->getNumOperands(); i != 0; --i) { in EmitInlineAsm() [all …]
|
/external/llvm-project/llvm/unittests/Transforms/Vectorize/ |
D | VPlanHCFGTest.cpp | 62 EXPECT_EQ(2u, Idx->getNumOperands()); in TEST_F() 67 EXPECT_EQ(1u, Load->getNumOperands()); in TEST_F() 72 EXPECT_EQ(2u, Add->getNumOperands()); in TEST_F() 77 EXPECT_EQ(2u, Store->getNumOperands()); in TEST_F() 83 EXPECT_EQ(2u, IndvarAdd->getNumOperands()); in TEST_F() 88 EXPECT_EQ(2u, ICmp->getNumOperands()); in TEST_F()
|
/external/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinterInlineAsm.cpp | 61 if (ErrorLine >= LocInfo->getNumOperands()) in srcMgrDiagHandler() 64 if (LocInfo->getNumOperands() != 0) in srcMgrDiagHandler() 180 unsigned NumOperands = MI->getNumOperands(); in EmitMSInlineAsmStr() 278 if (OpNo >= MI->getNumOperands()) break; in EmitMSInlineAsmStr() 286 if (OpNo >= MI->getNumOperands() || in EmitMSInlineAsmStr() 320 unsigned NumOperands = MI->getNumOperands(); in EmitGCCInlineAsmStr() 444 if (OpNo >= MI->getNumOperands()) break; in EmitGCCInlineAsmStr() 452 if (OpNo >= MI->getNumOperands() || in EmitGCCInlineAsmStr() 503 assert(NumDefs != MI->getNumOperands()-2 && "No asm string?"); in emitInlineAsm() 526 for (unsigned i = MI->getNumOperands(); i != 0; --i) { in emitInlineAsm() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinterInlineAsm.cpp | 60 if (ErrorLine >= LocInfo->getNumOperands()) in srcMgrDiagHandler() 63 if (LocInfo->getNumOperands() != 0) in srcMgrDiagHandler() 178 unsigned NumOperands = MI->getNumOperands(); in EmitMSInlineAsmStr() 276 if (OpNo >= MI->getNumOperands()) break; in EmitMSInlineAsmStr() 284 if (OpNo >= MI->getNumOperands() || in EmitMSInlineAsmStr() 318 unsigned NumOperands = MI->getNumOperands(); in EmitGCCInlineAsmStr() 442 if (OpNo >= MI->getNumOperands()) break; in EmitGCCInlineAsmStr() 450 if (OpNo >= MI->getNumOperands() || in EmitGCCInlineAsmStr() 501 assert(NumDefs != MI->getNumOperands()-2 && "No asm string?"); in EmitInlineAsm() 524 for (unsigned i = MI->getNumOperands(); i != 0; --i) { in EmitInlineAsm() [all …]
|
/external/llvm/lib/CodeGen/ |
D | MachineInstr.cpp | 591 if (TBAAInfo->getNumOperands() > 0) in print() 601 if (ScopeInfo->getNumOperands() > 0) in print() 602 for (unsigned i = 0, ie = ScopeInfo->getNumOperands(); i != ie; ++i) { in print() 615 if (NoAliasInfo->getNumOperands() > 0) in print() 616 for (unsigned i = 0, ie = NoAliasInfo->getNumOperands(); i != ie; ++i) { in print() 665 if (unsigned NumOps = MCID->getNumOperands() + in MachineInstr() 688 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr() 787 unsigned OpNo = getNumOperands(); in addOperand() 802 OpNo < MCID->getNumOperands() || isMetaDataOp) && in addOperand() 812 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand() [all …]
|
/external/llvm-project/llvm/lib/IR/ |
D | ProfileSummary.cpp | 108 if (MD->getNumOperands() != 2) in getValMD() 138 if (!MD || MD->getNumOperands() != 2) in isKeyValuePair() 151 if (!MD || MD->getNumOperands() != 2) in getSummaryFromMD() 161 if (!EntryMD || EntryMD->getNumOperands() != 3) in getSummaryFromMD() 189 return Idx < Tuple->getNumOperands(); in getOptionalVal() 197 if (!Tuple || Tuple->getNumOperands() < 8 || Tuple->getNumOperands() > 10) in getFromMD()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyInstPrinter.cpp | 57 if (Desc.getNumOperands() == 0 && MI->getNumOperands() > 0) in printInst() 59 for (auto I = Desc.getNumOperands(), E = MI->getNumOperands(); I < E; ++I) { in printInst() 65 I != Desc.getNumOperands())) in printInst() 155 for (unsigned I = 0, E = MI->getNumOperands(); I < E; ++I) { in printInst() 256 for (unsigned I = OpNo, E = MI->getNumOperands(); I != E; ++I) { in printBrList()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineInstr.cpp | 124 if (unsigned NumOps = MCID->getNumOperands() + in MachineInstr() 142 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr() 226 unsigned OpNo = getNumOperands(); in addOperand() 242 OpNo < MCID->getNumOperands() || isDebugOp) && in addOperand() 252 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand() 304 assert(OpNo < getNumOperands() && "Invalid operand number"); in RemoveOperand() 309 for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i) in RemoveOperand() 597 Other.getNumOperands() != getNumOperands()) in isIdenticalTo() 622 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in isIdenticalTo() 729 unsigned NumOperands = MCID->getNumOperands(); in getNumExplicitOperands() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineInstr.cpp | 122 if (unsigned NumOps = MCID->getNumOperands() + in MachineInstr() 138 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr() 218 unsigned OpNo = getNumOperands(); in addOperand() 234 OpNo < MCID->getNumOperands() || isDebugOp) && in addOperand() 244 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand() 296 assert(OpNo < getNumOperands() && "Invalid operand number"); in RemoveOperand() 301 for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i) in RemoveOperand() 589 Other.getNumOperands() != getNumOperands()) in isIdenticalTo() 614 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in isIdenticalTo() 700 unsigned NumOperands = MCID->getNumOperands(); in getNumExplicitOperands() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 107 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode() 108 ReservedSpace(PN.getNumOperands()) { in PHINode() 109 allocHungoffUses(PN.getNumOperands()); in PHINode() 130 setNumHungOffUseOperands(getNumOperands() - 1); in removeIncomingValue() 133 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValue() 146 unsigned e = getNumOperands(); in growOperands() 207 LP.getNumOperands()), in LandingPadInst() 208 ReservedSpace(LP.getNumOperands()) { in LandingPadInst() 209 allocHungoffUses(LP.getNumOperands()); in LandingPadInst() 241 unsigned e = getNumOperands(); in growOperands() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ |
D | quantization_context.cc | 50 for (int i = 0, e = op.getNumOperands(); i != e; ++i) { in QuantizeContext() 70 for (int i = 0; i < op.getNumOperands(); ++i) { in GetSignature() 127 for (int i = 0, e = op.getNumOperands(); i != e; ++i) { in Finalize() 165 for (auto i = 0; i < op.getNumOperands(); ++i) { in DumpStates() 197 for (int i = 0, e = op->getNumOperands(); i != e; ++i) { in GetQuantParamsForSameScaleConstraint() 210 if (op->getNumOperands() == 1 && immutable_operands_num == 1) { in GetQuantParamsForSameScaleConstraint() 239 if (op->getNumOperands() == 1 && mutable_operands_num == 1) { in GetQuantParamsForSameScaleConstraint() 260 for (int i = 0, e = op->getNumOperands(); i != e; ++i) { in PropagateQuantParams()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUHSAMetadataStreamer.cpp | 187 if (Node->getNumOperands() != 3) in getWorkGroupDimensions() 246 if (Op->getNumOperands()) in emitPrintf() 256 if (!Node || !Node->getNumOperands()) in emitKernelLanguage() 259 if (Op0->getNumOperands() <= 1) in emitKernelLanguage() 301 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg() 308 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg() 313 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg() 322 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg() 328 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg() 605 if (Node->getNumOperands() != 3) in getWorkGroupDimensions() [all …]
|
/external/llvm/lib/CodeGen/GlobalISel/ |
D | RegisterBankInfo.cpp | 205 MI.getNumOperands()); in getInstrMappingImpl() 223 for (unsigned OpIdx = 0, End = MI.getNumOperands(); OpIdx != End; ++OpIdx) { in getInstrMappingImpl() 288 for (unsigned OpIdx = 0, End = MI.getNumOperands(); OpIdx != End; ++OpIdx) { in getInstrMappingImpl() 338 for (unsigned OpIdx = 0, EndIdx = MI.getNumOperands(); OpIdx != EndIdx; in applyDefaultMapping() 467 assert(NumOperands == MI.getNumOperands() && in verify() 517 unsigned NumOpds = MI.getNumOperands(); in OperandsMapper() 526 assert(OpIdx < getMI().getNumOperands() && "Out-of-bound access"); in getVRegsMem() 562 assert(OpIdx < getMI().getNumOperands() && "Out-of-bound access"); in createVRegs() 580 assert(OpIdx < getMI().getNumOperands() && "Out-of-bound access"); in setVRegs() 595 assert(OpIdx < getMI().getNumOperands() && "Out-of-bound access"); in getVRegs() [all …]
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | Annotation2Metadata.cpp | 37 if (!C || C->getNumOperands() != 1) in convertAnnotation2Metadata() 48 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata() 51 if (!StrGEP || StrGEP->getNumOperands() < 2) in convertAnnotation2Metadata()
|