/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | User.h | 73 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 D | DerivedUser.h | 37 DerivedUser(Type *Ty, unsigned VK, Use *U, unsigned NumOps, in DerivedUser() argument 39 : User(Ty, VK, U, NumOps), DeleteValue(DeleteValue) {} in DerivedUser()
|
H A D | Metadata.h | 1090 return sizeof(MDOperand) * NumOps; 1101 getSmallSize(NumOps, isResizable(Storage), isLarge(NumOps))) + 1107 static bool isLarge(size_t NumOps) { return NumOps > MaxSmallSize; } 1136 void resizeSmall(size_t NumOps); 1137 void resizeSmallToLarge(size_t NumOps); 1138 void resize(size_t NumOps); 1353 void resize(size_t NumOps) { 1357 getHeader().resize(NumOps); 1520 size_t NumOps = getNumOperands(); 1521 resize(NumOps + 1); [all …]
|
H A D | Constant.h | 43 Constant(Type *ty, ValueTy vty, Use *Ops, unsigned NumOps) in Constant() argument 44 : User(ty, vty, Ops, NumOps) {} in Constant()
|
H A D | GlobalObject.h | 43 GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, 46 : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name, AddressSpace) { in GlobalValue() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/MCTargetDesc/ |
H A D | SPIRVInstPrinter.cpp | 40 const unsigned NumOps = MI->getNumOperands(); in printRemainingVariableOps() local 41 for (unsigned i = StartIndex; i < NumOps; ++i) { in printRemainingVariableOps() 192 const unsigned NumOps = MI->getNumOperands(); in printInst() local 193 for (unsigned i = NumFixedOps; i < NumOps; ++i) { in printInst() 198 assert(i + 1 < NumOps && "Missing alignment operand"); in printInst() 228 const auto NumOps = MI->getNumOperands(); in printOpExtInst() local 229 if (NumOps == NumFixedOps) in printOpExtInst() 316 const unsigned NumOps = MI->getNumOperands(); in printStringImm() local 318 while (StrStartIndex < NumOps) { in printStringImm()
|
H A D | SPIRVMCCodeEmitter.cpp | 94 unsigned NumOps = MI.getNumOperands(); in emitTypedInstrOperands() local 97 for (unsigned i = 2; i < NumOps; ++i) in emitTypedInstrOperands()
|
H A D | SPIRVBaseInfo.h | 247 const unsigned NumOps = MI.getNumOperands(); in getSPIRVStringOperand() local 249 for (unsigned i = StartIndex; i < NumOps && !IsFinished; ++i) { in getSPIRVStringOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
H A D | MipsMCTargetDesc.cpp | 143 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURegisterBankInfo.h | 131 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 D | MachineRegisterInfo.cpp | 231 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 D | CallingConvLower.cpp | 128 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 D | Metadata.cpp | 664 IsLarge = isLarge(NumOps); in Header() 670 getLarge().resize(NumOps); in Header() 673 SmallNumOps = NumOps; in Header() 696 void MDNode::Header::resize(size_t NumOps) { in resize() argument 698 if (operands().size() == NumOps) in resize() 702 getLarge().resize(NumOps); in resize() 703 else if (NumOps <= SmallSize) in resize() 704 resizeSmall(NumOps); in resize() 706 resizeSmallToLarge(NumOps); in resize() 722 SmallNumOps = NumOps; in resizeSmall() [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | CodeGenInstruction.cpp | 83 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()
|
H A D | DAGISelMatcherEmitter.cpp | 555 unsigned NumOps = cast<CheckPredicateMatcher>(N)->getNumOperands(); in EmitMatcher() local 556 OS << "OPC_CheckPredicateWithOperands, " << NumOps << "/*#Ops*/, "; in EmitMatcher() 557 for (unsigned i = 0; i < NumOps; ++i) in EmitMatcher() 559 OperandBytes = 1 + NumOps; in EmitMatcher() 1121 unsigned NumOps = P.getNumOperands(); in EmitPredicateFunctions() local 1124 ++NumOps; // Get the chained node too. in EmitPredicateFunctions() 1129 OS << " Result.resize(NextRes+" << NumOps << ");\n"; in EmitPredicateFunctions() 1147 for (unsigned i = 0; i != NumOps; ++i) in EmitPredicateFunctions()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | SparcISelDAGToDAG.cpp | 167 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() 225 assert((i+2 < NumOps) && "Invalid number of operands in inline asm"); in tryInlineAsm()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | Thumb2SizeReduction.cpp | 815 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 D | ScheduleDAGFast.cpp | 490 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/X86/MCTargetDesc/ |
H A D | X86MCCodeEmitter.cpp | 961 unsigned NumOps = MI.getNumOperands(); in emitVEXOpcodePrefix() local 962 for (unsigned I = NumOps ? X86II::getOperandBias(Desc) : 0; I != NumOps; in emitVEXOpcodePrefix() 1197 unsigned NumOps = Desc.getNumOperands(); in emitVEXOpcodePrefix() local 1198 unsigned RcOperand = NumOps - 1; in emitVEXOpcodePrefix() 1305 unsigned NumOps = MI.getNumOperands(); in emitREXPrefix() local 1311 for (unsigned i = CurOp; i != NumOps; ++i) { in emitREXPrefix() 1511 unsigned NumOps = Desc.getNumOperands(); in encodeInstruction() local 1555 --NumOps; // Drop the operand from the end. in encodeInstruction() 1663 --NumOps; in encodeInstruction() 1915 if (CurOp != NumOps) { in encodeInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
H A D | CSKYISelDAGToDAG.cpp | 122 unsigned NumOps = N->getNumOperands(); in selectInlineAsm() local 131 N->getGluedNode() ? N->getOperand(NumOps - 1) : SDValue(nullptr, 0); in selectInlineAsm() 135 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/ |
H A D | PPCMCTargetDesc.cpp | 470 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local 471 if (NumOps == 0 || in evaluateBranch() 472 Info->get(Inst.getOpcode()).operands()[NumOps - 1].OperandType != in evaluateBranch() 475 Target = Addr + Inst.getOperand(NumOps - 1).getImm() * Size; in evaluateBranch()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | AMDGPUEmitPrintf.cpp | 430 auto NumOps = Args.size(); in emitAMDGPUPrintfCall() local 431 assert(NumOps >= 1); in emitAMDGPUPrintfCall() 524 Desc = appendString(Builder, Desc, Fmt, NumOps == 1); in emitAMDGPUPrintfCall() 529 for (unsigned int i = 1; i != NumOps; ++i) { in emitAMDGPUPrintfCall() 530 bool IsLast = i == NumOps - 1; in emitAMDGPUPrintfCall()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonGenPredicate.cpp | 372 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/RISCV/ |
H A D | RISCVMergeBaseOffset.cpp | 413 unsigned NumOps = 0; in foldIntoMemoryOps() local 415 I < UseMI.getNumOperands(); I += 1 + NumOps) { in foldIntoMemoryOps() 422 NumOps = Flags.getNumOperandRegisters(); in foldIntoMemoryOps() 425 if (NumOps != 2 || !Flags.isMemKind()) in foldIntoMemoryOps()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
H A D | LoongArchMCTargetDesc.cpp | 99 unsigned NumOps = Inst.getNumOperands(); in evaluateBranch() local 102 Target = Addr + Inst.getOperand(NumOps - 1).getImm(); in evaluateBranch()
|