Home
last modified time | relevance | path

Searched refs:NumDefs (Results 1 – 25 of 39) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DStackMaps.h174 NumDefs = MI->getNumDefs(); in StatepointOpers()
178 unsigned getIDPos() const { return NumDefs + IDPos; } in getIDPos()
181 unsigned getNBytesPos() const { return NumDefs + NBytesPos; } in getNBytesPos()
184 unsigned getNCallArgsPos() const { return NumDefs + NCallArgsPos; } in getNCallArgsPos()
189 return MI->getOperand(NumDefs + NCallArgsPos).getImm() + MetaEnd + NumDefs; in getVarIdx()
204 uint64_t getID() const { return MI->getOperand(NumDefs + IDPos).getImm(); } in getID()
208 return MI->getOperand(NumDefs + NBytesPos).getImm(); in getNumPatchBytes()
213 return MI->getOperand(NumDefs + CallTargetPos); in getCallTarget()
256 unsigned NumDefs; variable
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h410 const unsigned NumDefs = MI.getNumOperands() - 1; in tryFoldUnmergeCast() local
443 for (unsigned I = 0; I != NumDefs; ++I) { in tryFoldUnmergeCast()
474 if (Idx < NumDefs) in tryFoldUnmergeCast()
874 unsigned NumDefs = MI.getNumDefs(); in tryCombineUnmergeDefs() local
877 SmallBitVector DeadDefs(NumDefs); in tryCombineUnmergeDefs()
1041 unsigned NumDefs = MI.getNumDefs(); in tryCombineUnmergeValues() local
1091 for (unsigned I = 0; I != NumDefs; ++I) { in tryCombineUnmergeValues()
1120 if (NumMergeRegs < NumDefs) { in tryCombineUnmergeValues()
1121 if (NumDefs % NumMergeRegs != 0) in tryCombineUnmergeValues()
1170 } else if (NumMergeRegs > NumDefs) { in tryCombineUnmergeValues()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenInstruction.cpp41 NumDefs = OutDI->getNumArgs(); in CGIOperandList()
61 if (i < NumDefs) { in CGIOperandList()
65 ArgInit = InDI->getArg(i-NumDefs); in CGIOperandList()
66 ArgName = InDI->getArgNameStr(i-NumDefs); in CGIOperandList()
115 if (i < NumDefs) in CGIOperandList()
192 --NumDefs; in CGIOperandList()
362 if (DestOp.first >= Ops.NumDefs) in ParseConstraint()
366 if (SrcOp.first < Ops.NumDefs) in ParseConstraint()
H A DInstrDocsEmitter.cpp151 bool IsDef = i < II->Operands.NumDefs; in EmitInstrDocs()
H A DCodeGenInstruction.h148 unsigned NumDefs; variable
H A DGlobalISelEmitter.cpp1502 const unsigned DstNumDefs = DstI->Operands.NumDefs; in importExplicitDefRenderers()
1637 unsigned DstINumUses = OrigDstI->Operands.size() - OrigDstI->Operands.NumDefs; in importExplicitUseRenderers()
1645 unsigned NumResults = OrigDstI->Operands.NumDefs; in importExplicitUseRenderers()
1672 unsigned InstOpNo = DstI->Operands.NumDefs + I; in importExplicitUseRenderers()
1796 if (Inst.Operands.NumDefs > 1) in inferRegClassFromPattern()
1996 unsigned DstNumDefs = DstI.Operands.NumDefs, in runOnPattern()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DInstrEmitter.cpp1001 unsigned NumDefs = II.getNumDefs(); in EmitMachineNode() local
1012 NumDefs = NumResults; in EmitMachineNode()
1016 NumDefs = NumResults; in EmitMachineNode()
1021 countOperands(Node, II.getNumOperands() - NumDefs, NumImpUses); in EmitMachineNode()
1088 bool HasOptPRefs = NumDefs > NumResults; in EmitMachineNode()
1091 unsigned NumSkip = HasOptPRefs ? NumDefs - NumResults : 0; in EmitMachineNode()
1093 AddOperand(MIB, Node->getOperand(i), i-NumSkip+NumDefs, &II, in EmitMachineNode()
1133 for (unsigned i = NumDefs; i < NumResults; ++i) { in EmitMachineNode()
1134 Register Reg = II.implicit_defs()[i - NumDefs]; in EmitMachineNode()
1180 if (Opc == TargetOpcode::STATEPOINT && NumDefs > 0) { in EmitMachineNode()
[all …]
H A DScheduleDAGRRList.cpp2124 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in MayReduceRegPressure() local
2125 for (unsigned i = 0; i != NumDefs; ++i) { in MayReduceRegPressure()
2170 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in RegPressureDiff() local
2171 for (unsigned i = 0; i != NumDefs; ++i) { in RegPressureDiff()
2308 unsigned NumDefs = TII->get(PN->getMachineOpcode()).getNumDefs(); in unscheduledNode() local
2309 for (unsigned i = 0; i != NumDefs; ++i) { in unscheduledNode()
2325 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in unscheduledNode() local
2326 for (unsigned i = NumDefs, e = N->getNumValues(); i != e; ++i) { in unscheduledNode()
2896 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in canClobberPhysRegDefs() local
2908 for (unsigned i = NumDefs, e = N->getNumValues(); i != e; ++i) { in canClobberPhysRegDefs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DPatterns.cpp239 unsigned NumDefs = getNumInstDefs(); in checkSemantics() local
241 Op.setIsDef(OpIdx++ < NumDefs); in checkSemantics()
356 return I.Operands.NumDefs; in getNumInstDefs()
357 unsigned NumOuts = I.Operands.size() - I.Operands.NumDefs; in getNumInstDefs()
359 return std::max<unsigned>(I.Operands.NumDefs, Operands.size() - NumOuts); in getNumInstDefs()
H A DPatterns.h658 unsigned NumDefs; member
675 unsigned getNumInstDefs() const override { return I.NumDefs; } in getNumInstDefs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DImplicitNullChecks.cpp713 unsigned NumDefs = MI->getDesc().getNumDefs(); in insertFaultingInstr() local
714 assert(NumDefs <= 1 && "other cases unhandled!"); in insertFaultingInstr()
717 if (NumDefs != 0) { in insertFaultingInstr()
719 assert(NumDefs == 1 && "expected exactly one def!"); in insertFaultingInstr()
H A DFixupStatepointCallerSaved.cpp484 unsigned NumDefs = MI.getNumDefs(); in rewriteStatepoint() local
485 for (unsigned I = 0; I < NumDefs; ++I) { in rewriteStatepoint()
517 for (unsigned I = NumDefs; I < MI.getNumOperands(); ++I) { in rewriteStatepoint()
532 assert(OldDef < NumDefs); in rewriteStatepoint()
H A DMachineCSE.cpp629 unsigned NumDefs = MI.getNumDefs(); in ProcessBlockCSE() local
631 for (unsigned i = 0, e = MI.getNumOperands(); NumDefs && i != e; ++i) { in ProcessBlockCSE()
649 --NumDefs; in ProcessBlockCSE()
673 --NumDefs; in ProcessBlockCSE()
H A DMachineInstr.cpp769 unsigned NumDefs = MCID->getNumDefs(); in getNumExplicitDefs() local
771 return NumDefs; in getNumExplicitDefs()
773 for (unsigned I = NumDefs, E = getNumOperands(); I != E; ++I) { in getNumExplicitDefs()
777 ++NumDefs; in getNumExplicitDefs()
779 return NumDefs; in getNumExplicitDefs()
1176 unsigned NumDefs = getNumDefs(); in findTiedOperandIdx() local
1177 for (unsigned CurDefIdx = 0; CurDefIdx < NumDefs; ++CurDefIdx) { in findTiedOperandIdx()
H A DPeepholeOptimizer.cpp929 unsigned NumDefs; ///< Number of defs in the bitcast. member in __anon139b6b7f0211::UncoalescableRewriter
933 NumDefs = MI.getDesc().getNumDefs(); in UncoalescableRewriter()
943 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
948 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
H A DTargetInstrInfo.cpp507 unsigned NumDefs = 0; in foldPatchpoint() local
509 std::tie(NumDefs, StartIdx) = TII.getPatchpointUnfoldableRange(MI); in foldPatchpoint()
516 if (Op < NumDefs) { in foldPatchpoint()
558 assert(TiedTo < NumDefs && "Bad tied operand"); in foldPatchpoint()
H A DMachineLICM.cpp1123 unsigned NumDefs = MI.getDesc().getNumDefs(); in IsCheapInstruction() local
1124 for (unsigned i = 0, e = MI.getNumOperands(); NumDefs && i != e; ++i) { in IsCheapInstruction()
1128 --NumDefs; in IsCheapInstruction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCInstrDesc.cpp42 for (int i = 0, e = NumDefs; i != e; ++i) in hasDefOfPhysReg()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCInstrDesc.h207 unsigned char NumDefs; // Num of args that are definitions variable
248 unsigned getNumDefs() const { return NumDefs; } in getNumDefs()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMCTargetDesc.cpp176 auto NumDefs = Info->get(Inst.getOpcode()).getNumDefs(); in updateState() local
177 for (unsigned I = 0; I < NumDefs; ++I) { in updateState()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCTargetDesc.cpp537 unsigned NumDefs = Desc.getNumDefs(); in clearsSuperRegisters() local
539 assert(Mask.getBitWidth() == NumDefs + NumImplicitDefs && in clearsSuperRegisters()
570 for (unsigned I = 0, E = NumDefs; I < E; ++I) { in clearsSuperRegisters()
579 Mask.setBit(NumDefs + I); in clearsSuperRegisters()
H A DX86BaseInfo.h969 unsigned NumDefs = Desc.getNumDefs(); in getOperandBias() local
971 switch (NumDefs) { in getOperandBias()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp368 SmallVector<Register, 8> UnmergeDefs(NumDefs); in buildWidenedRemergeToDst()
370 for (unsigned I = 1; I != NumDefs; ++I) in buildWidenedRemergeToDst()
4083 unsigned NumDefs = MI.getNumDefs(); in fewerElementsVectorMultiEltType() local
4091 for (unsigned i = 0; i < NumDefs; ++i) { in fewerElementsVectorMultiEltType()
4134 for (unsigned i = 0; i < NumDefs; ++i) in fewerElementsVectorMultiEltType()
4137 for (unsigned i = 0; i < NumDefs; ++i) in fewerElementsVectorMultiEltType()
4151 unsigned NumDefs = MI.getNumDefs(); in fewerElementsVectorPhi() local
5562 unsigned NumDefs = MI.getNumExplicitDefs(); in narrowScalarAddSub() local
5563 Register Src1 = MI.getOperand(NumDefs).getReg(); in narrowScalarAddSub()
5566 if (NumDefs == 2) in narrowScalarAddSub()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonBitTracker.cpp190 unsigned NumDefs = 0; in evaluate() local
196 NumDefs++; in evaluate()
200 if (NumDefs == 0) in evaluate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1321 unsigned NumDefs = 0; in beginInstruction() local
1323 const MachineOperand &MO = MI->getOperand(NumDefs); in beginInstruction()
1325 ++NumDefs; in beginInstruction()

12