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()
612 for (int s = 0; srcExists(s); ++s) in ~Instruction()
682 for (k = 0; srcExists(k); ++k) { in moveSources()
766 for (int s = 0; srcExists(s); ++s) { in clone()
807 for (i = s--; srcExists(i); ++i) in srcCount()
812 for (n = 0, i = 0; this->srcExists(i); ++i, mask >>= 1) in srcCount()
820 assert(this->srcExists(s)); in setIndirect()
827 while (p > 0 && !srcExists(p - 1)) in setIndirect()
851 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.cpp192 int r = insn->srcExists(s) ? SDATA(insn->src(s)).id : GK110_GPR_ZERO; in srcId()
379 for (int s = 0; s < sCount && i->srcExists(s); ++s) { in emitForm_L()
424 const bool imm = i->srcExists(1) && i->src(1).getFile() == FILE_IMMEDIATE; in emitForm_21()
427 if (i->srcExists(2) && i->src(2).getFile() == FILE_MEMORY_CONST) in emitForm_21()
442 for (int s = 0; s < 3 && i->srcExists(s); ++s) { in emitForm_21()
872 if (i->predSrc != 2 && i->srcExists(2)) { in emitLogicOp()
1260 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1368 if (i->srcExists(src1) && i->src(src1).getFile() == FILE_IMMEDIATE) { in emitTEX()
1420 srcId((i->srcExists(1) && i->predSrc != 1) ? i->src(1) : i->src(0), 23); in emitQUADOP()
1473 if (i->srcExists(2) && (i->predSrc != 2)) { in emitBAR()
[all …]
Dnv50_ir_ra.cpp499 for (int s = cal->indirect ? 1 : 0; cal->srcExists(s); ++s) { in visit()
600 for (s = 0; i->srcExists(s); ++s) in buildLiveSets()
656 for (int s = 0; i->srcExists(s); ++s) { in visit()
680 for (int s = 0; i->srcExists(s); ++s) { in visit()
846 return insn->srcExists(1) && insn->src(1).getFile() == FILE_IMMEDIATE; in isShortRegOp()
1035 for (int c = 0; split ? insn->defExists(c) : insn->srcExists(c); ++c) { in makeCompound()
1065 for (c = 0; insn->srcExists(c); ++c) in doCoalesce()
1076 for (c = 0; insn->srcExists(c); ++c) in doCoalesce()
1080 if (insn->srcExists(1)) in doCoalesce()
1119 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()
1258 if (si->srcExists(2)) in opnd()
1434 if (i->srcExists(1)) in opnd()
[all …]
Dnv50_ir_emit_nvc0.cpp185 int r = insn->srcExists(s) ? SDATA(insn->src(s)).id : 63; in srcId()
402 if (i->srcExists(2) && i->getSrc(2)->reg.file == FILE_MEMORY_CONST) in emitForm_A()
405 for (int s = 0; s < 3 && i->srcExists(s); ++s) { in emitForm_A()
481 for (int s = 1; s < 3 && i->srcExists(s); ++s) { in emitForm_S()
881 if (i->predSrc != 2 && i->srcExists(2)) { in emitLogicOp()
1304 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1368 if (i->srcExists(src1) && i->src(src1).getFile() == FILE_IMMEDIATE) { in emitTEX()
1430 srcId((i->srcExists(1) && i->predSrc != 1) ? i->src(1) : i->src(0), 26); in emitQUADOP()
1447 if (i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST) in emitFlow()
1493 assert(i->srcExists(0) && i->src(0).getFile() == FILE_MEMORY_CONST); in emitFlow()
[all …]
Dnv50_ir_lowering_gm107.cpp51 if (i->src(0).getFile() == FILE_GPR && !i->srcExists(1)) in handlePFETCH()
57 if (i->srcExists(1)) in handlePFETCH()
Dnv50_ir_emit_gm107.cpp545 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitBRA()
570 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitCAL()
595 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPCNT()
617 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPBK()
639 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitPRET()
661 if (!insn->srcExists(0) || insn->src(0).getFile() != FILE_MEMORY_CONST) { in emitSSY()
2645 if (insn->srcExists(src1)) in emitTEXs()
2923 if (insn->srcExists(2) && (insn->predSrc != 2)) { in emitBAR()
3742 for (int s = 0; insn->srcExists(s); s++) { in setReuseFlag()
3750 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.cpp52 for (int s = 0; i->srcExists(s); ++s) { in handleDIV()
427 for (int s = 0; insn->srcExists(s); ++s) { in findFirstUsesBB()
658 for (int s = 0; i->srcExists(s); ++s) { in replaceZero()
1009 if (i->srcExists(s)) // move potential predicate out of the way in handleTEX()
1011 if (i->tex.useOffsets == 4 && i->srcExists(s + 1)) in handleTEX()
1075 if (i->srcExists(s)) // move potential predicate out of the way in handleTEX()
1228 while (txd->srcExists(arg)) in handleTXD()
1249 if (txd->srcExists(s)) // move potential predicate out of the way in handleTXD()
2603 if (i->srcExists(1)) { in handleRDSV()
Dnv50_ir_inlines.h330 for (int i = 0; obj->srcExists(i); ++i) in cloneForward()
Dnv50_ir_print.cpp664 for (s = 0; srcExists(s); ++s) { in print()
Dnv50_ir_target_nvc0.cpp338 for (int k = 0; i->srcExists(k); ++k) { in insnCanLoad()
Dnv50_ir.h807 inline bool srcExists(unsigned s) const in srcExists() function