Home
last modified time | relevance | path

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

12345678910>>...25

/openbsd-src/gnu/llvm/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->getOperandList() + U->getNumOperands(); in op_end()
103 return U->getNumOperands(); in operands()
122 inline unsigned getNumOperands() const
149 unsigned CLASS::getNumOperands() const { \
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVInstPrinter.cpp39 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps()
53 if (MI->getNumOperands() - StartIndex == 2) { // Handle 64 bit literals. in printOpConstantVarOps()
85 const unsigned NumFixedOps = MCDesc.getNumOperands(); in printInst()
156 const unsigned NumOps = MI->getNumOperands(); in printInst()
189 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpExtInst()
190 const auto NumOps = MI->getNumOperands(); in printOpExtInst()
204 unsigned NumFixedOps = MCDesc.getNumOperands(); in printOpDecorate()
206 if (NumFixedOps != MI->getNumOperands()) { in printOpDecorate()
261 if (OpNo < MI->getNumOperands()) { in printOperand()
278 const unsigned NumOps = MI->getNumOperands(); in printStringImm()
[all …]
H A DSPIRVMCCodeEmitter.cpp66 if (MCDesc.getNumDefs() == 1 && MCDesc.getNumOperands() >= 2) { in hasType()
91 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands()
111 const uint32_t NumWords = MI.getNumOperands() + 1; in encodeInstruction()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DProfDataUtils.cpp52 unsigned NOps = ProfileData->getNumOperands(); in extractWeights()
76 unsigned NOps = ProfData->getNumOperands(); in isTargetMD()
117 if (ProfileData && ProfileData->getNumOperands() == 1 + I.getNumSuccessors()) in getValidBranchWeightMDNode()
165 for (unsigned Idx = 1; Idx < ProfileData->getNumOperands(); Idx++) { in extractProfTotalWeight()
174 ProfileData->getNumOperands() > 3) { in extractProfTotalWeight()
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 DInstructions.cpp114 : Instruction(PN.getType(), Instruction::PHI, nullptr, PN.getNumOperands()), in PHINode()
115 ReservedSpace(PN.getNumOperands()) { in PHINode()
116 allocHungoffUses(PN.getNumOperands()); in PHINode()
137 setNumHungOffUseOperands(getNumOperands() - 1); in removeIncomingValue()
140 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValue()
153 unsigned e = getNumOperands(); in growOperands()
214 LP.getNumOperands()), in LandingPadInst()
215 ReservedSpace(LP.getNumOperands()) { in LandingPadInst()
216 allocHungoffUses(LP.getNumOperands()); in LandingPadInst()
248 unsigned e = getNumOperands(); in growOperands()
[all …]
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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceDIMetadata.cpp51 for (size_t I = 0; I < DIM->getNumOperands(); ++I) in identifyUninterestingMDNodes()
53 if (!Visited.count(MDT) && MDT->getNumOperands()) in identifyUninterestingMDNodes()
69 for (size_t I = 0; I < Tup->getNumOperands(); ++I) { in identifyUninterestingMDNodes()
78 if (TN.size() != Tup->getNumOperands()) in identifyUninterestingMDNodes()
H A DReduceMetadata.cpp29 return MD.getName() == "llvm.dbg.cu" && MD.getNumOperands() != 0; in shouldKeepDebugNamedMetadata()
55 for (auto I : seq<unsigned>(0, NamedNode->getNumOperands())) { in reduceNamedMetadataOperands()
82 for (auto I : seq<unsigned>(0, NN->getNumOperands())) in extractMetadataFromModule()
/openbsd-src/gnu/llvm/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.cpp82 encodeULEB128(MI.getNumOperands() - 1, OS); in encodeInstruction()
85 encodeULEB128(MI.getNumOperands() - 2, OS); in encodeInstruction()
88 for (unsigned I = 0, E = MI.getNumOperands(); I < E; ++I) { in encodeInstruction()
94 if (I < Desc.getNumOperands()) { in encodeInstruction()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DMachineInstr.cpp102 if (unsigned NumOps = MCID->getNumOperands() + MCID->implicit_defs().size() + in MachineInstr()
120 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr()
129 for (unsigned i = 0, e = getNumOperands(); i < e; ++i) { in MachineInstr()
206 unsigned OpNo = getNumOperands(); in addOperand()
218 assert((MCID->isVariadic() || OpNo < MCID->getNumOperands() || in addOperand()
228 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand()
280 assert(OpNo < getNumOperands() && "Invalid operand number"); in removeOperand()
285 for (unsigned i = OpNo + 1, e = getNumOperands(); i != e; ++i) in removeOperand()
598 Other.getNumOperands() != getNumOperands()) in isIdenticalTo()
623 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in isIdenticalTo()
[all …]
H A DRegisterBankInfo.cpp166 unsigned NumOperandsForMapping = IsCopyLike ? 1 : MI.getNumOperands(); in getInstrMappingImpl()
180 for (unsigned OpIdx = 0, EndIdx = MI.getNumOperands(); OpIdx != EndIdx; in getInstrMappingImpl()
440 EndIdx = OpdMapper.getInstrMapping().getNumOperands(); in applyDefaultMapping()
600 assert(NumOperands == (isCopyLike(MI) ? 1 : MI.getNumOperands()) && in verify()
659 unsigned NumOpds = InstrMapping.getNumOperands(); in OperandsMapper()
666 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegsMem()
702 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in createVRegs()
724 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in setVRegs()
739 assert(OpIdx < getInstrMapping().getNumOperands() && "Out-of-bound access"); in getVRegs()
767 unsigned NumOpds = getInstrMapping().getNumOperands(); in print()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetStreamer.h30 assert(A.getNumOperands() == B.getNumOperands() && in operator()
31 A.getNumOperands() == 5 && A.getOperand(2).getImm() == 1 && in operator()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp181 if (Node->getNumOperands() != 3) in getWorkGroupDimensions()
239 if (Op->getNumOperands()) in emitPrintf()
249 if (!Node || !Node->getNumOperands()) in emitKernelLanguage()
252 if (Op0->getNumOperands() <= 1) in emitKernelLanguage()
295 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
302 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
307 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
316 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
322 if (Node && ArgNo < Node->getNumOperands()) in emitKernelArg()
609 if (Node->getNumOperands() != 3) in getWorkGroupDimensions()
[all …]
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()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DTypeBasedAliasAnalysis.cpp137 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()
371 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86RegisterBankInfo.cpp114 unsigned NumOperands = MI.getNumOperands(); in getInstrPartialMappingIdxs()
129 unsigned NumOperands = MI.getNumOperands(); in getInstrValueMapping()
151 unsigned NumOperands = MI.getNumOperands(); in getSameOperandsMapping()
189 unsigned NumOperands = MI.getNumOperands(); in getInstrMapping()
200 unsigned NumOperands = MI.getNumOperands(); in getInstrMapping()
295 unsigned NumOperands = MI.getNumOperands(); in getInstrAlternativeMappings()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp76 std::vector<GlobalVariable *> SplitGlobals(Init->getNumOperands()); in splitGlobal()
77 for (unsigned I = 0; I != Init->getNumOperands(); ++I) { in splitGlobal()
86 unsigned SplitEnd = (I == Init->getNumOperands() - 1) in splitGlobal()
127 for (unsigned I = 3; I != GEP->getNumOperands(); ++I) in splitGlobal()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFStreamer.cpp140 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelReloc()
175 const MCOperand &Operand = Inst.getOperand(Inst.getNumOperands() - 1); in emitGOTToPCRelLabel()
203 if (Inst.getNumOperands() < 2) in isPartOfGOTToPCRelPair()
206 unsigned LastOp = Inst.getNumOperands() - 1; in isPartOfGOTToPCRelPair()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCTargetDesc.cpp95 assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments"); in getARMStoreDeprecationInfo()
96 for (unsigned OI = 4, OE = MI.getNumOperands(); OI < OE; ++OI) { in getARMStoreDeprecationInfo()
111 assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments"); in getARMLoadDeprecationInfo()
113 for (unsigned OI = 4, OE = MI.getNumOperands(); OI < OE; ++OI) { in getARMLoadDeprecationInfo()
178 for (unsigned I = 0; I < MI.getNumOperands(); ++I) { in isCPSRDefined()
423 for (unsigned OpNum = 0; OpNum < Desc.getNumOperands(); ++OpNum) { in evaluateBranch()
445 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode_i12()
463 if (MemOpIndex + 2 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode3()
483 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode5()
502 if (MemOpIndex + 1 >= Desc.getNumOperands()) in evaluateMemOpAddrForAddrMode5FP16()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/MCA/
H A DInstrBuilder.cpp240 for (I = 0, E = MCI.getNumOperands(); NumExplicitDefs && I < E; ++I) { in verifyOperands()
253 const MCOperand &Op = MCI.getOperand(MCDesc.getNumOperands() - 1); in verifyOperands()
254 if (I == MCI.getNumOperands() || !Op.isReg()) { in verifyOperands()
321 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateWrites()
327 unsigned OptionalDefIdx = MCDesc.getNumOperands() - 1; in populateWrites()
329 for (; i < MCI.getNumOperands() && CurrentDef < NumExplicitDefs; ++i) { in populateWrites()
411 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateWrites()
437 unsigned NumExplicitUses = MCDesc.getNumOperands() - MCDesc.getNumDefs(); in populateReads()
442 unsigned NumVariadicOps = MCI.getNumOperands() - MCDesc.getNumOperands(); in populateReads()
477 for (unsigned I = 0, OpIndex = MCDesc.getNumOperands(); in populateReads()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DMemorySSA.h508 block_iterator block_end() { return block_begin() + getNumOperands(); }
511 return block_begin() + getNumOperands();
527 unsigned getNumIncomingValues() const { return getNumOperands(); }
562 if (getNumOperands() == ReservedSpace)
565 setNumHungOffUseOperands(getNumOperands() + 1);
566 setIncomingValue(getNumOperands() - 1, V);
567 setIncomingBlock(getNumOperands() - 1, BB);
573 for (unsigned I = 0, E = getNumOperands(); I != E; ++I)
587 unsigned E = getNumOperands();
597 setNumHungOffUseOperands(getNumOperands() - 1);
[all …]

12345678910>>...25