| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/ |
| H A D | SPIRVInstPrinter.cpp | 37 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps() 51 const unsigned NumVarOps = MI->getNumOperands() - StartIndex; in printOpConstantVarOps() 121 const unsigned NumFixedOps = MCDesc.getNumOperands(); in printInst() 195 const unsigned NumOps = MI->getNumOperands(); in printInst() 216 const unsigned NumOps = MI->getNumOperands(); in printInst() 244 const unsigned NumOps = MI->getNumOperands(); in printInst() 286 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpExtInst() 287 const auto NumOps = MI->getNumOperands(); in printOpExtInst() 301 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpDecorate() 303 if (NumFixedOps != MI->getNumOperands()) { in printOpDecorate() [all …]
|
| H A D | SPIRVMCCodeEmitter.cpp | 65 if (MCDesc.getNumDefs() == 1 && MCDesc.getNumOperands() >= 2) { in hasType() 93 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands() 113 const uint32_t NumWords = MI.getNumOperands(); in encodeUnknownType() 135 const uint32_t NumWords = MI.getNumOperands() + 1; in encodeInstruction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | OperandTraits.h | 55 return U->getNumOperands(); in operands() 72 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin() 78 return U->getNumOperands(); in operands() 98 return U->getHungOffOperands() + U->getNumOperands(); in op_end() 101 return U->getNumOperands(); in operands() 120 inline unsigned getNumOperands() const 147 unsigned CLASS::getNumOperands() const { \
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ProfDataUtils.cpp | 55 unsigned NOps = ProfData->getNumOperands(); in isTargetMD() 72 unsigned NOps = ProfileData->getNumOperands(); in extractFromBranchWeightMD() 152 return ProfileData.getNumOperands() - getBranchWeightOffset(&ProfileData); in getNumBranchWeights() 224 for (unsigned Idx = Offset; Idx < ProfileData->getNumOperands(); ++Idx) { in extractProfTotalWeight() 232 ProfileData->getNumOperands() > 3) { in extractProfTotalWeight() 254 if (MD.getNumOperands() != 1) in isExplicitlyUnknownBranchWeightsMetadata() 295 ProfileData->getNumOperands() > 0) { in scaleProfData() 306 for (unsigned Idx = 1; Idx < ProfileData->getNumOperands(); Idx += 2) { in scaleProfData()
|
| H A D | ProfileSummary.cpp | 107 if (MD->getNumOperands() != 2) in getValMD() 137 if (!MD || MD->getNumOperands() != 2) in isKeyValuePair() 150 if (!MD || MD->getNumOperands() != 2) in getSummaryFromMD() 160 if (!EntryMD || EntryMD->getNumOperands() != 3) in getSummaryFromMD() 188 return Idx < Tuple->getNumOperands(); in getOptionalVal() 196 if (!Tuple || Tuple->getNumOperands() < 8 || Tuple->getNumOperands() > 10) in getFromMD()
|
| H A D | Instructions.cpp | 128 ReservedSpace(PN.getNumOperands()) { in PHINode() 129 NumUserOperands = PN.getNumOperands(); in PHINode() 130 allocHungoffUses(PN.getNumOperands()); in PHINode() 151 setNumHungOffUseOperands(getNumOperands() - 1); in removeIncomingValue() 154 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValue() 185 setNumHungOffUseOperands(getNumOperands() - RemoveIndices.size()); in removeIncomingValueIf() 188 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValueIf() 200 unsigned e = getNumOperands(); in growOperands() 256 ReservedSpace(LP.getNumOperands()) { in LandingPadInst() 257 NumUserOperands = LP.getNumOperands(); in LandingPadInst() [all …]
|
| H A D | AbstractCallSite.cpp | 121 assert(CallbackEncMD->getNumOperands() >= 2 && "Incomplete !callback metadata"); in AbstractCallSite() 125 for (unsigned u = 0, e = CallbackEncMD->getNumOperands() - 1; u < e; u++) { in AbstractCallSite() 142 CallbackEncMD->getOperand(CallbackEncMD->getNumOperands() - 1).get(); in AbstractCallSite()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | User.h | 84 assert(OpIdxA < getNumOperands() && "OpIdxA out of bounds!"); in swapOperandsInternal() 85 assert(OpIdxB < getNumOperands() && "OpIdxB out of bounds!"); in swapOperandsInternal() 110 getOperandUseInternal(getNumOperands(), /*Verify=*/false)); in op_end() 129 virtual unsigned getNumOperands() const { in getNumOperands() function 130 return isa<llvm::User>(Val) ? cast<llvm::User>(Val)->getNumOperands() : 0; in getNumOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 81 assert(MIB->getNumOperands() >= 2); in getMIBStackNode() 87 assert(MIB->getNumOperands() >= 2); in getMIBAllocType() 163 CallStack.reserve(StackMD->getNumOperands()); in addCallStack() 171 if (MIB->getNumOperands() > 2) { in addCallStack() 172 for (unsigned I = 2; I < MIB->getNumOperands(); I++) { in addCallStack() 174 assert(ContextSizePair->getNumOperands() == 2); in addCallStack() 268 assert(MIBMD->getNumOperands() > 2); in saveFilteredNewMIBNodes() 269 for (unsigned I = 2; I < MIBMD->getNumOperands(); I++) { in saveFilteredNewMIBNodes() 271 assert(ContextSizePair->getNumOperands() == 2); in saveFilteredNewMIBNodes() 342 if (StackMD->getNumOperands() > CallerContextLength) { in saveFilteredNewMIBNodes() [all …]
|
| H A D | TypeBasedAliasAnalysis.cpp | 138 if (N->getNumOperands() < 3) in isNewFormatTypeNode() 169 if (Node->getNumOperands() < 2) in getParent() 182 if (Node->getNumOperands() < 3) in isTypeImmutable() 215 if (Node->getNumOperands() < 4) in isNewFormat() 246 if (Node->getNumOperands() < OpNo + 1) in isTypeImmutable() 292 return (getNode()->getNumOperands() - FirstFieldOpNo) / NumOpsPerField; in getNumFields() 372 return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3; in isStructPathTBAA() 456 if (getNumOperands() < 1) in isTBAAVtableAccess() 542 if (!AccessType || AccessType->getNumOperands() < 2) in createAccessTag() 766 for (size_t i = 0, size = MD->getNumOperands(); i < size; i += 3) { in shiftTBAAStruct() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVISelLowering.cpp | 34 if (Ty1->getNumOperands() != Ty2->getNumOperands()) in typesLogicallyMatch() 49 for (unsigned I = 1; I < Ty1->getNumOperands(); I++) { in typesLogicallyMatch() 102 if (I.getNumOperands() >= AlignIdx + 1) { in getTgtMemIntrinsic() 269 ElemType->getNumOperands() != 2) in validatePtrUnwrapStructField() 308 OpIdx < FunCall.getNumOperands(); in validateFunCallMachineDef() 436 if (MI.getNumOperands() == 4) in finalizeLowering() 443 if (MI.getNumOperands() > 3) in finalizeLowering() 503 for (unsigned i = MI.getNumOperands() - 1; i > 1; --i) in finalizeLowering() 532 validatePtrTypes(STI, MRI, GR, MI, MI.getNumOperands() - 1, in finalizeLowering() 544 assert(MI.getOperand(MI.getNumOperands() - 2).isReg() && in finalizeLowering() [all …]
|
| H A D | SPIRVMetadata.cpp | 26 if (Node && ArgIdx < Node->getNumOperands()) in getOCLKernelArgAttribute() 41 if (!OpenCLKernelsMD || OpenCLKernelsMD->getNumOperands() == 0) in getOCLKernelArgAttribute() 63 MDArgIdx < MaybeNode->getNumOperands()) in getOCLKernelArgAttribute()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
| H A D | WebAssemblyMCCodeEmitter.cpp | 86 encodeULEB128(MI.getNumOperands() - 1, OS); in encodeInstruction() 89 encodeULEB128(MI.getNumOperands() - 2, OS); in encodeInstruction() 92 for (unsigned I = 0, E = MI.getNumOperands(); I < E; ++I) { in encodeInstruction() 98 if (I < Desc.getNumOperands()) { in encodeInstruction() 155 if (I < Desc.getNumOperands()) { in encodeInstruction()
|
| H A D | WebAssemblyInstPrinter.cpp | 63 assert(MI->getNumOperands() == 2); in printInst() 84 if ((Desc.getNumOperands() == 0 && MI->getNumOperands() > 0) || in printInst() 87 unsigned Start = Desc.getNumOperands(); in printInst() 94 bool NeedsComma = Desc.getNumOperands() > 0 && !Desc.variadicOpsAreDefs(); in printInst() 95 for (auto I = Start, E = MI->getNumOperands(); I < E; ++I) { in printInst() 272 for (unsigned I = 0, E = MI->getNumOperands(); I < E; ++I) { in printInst() 356 for (unsigned I = OpNo, E = MI->getNumOperands(); I != E; ++I) { in printBrList()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86RegisterBankInfo.cpp | |
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | MatchContext.h | 49 unsigned getNumOperands(SDValue N) const { return N->getNumOperands(); } in getNumOperands() function 175 unsigned getNumOperands(SDValue N) const { in getNumOperands() function 176 return N->isVPOpcode() ? N->getNumOperands() - 2 : N->getNumOperands(); in getNumOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonPeephole.cpp | 121 assert(MI.getNumOperands() == 2); in runOnMachineFunction() 138 assert(MI.getNumOperands() == 3); in runOnMachineFunction() 155 assert(MI.getNumOperands() == 3); in runOnMachineFunction() 169 assert(MI.getNumOperands() == 2); in runOnMachineFunction() 186 assert(MI.getNumOperands() == 2); in runOnMachineFunction()
|
| H A D | HexagonVectorPrint.cpp | 101 if (MI.getNumOperands() < 1) return false; in getInstrVecReg() 109 if (MI.mayStore() && MI.getNumOperands() >= 3 && MI.getOperand(2).isReg()) { in getInstrVecReg() 115 if (MI.mayStore() && MI.getNumOperands() >= 4 && MI.getOperand(3).isReg()) { in getInstrVecReg() 134 if (MII->getNumOperands() < 1) in runOnMachineFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUUnifyMetadata.cpp | 46 if (!NamedMD || NamedMD->getNumOperands() <= 1) in unifyVersionMD() 51 assert(VersionMD->getNumOperands() == 2); in unifyVersionMD() 79 if (!NamedMD || NamedMD->getNumOperands() == 1) in unifyExtensionMD()
|
| /freebsd/contrib/llvm-project/llvm/lib/MCA/ |
| H A D | InstrBuilder.cpp | 243 for (I = 0, E = MCI.getNumOperands(); NumExplicitDefs && I < E; ++I) { in verifyOperands() 256 const MCOperand &Op = MCI.getOperand(MCDesc.getNumOperands() - 1); in verifyOperands() 257 if (I == MCI.getNumOperands() || !Op.isReg()) { in verifyOperands() 324 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateWrites() 330 unsigned OptionalDefIdx = MCDesc.getNumOperands() - 1; in populateWrites() 332 for (; i < MCI.getNumOperands() && CurrentDef < NumExplicitDefs; ++i) { in populateWrites() 418 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateWrites() 446 unsigned NumExplicitUses = MCDesc.getNumOperands() - MCDesc.getNumDefs(); in populateReads() 451 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateReads() 490 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateReads() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineInstr.cpp | 107 if (unsigned NumOps = MCID->getNumOperands() + MCID->implicit_defs().size() + in MachineInstr() 126 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr() 135 for (unsigned i = 0, e = getNumOperands(); i < e; ++i) { in MachineInstr() 227 unsigned OpNo = getNumOperands(); in addOperand() 245 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand() 297 assert(OpNo < getNumOperands() && "Invalid operand number"); in removeOperand() 302 for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i) in removeOperand() 661 Other.getNumOperands() != getNumOperands()) in isIdenticalTo() 686 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in isIdenticalTo() 820 unsigned NumOperands = MCID->getNumOperands(); in getNumExplicitOperands() [all …]
|
| H A D | RegisterBankInfo.cpp | 168 unsigned NumOperandsForMapping = IsCopyLike ? 1 : MI.getNumOperands(); in getInstrMappingImpl() 182 for (unsigned OpIdx = 0, EndIdx = MI.getNumOperands(); OpIdx != EndIdx; in getInstrMappingImpl() 443 EndIdx = OpdMapper.getInstrMapping().getNumOperands(); in applyDefaultMapping() 608 assert(NumOperands == (isCopyLike(MI) ? 1 : MI.getNumOperands()) && in verify() 668 unsigned NumOpds = InstrMapping.getNumOperands(); in OperandsMapper() 675 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegsMem() 711 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in createVRegs() 733 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in setVRegs() 748 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegs() 776 unsigned NumOpds = getInstrMapping().getNumOperands(); in print()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCELFStreamer.cpp | 137 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelReloc() 170 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelLabel() 198 if (Inst.getNumOperands() < 2) in isPartOfGOTToPCRelPair() 201 unsigned LastOp = Inst.getNumOperands() - 1; in isPartOfGOTToPCRelPair()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | SMEPeepholeOpt.cpp | 259 if (MI.getNumOperands() != 5 && MI.getNumOperands() != 9) in visitRegSequence() 263 for (unsigned I = 1; I < MI.getNumOperands(); I += 2) { in visitRegSequence() 287 unsigned Opc = MI.getNumOperands() == 5 in visitRegSequence() 295 for (unsigned I = 1; I < MI.getNumOperands(); I += 2) in visitRegSequence()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | MemorySSA.h | 510 block_iterator block_end() { return block_begin() + getNumOperands(); } 513 return block_begin() + getNumOperands(); 529 unsigned getNumIncomingValues() const { return getNumOperands(); } 564 if (getNumOperands() == ReservedSpace) 567 setNumHungOffUseOperands(getNumOperands() + 1); 568 setIncomingValue(getNumOperands() - 1, V); 569 setIncomingBlock(getNumOperands() - 1, BB); 575 for (unsigned I = 0, E = getNumOperands(); I != E; ++I) 589 unsigned E = getNumOperands(); 599 setNumHungOffUseOperands(getNumOperands() - 1); [all …]
|