Lines Matching refs:getDef
505 LValue *tmp = new_LValue(func, phi->getDef(0)->asLValue()); in visit()
551 LValue *tmp = new_LValue(func, cal->getDef(d)->asLValue()); in visit()
557 mov->setDef(0, cal->getDef(d)); in visit()
635 bb->liveSet.clr(i->getDef(d)->id); in buildLiveSets()
641 bb->liveSet.clr(i->getDef(0)->id); in buildLiveSets()
688 bb->liveSet.clr(i->getDef(0)->id); in visit()
709 bb->liveSet.clr(i->getDef(d)->id); in visit()
710 if (i->getDef(d)->reg.data.id >= 0) // add hazard for fixed regs in visit()
711 i->getDef(d)->livei.extend(i->serial, i->serial); in visit()
1097 LValue *rep = (split ? insn->getSrc(0) : insn->getDef(0))->asLValue(); in makeCompound()
1112 LValue *val = (split ? insn->getDef(c) : insn->getSrc(c))->asLValue(); in makeCompound()
1142 if (!coalesceValues(insn->getDef(0), insn->getSrc(c), false)) { in doCoalesce()
1153 coalesceValues(insn->getDef(0), insn->getSrc(c), true); in doCoalesce()
1165 coalesceValues(insn->getSrc(0), insn->getDef(c), true); in doCoalesce()
1172 if (!insn->getDef(0)->uses.empty()) in doCoalesce()
1173 i = (*insn->getDef(0)->uses.begin())->getInsn(); in doCoalesce()
1179 coalesceValues(insn->getDef(0), insn->getSrc(0), false); in doCoalesce()
1195 coalesceValues(insn->getDef(c), insn->getSrc(c), true); in doCoalesce()
1279 if (insn->getDef(d)->reg.file <= LAST_REGISTER_FILE && in buildRIG()
1280 insn->getDef(d)->rep() == insn->getDef(d)) in buildRIG()
1281 insertOrderedTail(values, getNode(insn->getDef(d)->asLValue())); in buildRIG()
1742 s->setSrc(1, st->getDef(d)); in spill()
1986 Value *v = split->getDef(d); in resolveSplitsAndMerges()
1998 unsigned int reg = regs.idToBytes(merge->getDef(0)); in resolveSplitsAndMerges()
2047 if (tex->getDef(k)->refCount()) { in textureMask()
2049 def[d++] = tex->getDef(k); in textureMask()
2101 i->setSrc(s, cst->getDef(d)); in addConstraint()
2110 i->setSrc(s, cst->getDef(d)); in addConstraint()
2146 size += insn->getDef(s)->reg.size; in condenseDefs()
2156 split->setDef(d - a, insn->getDef(d)); in condenseDefs()
2162 insn->setDef(k, insn->getDef(d)); in condenseDefs()
2522 tex->setDef(c, new_LValue(func, tex->getDef(0)->asLValue())); in texConstraintNV50()
2590 nop->setSrc(0, i->getDef(0)); in visit()
2603 nop->setSrc(0, i->getDef(0)); in visit()
2653 cst->setSrc(s, mov->getDef(0)); in insertConstraintMove()
2656 cst->getDef(0)->asLValue()->noSpill = 1; // doesn't help in insertConstraintMove()
2673 if (!cst->getDef(d)->refCount()) in insertConstraintMoves()
2681 mov->setDef(0, cst->getDef(d)); in insertConstraintMoves()