Home
last modified time | relevance | path

Searched refs:getNumOperands (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperandTraits.h55 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->getHungOffOperands() + U->getNumOperands(); in op_end()
103 return U->getNumOperands(); in operands()
122 inline unsigned getNumOperands() const
149 unsigned CLASS::getNumOperands() const { \
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVInstPrinter.cpp41 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps()
55 const unsigned NumVarOps = MI->getNumOperands() - StartIndex; in printOpConstantVarOps()
123 const unsigned NumFixedOps = MCDesc.getNumOperands(); in printInst()
194 const unsigned NumOps = MI->getNumOperands(); in printInst()
229 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpExtInst()
230 const auto NumOps = MI->getNumOperands(); in printOpExtInst()
244 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpDecorate()
246 if (NumFixedOps != MI->getNumOperands()) { in printOpDecorate()
277 if (NumFixedOps + 1 < MI->getNumOperands()) { in printOpDecorate()
308 if (OpNo < MI->getNumOperands()) { in printOperand()
[all …]
H A DSPIRVMCCodeEmitter.cpp66 if (MCDesc.getNumDefs() == 1 && MCDesc.getNumOperands() >= 2) { in hasType()
94 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands()
114 const uint32_t NumWords = MI.getNumOperands() + 1; in encodeInstruction()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp124 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode()
125 ReservedSpace(PN.getNumOperands()) { in PHINode()
126 allocHungoffUses(PN.getNumOperands()); in PHINode()
147 setNumHungOffUseOperands(getNumOperands() - 1); in removeIncomingValue()
150 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValue()
181 setNumHungOffUseOperands(getNumOperands() - RemoveIndices.size()); in removeIncomingValueIf()
184 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValueIf()
196 unsigned e = getNumOperands(); in growOperands()
252 LP.getNumOperands()), in LandingPadInst()
253 ReservedSpace(LP.getNumOperands()) { in LandingPadInst()
[all …]
H A DProfDataUtils.cpp58 unsigned NOps = ProfData->getNumOperands(); in isTargetMD()
75 unsigned NOps = ProfileData->getNumOperands(); in extractFromBranchWeightMD()
146 return ProfileData.getNumOperands() - getBranchWeightOffset(&ProfileData); in getNumBranchWeights()
218 for (unsigned Idx = Offset; Idx < ProfileData->getNumOperands(); ++Idx) { in extractProfTotalWeight()
226 if (ProfDataName->getString() == "VP" && ProfileData->getNumOperands() > 3) { in extractProfTotalWeight()
267 ProfileData->getNumOperands() > 0) { in scaleProfData()
278 for (unsigned i = 1; i < ProfileData->getNumOperands(); i += 2) { in scaleProfData()
H A DProfileSummary.cpp107 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 DAbstractCallSite.cpp121 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/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyInstPrinter.cpp64 assert(MI->getNumOperands() == 2); in printInst()
85 if ((Desc.getNumOperands() == 0 && MI->getNumOperands() > 0) || in printInst()
88 unsigned Start = Desc.getNumOperands(); in printInst()
95 bool NeedsComma = Desc.getNumOperands() > 0 && !Desc.variadicOpsAreDefs(); in printInst()
96 for (auto I = Start, E = MI->getNumOperands(); I < E; ++I) { in printInst()
239 for (unsigned I = 0, E = MI->getNumOperands(); I < E; ++I) { in printInst()
333 for (unsigned I = OpNo, E = MI->getNumOperands(); I != E; ++I) { in printBrList()
H A DWebAssemblyMCCodeEmitter.cpp87 encodeULEB128(MI.getNumOperands() - 1, OS); in encodeInstruction()
90 encodeULEB128(MI.getNumOperands() - 2, OS); in encodeInstruction()
93 for (unsigned I = 0, E = MI.getNumOperands(); I < E; ++I) { in encodeInstruction()
99 if (I < Desc.getNumOperands()) { in encodeInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp138 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()
763 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 DSPIRVMetadata.cpp26 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/SystemZ/
H A DSystemZTargetStreamer.h32 assert(A.getNumOperands() == B.getNumOperands() && in operator()
33 A.getNumOperands() == 5 && A.getOperand(2).getImm() == 1 && in operator()
/freebsd/contrib/llvm-project/llvm/lib/MCA/
H A DInstrBuilder.cpp243 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 DMachineInstr.cpp105 if (unsigned NumOps = MCID->getNumOperands() + MCID->implicit_defs().size() + in MachineInstr()
124 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr()
133 for (unsigned i = 0, e = getNumOperands(); i < e; ++i) { in MachineInstr()
225 unsigned OpNo = getNumOperands(); in addOperand()
243 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand()
295 assert(OpNo < getNumOperands() && "Invalid operand number"); in removeOperand()
300 for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i) in removeOperand()
654 Other.getNumOperands() != getNumOperands()) in isIdenticalTo()
679 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in isIdenticalTo()
791 unsigned NumOperands = MCID->getNumOperands(); in getNumExplicitOperands()
[all …]
H A DRegisterBankInfo.cpp171 unsigned NumOperandsForMapping = IsCopyLike ? 1 : MI.getNumOperands(); in getInstrMappingImpl()
185 for (unsigned OpIdx = 0, EndIdx = MI.getNumOperands(); OpIdx != EndIdx; in getInstrMappingImpl()
445 EndIdx = OpdMapper.getInstrMapping().getNumOperands(); in applyDefaultMapping()
610 assert(NumOperands == (isCopyLike(MI) ? 1 : MI.getNumOperands()) && in verify()
670 unsigned NumOpds = InstrMapping.getNumOperands(); in OperandsMapper()
677 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegsMem()
713 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in createVRegs()
735 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in setVRegs()
750 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegs()
778 unsigned NumOpds = getInstrMapping().getNumOperands(); in print()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86RegisterBankInfo.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonPeephole.cpp132 assert(MI.getNumOperands() == 2); in runOnMachineFunction()
149 assert(MI.getNumOperands() == 3); in runOnMachineFunction()
166 assert(MI.getNumOperands() == 3); in runOnMachineFunction()
180 assert(MI.getNumOperands() == 2); in runOnMachineFunction()
197 assert(MI.getNumOperands() == 2); in runOnMachineFunction()
H A DHexagonVectorPrint.cpp109 if (MI.getNumOperands() < 1) return false; in getInstrVecReg()
117 if (MI.mayStore() && MI.getNumOperands() >= 3 && MI.getOperand(2).isReg()) { in getInstrVecReg()
123 if (MI.mayStore() && MI.getNumOperands() >= 4 && MI.getOperand(3).isReg()) { in getInstrVecReg()
142 if (MII->getNumOperands() < 1) in runOnMachineFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCTargetDesc.cpp94 assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments"); in getARMStoreDeprecationInfo()
95 for (unsigned OI = 4, OE = MI.getNumOperands(); OI < OE; ++OI) { in getARMStoreDeprecationInfo()
110 assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments"); in getARMLoadDeprecationInfo()
112 for (unsigned OI = 4, OE = MI.getNumOperands(); OI < OE; ++OI) { in getARMLoadDeprecationInfo()
177 for (unsigned I = 0; I < MI.getNumOperands(); ++I) { in isCPSRDefined()
420 for (unsigned OpNum = 0; OpNum < Desc.getNumOperands(); ++OpNum) { in evaluateBranch()
442 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode_i12()
460 if (MemOpIndex + 2 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode3()
480 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode5()
499 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode5FP16()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFStreamer.cpp139 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelReloc()
174 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelLabel()
202 if (Inst.getNumOperands() < 2) in isPartOfGOTToPCRelPair()
205 unsigned LastOp = Inst.getNumOperands() - 1; in isPartOfGOTToPCRelPair()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUUnifyMetadata.cpp57 if (!NamedMD || NamedMD->getNumOperands() <= 1) in unifyVersionMD()
62 assert(VersionMD->getNumOperands() == 2); in unifyVersionMD()
90 if (!NamedMD || NamedMD->getNumOperands() == 1) in unifyExtensionMD()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemorySSA.h509 block_iterator block_end() { return block_begin() + getNumOperands(); }
512 return block_begin() + getNumOperands();
528 unsigned getNumIncomingValues() const { return getNumOperands(); }
563 if (getNumOperands() == ReservedSpace)
566 setNumHungOffUseOperands(getNumOperands() + 1);
567 setIncomingValue(getNumOperands() - 1, V);
568 setIncomingBlock(getNumOperands() - 1, BB);
574 for (unsigned I = 0, E = getNumOperands(); I != E; ++I)
588 unsigned E = getNumOperands();
598 setNumHungOffUseOperands(getNumOperands() - 1);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86RegisterBankInfo.cpp226 unsigned NumOperands = MI.getNumOperands(); in getInstrPartialMappingIdxs()
242 unsigned NumOperands = MI.getNumOperands(); in getInstrValueMapping()
264 unsigned NumOperands = MI.getNumOperands(); in getSameOperandsMapping()
304 unsigned NumOperands = MI.getNumOperands(); in getInstrMapping()
314 unsigned NumOperands = MI.getNumOperands(); in getInstrMapping()
437 unsigned NumOperands = MI.getNumOperands(); in getInstrAlternativeMappings()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp216 if (int Res = cmpNumbers(L->getNumOperands(), R->getNumOperands())) in cmpMDNode()
218 for (size_t I = 0; I < L->getNumOperands(); ++I) in cmpMDNode()
422 unsigned NumOperandsL = LE->getNumOperands(); in cmpConstants()
423 unsigned NumOperandsR = RE->getNumOperands(); in cmpConstants()
646 if (int Res = cmpNumbers(L->getNumOperands(), R->getNumOperands())) in cmpOperations()
658 for (unsigned i = 0, e = L->getNumOperands(); i != e; ++i) { in cmpOperations()
818 if (int Res = cmpNumbers(GEPL->getNumOperands(), GEPR->getNumOperands())) in cmpGEPs()
821 for (unsigned i = 0, e = GEPL->getNumOperands(); i != e; ++i) { in cmpGEPs()
923 assert(InstL->getNumOperands() == InstR->getNumOperands()); in cmpBasicBlocks()
925 for (unsigned i = 0, e = InstL->getNumOperands(); i != e; ++i) { in cmpBasicBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp35 if (!C || C->getNumOperands() != 1) in convertAnnotation2Metadata()
46 if (!OpC || OpC->getNumOperands() != 4) in convertAnnotation2Metadata()

12345678910>>...26