Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizationArtifactCombiner.h288 unsigned NumDefs = MI.getNumOperands() - 1; in tryCombineMerges() local
290 getDefIgnoringCopies(MI.getOperand(NumDefs).getReg(), MRI); in tryCombineMerges()
294 LLT OpTy = MRI.getType(MI.getOperand(NumDefs).getReg()); in tryCombineMerges()
312 if (NumMergeRegs < NumDefs) { in tryCombineMerges()
313 if (NumDefs % NumMergeRegs != 0) in tryCombineMerges()
324 const unsigned NewNumDefs = NumDefs / NumMergeRegs; in tryCombineMerges()
350 } else if (NumMergeRegs > NumDefs) { in tryCombineMerges()
351 if (ConvertOp != 0 || NumMergeRegs % NumDefs != 0) in tryCombineMerges()
362 const unsigned NumRegs = NumMergeRegs / NumDefs; in tryCombineMerges()
363 for (unsigned DefIdx = 0; DefIdx < NumDefs; ++DefIdx) { in tryCombineMerges()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp498 unsigned NumDefs = 0; in EmitInlineAsm() local
499 for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef(); in EmitInlineAsm()
500 ++NumDefs) in EmitInlineAsm()
501 assert(NumDefs != MI->getNumOperands()-2 && "No asm string?"); in EmitInlineAsm()
503 assert(MI->getOperand(NumDefs).isSymbol() && "No asm string?"); in EmitInlineAsm()
506 const char *AsmStr = MI->getOperand(NumDefs).getSymbolName(); in EmitInlineAsm()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DImplicitNullChecks.cpp622 unsigned NumDefs = MI->getDesc().getNumDefs(); in insertFaultingInstr() local
623 assert(NumDefs <= 1 && "other cases unhandled!"); in insertFaultingInstr()
626 if (NumDefs != 0) { in insertFaultingInstr()
628 assert(NumDefs == 1 && "expected exactly one def!"); in insertFaultingInstr()
DMachineCSE.cpp593 unsigned NumDefs = MI->getNumDefs(); in ProcessBlockCSE() local
595 for (unsigned i = 0, e = MI->getNumOperands(); NumDefs && i != e; ++i) { in ProcessBlockCSE()
613 --NumDefs; in ProcessBlockCSE()
638 --NumDefs; in ProcessBlockCSE()
DPeepholeOptimizer.cpp866 unsigned NumDefs; ///< Number of defs in the bitcast. member in __anon7dafcbf40211::UncoalescableRewriter
870 NumDefs = MI.getDesc().getNumDefs(); in UncoalescableRewriter()
880 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
885 if (CurrentSrcIdx == NumDefs) in getNextRewritableSource()
DMachineInstr.cpp719 unsigned NumDefs = MCID->getNumDefs(); in getNumExplicitDefs() local
721 return NumDefs; in getNumExplicitDefs()
723 for (unsigned I = NumDefs, E = getNumOperands(); I != E; ++I) { in getNumExplicitDefs()
727 ++NumDefs; in getNumExplicitDefs()
729 return NumDefs; in getNumExplicitDefs()
DMachineLICM.cpp1164 unsigned NumDefs = MI.getDesc().getNumDefs(); in IsCheapInstruction() local
1165 for (unsigned i = 0, e = MI.getNumOperands(); NumDefs && i != e; ++i) { in IsCheapInstruction()
1169 --NumDefs; in IsCheapInstruction()
DMachineVerifier.cpp1582 unsigned NumDefs = MCID.getNumDefs(); in visitMachineOperand() local
1584 NumDefs = (MONum == 0 && MO->isReg()) ? NumDefs : 0; in visitMachineOperand()
1587 if (MONum < NumDefs) { in visitMachineOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.cpp813 unsigned NumDefs = II.getNumDefs(); in EmitMachineNode() local
824 NumDefs = NumResults; in EmitMachineNode()
831 countOperands(Node, II.getNumOperands() - NumDefs, NumImpUses); in EmitMachineNode()
832 bool HasPhysRegOuts = NumResults > NumDefs && II.getImplicitDefs()!=nullptr; in EmitMachineNode()
892 bool HasOptPRefs = NumDefs > NumResults; in EmitMachineNode()
895 unsigned NumSkip = HasOptPRefs ? NumDefs - NumResults : 0; in EmitMachineNode()
897 AddOperand(MIB, Node->getOperand(i), i-NumSkip+NumDefs, &II, in EmitMachineNode()
934 for (unsigned i = NumDefs; i < NumResults; ++i) { in EmitMachineNode()
935 Register Reg = II.getImplicitDefs()[i - NumDefs]; in EmitMachineNode()
DScheduleDAGRRList.cpp2114 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in MayReduceRegPressure() local
2115 for (unsigned i = 0; i != NumDefs; ++i) { in MayReduceRegPressure()
2160 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in RegPressureDiff() local
2161 for (unsigned i = 0; i != NumDefs; ++i) { in RegPressureDiff()
2289 unsigned NumDefs = TII->get(PN->getMachineOpcode()).getNumDefs(); in unscheduledNode() local
2290 for (unsigned i = 0; i != NumDefs; ++i) { in unscheduledNode()
2306 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in unscheduledNode() local
2307 for (unsigned i = NumDefs, e = N->getNumValues(); i != e; ++i) { in unscheduledNode()
2877 unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs(); in canClobberPhysRegDefs() local
2889 for (unsigned i = NumDefs, e = N->getNumValues(); i != e; ++i) { in canClobberPhysRegDefs()
[all …]
DDAGCombiner.cpp10916 unsigned NumDefs = 0; in visitTRUNCATE() local
10923 NumDefs++; in visitTRUNCATE()
10926 if (NumDefs > 1) in visitTRUNCATE()
10933 if (NumDefs == 0) in visitTRUNCATE()
10936 if (NumDefs == 1) { in visitTRUNCATE()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCInstrDesc.h192 unsigned char NumDefs; // Num of args that are definitions variable
250 unsigned getNumDefs() const { return NumDefs; } in getNumDefs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DMCInstrDesc.cpp55 for (int i = 0, e = NumDefs; i != e; ++i) in hasDefOfPhysReg()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBTFDebug.cpp988 unsigned NumDefs = 0; in beginInstruction() local
989 for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef(); in beginInstruction()
990 ++NumDefs) in beginInstruction()
994 const char *AsmStr = MI->getOperand(NumDefs).getSymbolName(); in beginInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
DX86MCTargetDesc.cpp416 unsigned NumDefs = Desc.getNumDefs(); in clearsSuperRegisters() local
418 assert(Mask.getBitWidth() == NumDefs + NumImplicitDefs && in clearsSuperRegisters()
449 for (unsigned I = 0, E = NumDefs; I < E; ++I) { in clearsSuperRegisters()
458 Mask.setBit(NumDefs + I); in clearsSuperRegisters()
DX86BaseInfo.h976 unsigned NumDefs = Desc.getNumDefs(); in getOperandBias() local
978 switch (NumDefs) { in getOperandBias()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp192 unsigned NumDefs = 0; in evaluate() local
198 NumDefs++; in evaluate()
202 if (NumDefs == 0) in evaluate()
DHexagonInstrInfo.cpp4312 unsigned NumDefs = 0; in getSize() local
4313 for (; MI.getOperand(NumDefs).isReg() && MI.getOperand(NumDefs).isDef(); in getSize()
4314 ++NumDefs) in getSize()
4315 assert(NumDefs != MI.getNumOperands()-2 && "No asm string?"); in getSize()
4317 assert(MI.getOperand(NumDefs).isSymbol() && "No asm string?"); in getSize()
4319 const char *AsmStr = MI.getOperand(NumDefs).getSymbolName(); in getSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp1335 unsigned NumDefs = I.getNumOperands() - 1; in selectUnmergeValues() local
1336 Register SrcReg = I.getOperand(NumDefs).getReg(); in selectUnmergeValues()
1339 for (unsigned Idx = 0; Idx < NumDefs; ++Idx) { in selectUnmergeValues()
DX86InstrInfo.cpp5614 unsigned NumDefs = MCID.NumDefs; in unfoldMemoryOperand() local
5622 if (i >= Index-NumDefs && i < Index-NumDefs + X86::AddrNumOperands) in unfoldMemoryOperand()
5624 else if (i < Index-NumDefs) in unfoldMemoryOperand()
5626 else if (i > Index-NumDefs) in unfoldMemoryOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURegisterBankInfo.cpp1189 const int NumDefs = MI.getNumExplicitDefs(); in applyMappingImage() local
1193 RsrcIdx += NumDefs + 1; in applyMappingImage()
1200 for (int I = NumDefs, NumOps = MI.getNumOperands(); I != NumOps; ++I) { in applyMappingImage()
DSIInstrInfo.cpp181 Offset0Idx -= get(Opc0).NumDefs; in areLoadsFromSameBasePtr()
182 Offset1Idx -= get(Opc1).NumDefs; in areLoadsFromSameBasePtr()
231 OffIdx0 -= get(Opc0).NumDefs; in areLoadsFromSameBasePtr()
232 OffIdx1 -= get(Opc1).NumDefs; in areLoadsFromSameBasePtr()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DAsmParser.cpp5811 unsigned NumDefs = Desc.getNumDefs(); in parseMSInlineAsm() local
5813 if (NumDefs && Operand.getMCOperandNum() < NumDefs) in parseMSInlineAsm()