Home
last modified time | relevance | path

Searched refs:NumOps (Results 1 – 25 of 104) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DUser.h73 User(Type *ty, unsigned vty, Use *, unsigned NumOps) in User() argument
75 assert(NumOps < (1u << NumUserOperandsBits) && "Too many operands"); in User()
76 NumUserOperands = NumOps; in User()
207 void setGlobalVariableNumOperands(unsigned NumOps) { in setGlobalVariableNumOperands() argument
208 assert(NumOps <= 1 && "GlobalVariable can only have 0 or 1 operands"); in setGlobalVariableNumOperands()
209 NumUserOperands = NumOps; in setGlobalVariableNumOperands()
215 void setNumHungOffUseOperands(unsigned NumOps) { in setNumHungOffUseOperands() argument
217 assert(NumOps < (1u << NumUserOperandsBits) && "Too many operands"); in setNumHungOffUseOperands()
218 NumUserOperands = NumOps; in setNumHungOffUseOperands()
H A DMetadata.h1099 static constexpr size_t getOpSize(unsigned NumOps) {
1100 return sizeof(MDOperand) * NumOps;
1104 static size_t getSmallSize(size_t NumOps, bool IsResizable, bool IsLarge) {
1106 : std::max(NumOps, NumOpsFitInVector * IsResizable);
1109 static size_t getAllocSize(StorageType Storage, size_t NumOps) {
1111 getSmallSize(NumOps, isResizable(Storage), isLarge(NumOps))) +
1117 static bool isLarge(size_t NumOps) { return NumOps > MaxSmallSize; }
1146 void resizeSmall(size_t NumOps);
1147 void resizeSmallToLarge(size_t NumOps);
1148 void resize(size_t NumOps);
[all …]
H A DDerivedUser.h37 DerivedUser(Type *Ty, unsigned VK, Use *U, unsigned NumOps, in DerivedUser() argument
39 : User(Ty, VK, U, NumOps), DeleteValue(DeleteValue) {} in DerivedUser()
H A DConstant.h44 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() argument
45 : User(ty, vty, Ops, NumOps) {} in Constant()
H A DGlobalObject.h43 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
46 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) { in GlobalValue() argument
H A DInlineAsm.h321 Flag(enum Kind K, unsigned NumOps) : Storage(0) {
323 Bitfield::set<NumOperands>(Storage, NumOps);
293 getFlagWord(unsigned Kind,unsigned NumOps) getFlagWord() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVInstPrinter.cpp41 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps() local
42 for (unsigned i = StartIndex; i < NumOps; ++i) { in printRemainingVariableOps()
194 const unsigned NumOps = MI->getNumOperands(); in printInst() local
195 for (unsigned i = NumFixedOps; i < NumOps; ++i) { in printInst()
200 assert(i + 1 < NumOps && "Missing alignment operand"); in printInst()
230 const auto NumOps = MI->getNumOperands(); in printOpExtInst() local
231 if (NumOps == NumFixedOps) in printOpExtInst()
325 const unsigned NumOps = MI->getNumOperands(); in printStringImm() local
327 while (StrStartIndex < NumOps) { in printStringImm()
H A DSPIRVMCCodeEmitter.cpp94 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands()
97 for (unsigned i = 2; i < NumOps; ++i)
91 unsigned NumOps = MI.getNumOperands(); emitTypedInstrOperands() local
H A DSPIRVBaseInfo.h253 const unsigned NumOps = MI.getNumOperands(); in getSPIRVStringOperand() local
255 for (unsigned i = StartIndex; i < NumOps && !IsFinished; ++i) { in getSPIRVStringOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCTargetDesc.cpp141 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
142 if (NumOps == 0) in evaluateBranch()
144 switch (Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType) { in evaluateBranch()
150 Target = Region + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
155 Target = Addr + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.h131 template <unsigned NumOps>
133 int8_t RegBanks[NumOps];
137 template <unsigned NumOps>
140 const std::array<unsigned, NumOps> RegSrcOpIdx,
141 ArrayRef<OpRegBankEntry<NumOps>> Table) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineRegisterInfo.cpp242 unsigned NumOps = MI->getNumOperands(); in verifyUseList() local
243 if (!(MO >= MO0 && MO < MO0+NumOps)) { in verifyUseList()
346 unsigned NumOps) { in moveOperands() argument
347 assert(Src != Dst && NumOps && "Noop moveOperands"); in moveOperands()
351 if (Dst >= Src && Dst < Src + NumOps) { in moveOperands()
353 Dst += NumOps - 1; in moveOperands()
354 Src += NumOps - 1; in moveOperands()
383 } while (--NumOps); in moveOperands()
H A DCallingConvLower.cpp128 unsigned NumOps = Outs.size(); in AnalyzeCallOperands() local
129 for (unsigned i = 0; i != NumOps; ++i) { in AnalyzeCallOperands()
146 unsigned NumOps = ArgVTs.size(); in AnalyzeCallOperands() local
147 for (unsigned i = 0; i != NumOps; ++i) { in AnalyzeCallOperands()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMetadata.cpp627 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new() argument
631 alignTo(Header::getAllocSize(Storage, NumOps), alignof(uint64_t)); in operator new()
633 Header *H = new (Mem + AllocSize - sizeof(Header)) Header(NumOps, Storage); in operator new()
672 MDNode::Header::Header(size_t NumOps, StorageType Storage) { in Header() argument
673 IsLarge = isLarge(NumOps); in Header()
675 SmallSize = getSmallSize(NumOps, IsResizable, IsLarge); in Header()
679 getLarge().resize(NumOps); in Header()
682 SmallNumOps = NumOps; in Header()
705 void MDNode::Header::resize(size_t NumOps) { in resize() argument
707 if (operands().size() == NumOps) in resize()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenInstruction.cpp83 unsigned NumOps = 1; in CGIOperandList() local
108 NumOps = NumArgs; in CGIOperandList()
141 OperandNamespace + "::" + OperandType, MIOperandNo, NumOps, MIOpInfo); in CGIOperandList()
144 if (SubArgDag->getNumArgs() != NumOps) { in CGIOperandList()
149 Twine(NumOps) + "."); in CGIOperandList()
152 for (unsigned j = 0; j < NumOps; ++j) { in CGIOperandList()
184 for (unsigned j = 1; j < NumOps; ++j) in CGIOperandList()
188 MIOperandNo += NumOps; in CGIOperandList()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp173 unsigned NumOps = N->getNumOperands(); in tryInlineAsm() local
184 SDValue Glue = N->getGluedNode() ? N->getOperand(NumOps - 1) : SDValue(); in tryInlineAsm()
188 for(unsigned i = 0, e = N->getGluedNode() ? NumOps - 1 : NumOps; i < e; ++i) { in tryInlineAsm()
231 assert((i+2 < NumOps) && "Invalid number of operands in inline asm"); in tryInlineAsm()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DThumb2SizeReduction.cpp815 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr() local
816 HasCC = (MI->getOperand(NumOps-1).getReg() == ARM::CPSR); in ReduceTo2Addr()
817 if (HasCC && MI->getOperand(NumOps-1).isDead()) in ReduceTo2Addr()
837 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr() local
839 if (i < NumOps && MCID.operands()[i].isOptionalDef()) in ReduceTo2Addr()
906 unsigned NumOps = MCID.getNumOperands(); in ReduceToNarrow() local
907 HasCC = (MI->getOperand(NumOps-1).getReg() == ARM::CPSR); in ReduceToNarrow()
908 if (HasCC && MI->getOperand(NumOps-1).isDead()) in ReduceToNarrow()
943 unsigned NumOps = MCID.getNumOperands(); in ReduceToNarrow() local
945 if (i < NumOps && MCID.operands()[i].isOptionalDef()) in ReduceToNarrow()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGFast.cpp490 unsigned NumOps = Node->getNumOperands(); in DelayForLiveRegsBottomUp() local
491 if (Node->getOperand(NumOps-1).getValueType() == MVT::Glue) in DelayForLiveRegsBottomUp()
492 --NumOps; // Ignore the glue operand. in DelayForLiveRegsBottomUp()
494 for (unsigned i = InlineAsm::Op_FirstOperand; i != NumOps;) { in DelayForLiveRegsBottomUp()
683 unsigned NumOps = N->getNumOperands(); in ScheduleNode() local
684 if (unsigned NumLeft = NumOps) { in ScheduleNode()
690 if (NumLeft == NumOps && Op.getValueType() == MVT::Glue) { in ScheduleNode()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYISelDAGToDAG.cpp129 unsigned NumOps = N->getNumOperands(); in selectInlineAsm() local
138 N->getGluedNode() ? N->getOperand(NumOps - 1) : SDValue(nullptr, 0); in selectInlineAsm()
142 for (unsigned i = 0, e = N->getGluedNode() ? NumOps - 1 : NumOps; i < e; in selectInlineAsm()
197 assert((i + 2 < NumOps) && "Invalid number of operands in inline asm"); in selectInlineAsm()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVMergeBaseOffset.cpp420 unsigned NumOps = 0; in foldIntoMemoryOps() local
422 I < UseMI.getNumOperands(); I += 1 + NumOps) { in foldIntoMemoryOps()
429 NumOps = Flags.getNumOperandRegisters(); in foldIntoMemoryOps()
432 if (NumOps != 2 || !Flags.isMemKind()) { in foldIntoMemoryOps()
435 for (unsigned J = 0; J < NumOps; ++J) { in foldIntoMemoryOps()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.cpp477 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
478 if (NumOps == 0 || in evaluateBranch()
479 Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType != in evaluateBranch()
482 Target = Addr + Inst.getOperand(NumOps - 1).getImm() * Size; in evaluateBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp964 unsigned NumOps = MI.getNumOperands(); in emitVEXOpcodePrefix() local
965 for (unsigned I = NumOps ? X86II::getOperandBias(Desc) : 0; I != NumOps; in emitVEXOpcodePrefix()
1222 unsigned NumOps = Desc.getNumOperands(); in emitVEXOpcodePrefix() local
1223 unsigned RcOperand = NumOps - 1; in emitVEXOpcodePrefix()
1340 unsigned NumOps = MI.getNumOperands(); in emitREXPrefix() local
1345 unsigned CurOp = NumOps ? X86II::getOperandBias(Desc) : 0; in emitREXPrefix()
1346 for (unsigned i = CurOp; i != NumOps; ++i) { in emitREXPrefix()
1554 unsigned NumOps = Desc.getNumOperands(); in encodeInstruction() local
1597 OpcodeOffset = MI.getOperand(NumOps - 1).getImm(); in encodeInstruction()
1599 --NumOps; // Drop the operand from the end. in encodeInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp428 auto NumOps = Args.size(); in emitAMDGPUPrintfCall() local
429 assert(NumOps >= 1); in emitAMDGPUPrintfCall()
522 Desc = appendString(Builder, Desc, Fmt, NumOps == 1); in emitAMDGPUPrintfCall()
527 for (unsigned int i = 1; i != NumOps; ++i) { in emitAMDGPUPrintfCall()
528 bool IsLast = i == NumOps - 1; in emitAMDGPUPrintfCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenPredicate.cpp372 unsigned NumOps = MI->getNumOperands(); in convertToPredForm() local
373 for (unsigned i = 0; i < NumOps; ++i) { in convertToPredForm()
409 NumOps = 2; in convertToPredForm()
425 for (unsigned i = 1; i < NumOps; ++i) { in convertToPredForm()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchMCTargetDesc.cpp99 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
102 Target = Addr + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()

12345