Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/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.h973 static constexpr size_t getOpSize(unsigned NumOps) {
974 return sizeof(MDOperand) * NumOps;
978 static size_t getSmallSize(size_t NumOps, bool IsResizable, bool IsLarge) {
980 : std::max(NumOps, NumOpsFitInVector * IsResizable);
983 static size_t getAllocSize(StorageType Storage, size_t NumOps) {
985 getSmallSize(NumOps, isResizable(Storage), isLarge(NumOps))) +
991 static bool isLarge(size_t NumOps) { return NumOps > MaxSmallSize; }
1020 void resizeSmall(size_t NumOps);
1021 void resizeSmallToLarge(size_t NumOps);
1022 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.h43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() argument
44 : 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.h293 static unsigned getFlagWord(unsigned Kind, unsigned NumOps) { in getFlagWord() argument
294 assert(((NumOps << 3) & ~0xffff) == 0 && "Too many inline asm operands!"); in getFlagWord()
296 return Kind | (NumOps << 3); in getFlagWord()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVInstPrinter.cpp39 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps() local
40 for (unsigned i = StartIndex; i < NumOps; ++i) { in printRemainingVariableOps()
156 const unsigned NumOps = MI->getNumOperands(); in printInst() local
157 for (unsigned i = NumFixedOps; i < NumOps; ++i) { in printInst()
162 assert(i + 1 < NumOps && "Missing alignment operand"); in printInst()
190 const auto NumOps = MI->getNumOperands(); in printOpExtInst() local
191 if (NumOps == NumFixedOps) in printOpExtInst()
278 const unsigned NumOps = MI->getNumOperands(); in printStringImm() local
280 while (StrStartIndex < NumOps) { in printStringImm()
H A DSPIRVMCCodeEmitter.cpp91 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands() local
94 for (unsigned i = 2; i < NumOps; ++i) in emitTypedInstrOperands()
H A DSPIRVBaseInfo.h245 const unsigned NumOps = MI.getNumOperands(); in getSPIRVStringOperand() local
247 for (unsigned i = StartIndex; i < NumOps && !IsFinished; ++i) { in getSPIRVStringOperand()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCTargetDesc.cpp143 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
144 if (NumOps == 0) in evaluateBranch()
146 switch (Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType) { in evaluateBranch()
152 Target = Region + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
157 Target = Addr + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
/openbsd-src/gnu/llvm/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;
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVMCInstLower.cpp155 unsigned NumOps = MI->getNumExplicitOperands(); in lowerRISCVVMachineInstrToMCInst() local
159 --NumOps; in lowerRISCVVMachineInstrToMCInst()
161 --NumOps; in lowerRISCVVMachineInstrToMCInst()
163 --NumOps; in lowerRISCVVMachineInstrToMCInst()
166 for (unsigned OpNo = 0; OpNo != NumOps; ++OpNo) { in lowerRISCVVMachineInstrToMCInst()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DMetadata.cpp524 void *MDNode::operator new(size_t Size, size_t NumOps, StorageType Storage) { in operator new() argument
528 alignTo(Header::getAllocSize(Storage, NumOps), alignof(uint64_t)); in operator new()
530 Header *H = new (Mem + AllocSize - sizeof(Header)) Header(NumOps, Storage); in operator new()
569 MDNode::Header::Header(size_t NumOps, StorageType Storage) { in Header() argument
570 IsLarge = isLarge(NumOps); in Header()
572 SmallSize = getSmallSize(NumOps, IsResizable, IsLarge); in Header()
576 getLarge().resize(NumOps); in Header()
579 SmallNumOps = NumOps; in Header()
602 void MDNode::Header::resize(size_t NumOps) { in resize() argument
604 if (operands().size() == NumOps) in resize()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp212 auto NumOps = Args.size(); in emitAMDGPUPrintfCall() local
213 assert(NumOps >= 1); in emitAMDGPUPrintfCall()
220 Desc = appendString(Builder, Desc, Fmt, NumOps == 1); in emitAMDGPUPrintfCall()
225 for (unsigned int i = 1; i != NumOps; ++i) { in emitAMDGPUPrintfCall()
226 bool IsLast = i == NumOps - 1; in emitAMDGPUPrintfCall()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DMachineRegisterInfo.cpp231 unsigned NumOps = MI->getNumOperands(); in verifyUseList() local
232 if (!(MO >= MO0 && MO < MO0+NumOps)) { in verifyUseList()
335 unsigned NumOps) { in moveOperands() argument
336 assert(Src != Dst && NumOps && "Noop moveOperands"); in moveOperands()
340 if (Dst >= Src && Dst < Src + NumOps) { in moveOperands()
342 Dst += NumOps - 1; in moveOperands()
343 Src += NumOps - 1; in moveOperands()
372 } while (--NumOps); in moveOperands()
H A DCallingConvLower.cpp125 unsigned NumOps = Outs.size(); in AnalyzeCallOperands() local
126 for (unsigned i = 0; i != NumOps; ++i) { in AnalyzeCallOperands()
143 unsigned NumOps = ArgVTs.size(); in AnalyzeCallOperands() local
144 for (unsigned i = 0; i != NumOps; ++i) { in AnalyzeCallOperands()
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcISelDAGToDAG.cpp167 unsigned NumOps = N->getNumOperands(); in tryInlineAsm() local
178 SDValue Glue = N->getGluedNode() ? N->getOperand(NumOps - 1) : SDValue(); in tryInlineAsm()
182 for(unsigned i = 0, e = N->getGluedNode() ? NumOps - 1 : NumOps; i < e; ++i) { in tryInlineAsm()
227 assert((i+2 < NumOps) && "Invalid number of operands in inline asm"); in tryInlineAsm()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchMCTargetDesc.cpp99 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
101 Target = Addr + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenInstruction.cpp84 unsigned NumOps = 1; in CGIOperandList() local
109 NumOps = NumArgs; in CGIOperandList()
142 OperandNamespace + "::" + OperandType, MIOperandNo, NumOps, MIOpInfo); in CGIOperandList()
145 if (SubArgDag->getNumArgs() != NumOps) { in CGIOperandList()
150 Twine(NumOps) + "."); in CGIOperandList()
153 for (unsigned j = 0; j < NumOps; ++j) { in CGIOperandList()
185 for (unsigned j = 1; j < NumOps; ++j) in CGIOperandList()
189 MIOperandNo += NumOps; in CGIOperandList()
H A DDAGISelMatcherEmitter.cpp484 unsigned NumOps = cast<CheckPredicateMatcher>(N)->getNumOperands(); in EmitMatcher() local
485 OS << "OPC_CheckPredicateWithOperands, " << NumOps << "/*#Ops*/, "; in EmitMatcher()
486 for (unsigned i = 0; i < NumOps; ++i) in EmitMatcher()
488 OperandBytes = 1 + NumOps; in EmitMatcher()
949 unsigned NumOps = P.getNumOperands(); in EmitPredicateFunctions() local
952 ++NumOps; // Get the chained node too. in EmitPredicateFunctions()
957 OS << " Result.resize(NextRes+" << NumOps << ");\n"; in EmitPredicateFunctions()
975 for (unsigned i = 0; i != NumOps; ++i) in EmitPredicateFunctions()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.cpp386 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local
387 if (NumOps == 0 || in evaluateBranch()
388 Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType != in evaluateBranch()
391 Target = Addr + Inst.getOperand(NumOps - 1).getImm() * Size; in evaluateBranch()
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYISelDAGToDAG.cpp121 unsigned NumOps = N->getNumOperands(); in selectInlineAsm() local
130 N->getGluedNode() ? N->getOperand(NumOps - 1) : SDValue(nullptr, 0); in selectInlineAsm()
134 for (unsigned i = 0, e = N->getGluedNode() ? NumOps - 1 : NumOps; i < e; in selectInlineAsm()
190 assert((i + 2 < NumOps) && "Invalid number of operands in inline asm"); in selectInlineAsm()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DScheduleDAGFast.cpp494 unsigned NumOps = Node->getNumOperands(); in DelayForLiveRegsBottomUp() local
495 if (Node->getOperand(NumOps-1).getValueType() == MVT::Glue) in DelayForLiveRegsBottomUp()
496 --NumOps; // Ignore the glue operand. in DelayForLiveRegsBottomUp()
498 for (unsigned i = InlineAsm::Op_FirstOperand; i != NumOps;) { in DelayForLiveRegsBottomUp()
688 unsigned NumOps = N->getNumOperands(); in ScheduleNode() local
689 if (unsigned NumLeft = NumOps) { in ScheduleNode()
695 if (NumLeft == NumOps && Op.getValueType() == MVT::Glue) { in ScheduleNode()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp798 unsigned NumOps = Desc.getNumOperands(); in emitVEXOpcodePrefix() local
976 unsigned RcOperand = NumOps - 1; in emitVEXOpcodePrefix()
1150 unsigned NumOps = MI.getNumOperands(); in emitREXPrefix() local
1154 for (unsigned i = CurOp; i != NumOps; ++i) { in emitREXPrefix()
1350 unsigned NumOps = Desc.getNumOperands(); in encodeInstruction() local
1390 OpcodeOffset = MI.getOperand(NumOps - 1).getImm(); in encodeInstruction()
1392 --NumOps; // Drop the operand from the end. in encodeInstruction()
1492 --NumOps; in encodeInstruction()
1741 if (CurOp != NumOps) { in encodeInstruction()
1752 while (CurOp != NumOps && NumOps - CurOp <= 2) { in encodeInstruction()
[all …]

12345