Home
last modified time | relevance | path

Searched refs:srcExists (Results 1 – 16 of 16) sorted by relevance

/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir.cpp183 for (int i = 0; insn->srcExists(i); ++i) { in mayReplace()
278 return !insn->srcExists(1) && insn->getSrc(0)->isUniform(); in isUniform()
617 for (int s = 0; srcExists(s); ++s) in ~Instruction()
687 for (k = 0; srcExists(k); ++k) { in moveSources()
771 for (int s = 0; srcExists(s); ++s) { in clone()
812 for (i = s--; srcExists(i); ++i) in srcCount()
817 for (n = 0, i = 0; this->srcExists(i); ++i, mask >>= 1) in srcCount()
825 assert(this->srcExists(s)); in setIndirect()
832 while (p > 0 && !srcExists(p - 1)) in setIndirect()
856 while (predSrc > 0 && !srcExists(predSrc - 1)) in setPredicate()
[all …]
Dnv50_ir_emit_nv50.cpp296 if (i->srcExists(s)) { in setAReg16()
505 assert(!i->srcExists(1) || !i->getIndirect(1, 0)); in emitForm_MAD()
506 assert(!i->srcExists(2) || !i->getIndirect(2, 0)); in emitForm_MAD()
508 } else if (i->srcExists(1) && i->getIndirect(1, 0)) { in emitForm_MAD()
509 assert(!i->srcExists(2) || !i->getIndirect(2, 0)); in emitForm_MAD()
565 assert(i->defExists(0) && i->srcExists(0)); in emitForm_IMM()
844 if (!i->srcExists(1) || i->predSrc == 1) in emitQUADOP()
865 assert(!i->srcExists(1)); in emitPFETCH()
867 if (i->srcExists(1)) { in emitPFETCH()
1119 if (s && i->srcExists(0)) in emitAADD()
[all …]
Dnv50_ir_emit_gk110.cpp189 int r = insn->srcExists(s) ? SDATA(insn->src(s)).id : GK110_GPR_ZERO; in srcId()
376 for (int s = 0; s < 3 && i->srcExists(s); ++s) { in emitForm_L()
421 const bool imm = i->srcExists(1) && i->src(1).getFile() == FILE_IMMEDIATE; in emitForm_21()
424 if (i->srcExists(2) && i->src(2).getFile() == FILE_MEMORY_CONST) in emitForm_21()
439 for (int s = 0; s < 3 && i->srcExists(s); ++s) { in emitForm_21()
853 if (i->predSrc != 2 && i->srcExists(2)) { in emitLogicOp()
1216 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1324 if (i->srcExists(src1) && i->src(src1).getFile() == FILE_IMMEDIATE) { in emitTEX()
1376 srcId((i->srcExists(1) && i->predSrc != 1) ? i->src(1) : i->src(0), 23); in emitQUADOP()
1429 if (i->srcExists(2) && (i->predSrc != 2)) { in emitBAR()
[all …]
Dnv50_ir_ra.cpp501 for (int s = cal->indirect ? 1 : 0; cal->srcExists(s); ++s) { in visit()
602 for (s = 0; i->srcExists(s); ++s) in buildLiveSets()
658 for (int s = 0; i->srcExists(s); ++s) { in visit()
682 for (int s = 0; i->srcExists(s); ++s) { in visit()
848 return insn->srcExists(1) && insn->src(1).getFile() == FILE_IMMEDIATE; in isShortRegOp()
1037 for (int c = 0; split ? insn->defExists(c) : insn->srcExists(c); ++c) { in makeCompound()
1067 for (c = 0; insn->srcExists(c); ++c) in doCoalesce()
1078 for (c = 0; insn->srcExists(c); ++c) in doCoalesce()
1082 if (insn->srcExists(1)) in doCoalesce()
1121 for (c = 0; insn->srcExists(c) && c != insn->predSrc; ++c) in doCoalesce()
[all …]
Dnv50_ir_peephole.cpp257 if (i->srcExists(1)) in visit()
260 for (int s = 0; i->srcExists(s); ++s) { in visit()
297 for (int s = 0; i->srcExists(s); ++s) { in visit()
386 if (i->srcExists(2) && in visit()
392 if (i->srcExists(1) && in visit()
396 if (i->srcExists(0) && i->src(0).getImmediate(src0)) in visit()
399 if (i->srcExists(1) && i->src(1).getImmediate(src1)) in visit()
401 if (i->srcExists(2) && i->src(2).getImmediate(src2)) in visit()
1208 if (si->srcExists(2)) in opnd()
1384 if (i->srcExists(1)) in opnd()
[all …]
Dnv50_ir_emit_nvc0.cpp182 int r = insn->srcExists(s) ? SDATA(insn->src(s)).id : 63; in srcId()
387 if (i->srcExists(2) && i->getSrc(2)->reg.file == FILE_MEMORY_CONST) in emitForm_A()
390 for (int s = 0; s < 3 && i->srcExists(s); ++s) { in emitForm_A()
466 for (int s = 1; s < 3 && i->srcExists(s); ++s) { in emitForm_S()
866 if (i->predSrc != 2 && i->srcExists(2)) { in emitLogicOp()
1282 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1346 if (i->srcExists(src1) && i->src(src1).getFile() == FILE_IMMEDIATE) { in emitTEX()
1408 srcId((i->srcExists(1) && i->predSrc != 1) ? i->src(1) : i->src(0), 26); in emitQUADOP()
1425 if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) in emitFlow()
1471 assert(i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST); in emitFlow()
[all …]
Dnv50_ir_lowering_gm107.cpp49 if (i->src(0).getFile() == FILE_GPR && !i->srcExists(1)) in handlePFETCH()
55 if (i->srcExists(1)) in handlePFETCH()
Dnv50_ir_emit_gm107.cpp537 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitBRA()
562 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitCAL()
587 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPCNT()
609 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPBK()
631 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPRET()
653 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitSSY()
2562 if (insn->srcExists(src1)) in emitTEXs()
2840 if (insn->srcExists(2) && (insn->predSrc != 2)) { in emitBAR()
3636 for (int s = 0; insn->srcExists(s); s++) { in setReuseFlag()
3644 if (!next->srcExists(s) || next->src(s).getFile() != FILE_GPR) in setReuseFlag()
[all …]
Dnv50_ir_lowering_nv50.cpp248 for (int s = 0; i->srcExists(s); ++s) { in replaceZero()
374 for (int s = 0; di->srcExists(s); ++s) in propagateWriteToOutput()
421 if (i->srcExists(1) && i->src(1).getFile() == FILE_IMMEDIATE) { in handleAddrDef()
429 for (int s = 0; i->srcExists(s); ++s) { in handleAddrDef()
471 for (int s = 2; add->srcExists(s); ++s) in handleMUL()
800 for (; i->srcExists(c + 1); ++c) in handleTEX()
1344 if (i->srcExists(1)) { in handlePFETCH()
Dnv50_ir_target_nv50.cpp366 for (int z = 0; i->srcExists(z); ++z) in insnCanLoad()
493 for (int s = 0; insn->srcExists(s); ++s) in mayPredicate()
Dnv50_ir_ssa.cpp246 for (int s = 0; i->srcExists(s); ++s) in buildLiveSetsPreSSA()
479 for (s = 0; stmt->srcExists(s); ++s) { in search()
Dnv50_ir_lowering_nvc0.cpp290 for (int s = 0; insn->srcExists(s); ++s) { in findFirstUsesBB()
521 for (int s = 0; i->srcExists(s); ++s) { in replaceZero()
868 if (i->srcExists(s)) // move potential predicate out of the way in handleTEX()
870 if (i->tex.useOffsets == 4 && i->srcExists(s + 1)) in handleTEX()
932 if (i->srcExists(s)) // move potential predicate out of the way in handleTEX()
1053 while (txd->srcExists(arg)) in handleTXD()
1074 if (txd->srcExists(s)) // move potential predicate out of the way in handleTXD()
2423 if (i->srcExists(1)) { in handleRDSV()
Dnv50_ir_inlines.h330 for (int i = 0; obj->srcExists(i); ++i) in cloneForward()
Dnv50_ir_print.cpp660 for (s = 0; srcExists(s); ++s) { in print()
Dnv50_ir_target_nvc0.cpp334 for (int k = 0; i->srcExists(k); ++k) { in insnCanLoad()
Dnv50_ir.h798 inline bool srcExists(unsigned s) const in srcExists() function