Home
last modified time | relevance | path

Searched refs:getDef (Results 1 – 25 of 26) sorted by relevance

12

/third_party/mesa3d/src/nouveau/codegen/
Dnv50_ir_lowering_gv100.cpp39 bld.mkOp3(OP_SELP, TYPE_U32, i->getDef(0), i->getSrc(0), i->getSrc(1), pred); in handleCMP()
65 bld.mkOp2(OP_MERGE, i->dType, i->getDef(0), def[0], def[1]); in handleIADD64()
80 src2 = bld.mkOp2(OP_MERGE, TYPE_U64, bld.getSSA(8), src2s[0], src2s[1])->getDef(0); in handleIMAD_HIGH()
103 bld.mkOp3(OP_SELP, i->dType, i->getDef(0), i->getSrc(0), i->getSrc(1), pred); in handleIMNMX()
113 bld.mkOp3(OP_MAD, i->dType, i->getDef(0), i->getSrc(0), i->getSrc(1), in handleIMUL()
138 bld.mkOp3(OP_LOP3_LUT, TYPE_U32, i->getDef(0), i->getSrc(0), i->getSrc(1), in handleLOP2()
146 bld.mkOp3(OP_LOP3_LUT, TYPE_U32, i->getDef(0), bld.mkImm(0), i->getSrc(0), in handleNOT()
161 bld.mkBMov(i->getDef(0), bld.mkTSVal(TS_MACTIVE)); in handleQUADON()
162 Instruction *b = bld.mkBMov(bld.mkTSVal(TS_PQUAD_MACTIVE), i->getDef(0)); in handleQUADON()
197 i = bld.mkOp3(OP_SELP, TYPE_U32, i->getDef(0), bld.mkImm(0), met, pred); in handleSET()
[all …]
Dnv50_ir_lowering_nvc0.cpp76 bld.mkMovFromReg(i->getDef(0), i->op == OP_DIV ? 0 : 1); in handleDIV()
93 def[0] = bld.mkMovToReg(0, src[0])->getDef(0); in handleRCPRSQLib()
94 def[1] = bld.mkMovToReg(1, src[1])->getDef(0); in handleRCPRSQLib()
108 bld.mkOp2(OP_MERGE, TYPE_U64, i->getDef(0), def[0], def[1]); in handleRCPRSQLib()
128 Value *src[2], *dst[2], *def = i->getDef(0); in handleRCPRSQ()
208 Value *dst64 = lo->getDef(0); in handleShift()
587 prev->setSrc(prev->srcCount(), useVec[i].tex->getDef(0)); in insertTextureBarriers()
593 bar->setSrc(bar->srcCount(), useVec[i].tex->getDef(0)); in insertTextureBarriers()
840 if (!i->getDef(0)->refCount()) in visit()
1277 bld.mkQuadop(0x00, tex->getDef(c), 0, tex->getDef(c), zero); in handleManualTXD()
[all …]
Dnv50_ir_lowering_gm107.cpp200 bld.mkOp3(OP_SHFL, TYPE_F32, tex->getDef(c), tex->getDef(c), bld.mkImm(0), quad); in handleManualTXD()
207 mov = bld.mkMov(def[c][l], tex->getDef(c)); in handleManualTXD()
214 Instruction *u = bld.mkOp(OP_UNION, TYPE_U32, i->getDef(c)); in handleManualTXD()
250 insn->setSrc(0, shfl->getDef(0)); in handleDFDX()
311 bld.mkOp2(OP_DIV, TYPE_U32, suq->getDef(d), suq->getDef(d), in handleSUQ()
319 Value *dst = suq->getDef(d); in handleSUQ()
340 bld.mkOp2(OP_SHR, TYPE_U32, suq->getDef(0), suq->getDef(0), in handleSUQ()
344 bld.mkOp2(OP_SHR, TYPE_U32, suq->getDef(d), suq->getDef(d), in handleSUQ()
Dnv50_ir_lowering_nv50.cpp198 bld->mkOp2(OP_UNION, mul->sType, mul->getDef(0), rr[5], rr[6]); in expandIntegerMUL()
200 bld->mkMov(mul->getDef(0), r[4]); in expandIntegerMUL()
203 bld->mkMov(mul->getDef(0), t[3]); in expandIntegerMUL()
438 i->getDef(0)->reg.size = 2; // $aX are only 16 bit in handleAddrDef()
471 arl = bld.mkOp2(OP_SHL, TYPE_U32, i->getDef(0), bld.getSSA(), bld.mkImm(0)); in handleAddrDef()
480 Value *def = mul->getDef(0); in handleMUL()
489 Value *res = cloneShallow(func, mul->getDef(0)); in handleMUL()
492 add->setSrc(0, mul->getDef(0)); in handleMUL()
609 if (insn->defExists(0) && insn->getDef(0)->reg.file == FILE_ADDRESS) in visit()
710 tid = bld.mkMov(bld.getScratch(), arg, TYPE_U32)->getDef(0); in visit()
[all …]
Dnv50_ir_peephole.cpp53 if (!getDef(0)->equals(getSrc(0))) in isNop()
56 if (!getDef(0)->equals(getSrc(1))) in isNop()
74 if (getDef(d)->refCount() || getDef(d)->reg.data.id >= 0) in isDead()
110 if (mov->getDef(0)->reg.data.id < 0 && si && si->op != OP_PHI) { in visit()
289 if (ld->getDef(0)->refCount() == 0) in visit()
764 i->setSrc(1, bld.mkMov(bld.getSSA(type), i->getSrc(0), type)->getDef(0)); in expr()
932 mul2->def(0).replace(mul1->getDef(0), false); in tryCollapseChainedMULs()
939 mul2->def(0).replace(mul1->getDef(0), false); in tryCollapseChainedMULs()
947 if (mul2->getDef(0)->refCount() == 1 && !mul2->saturate) { in tryCollapseChainedMULs()
951 insn = (*mul2->getDef(0)->uses.begin())->getInsn(); in tryCollapseChainedMULs()
[all …]
Dnv50_ir_ra.cpp505 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()
[all …]
Dnv50_ir_build_util.cpp190 insn->getDef(0)->reg.data.id = id; in mkMovToReg()
294 val = mkMov(getSSA(halfSize * 2), val, fTy)->getDef(0); in mkSplit()
625 i->setDef(0, cloneShallow(fn, i->getDef(0))); in split64BitOpPostRA()
626 i->getDef(0)->reg.size = 4; in split64BitOpPostRA()
631 hi->getDef(0)->reg.data.id++; in split64BitOpPostRA()
Dnv50_ir.cpp773 i->setDef(d, pol.get(getDef(d))); in clone()
798 if (getDef(i)->reg.file != getDef(d)->reg.file) in defCount()
872 if (getDef(d)->inFile(FILE_PREDICATE) || getDef(d)->inFile(FILE_FLAGS)) in writesPredicate()
882 if (getDef(d)->interfers(i->getSrc(s))) in canCommuteDefSrc()
892 if (getDef(d)->interfers(i->getDef(c))) in canCommuteDefDef()
Dnv50_ir_emit_nvc0.cpp1315 if (i->getDef(0)->interfers(i->next->getSrc(0))) in isNextIndependentTex()
1317 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1597 rDef = i->getDef(0); in emitBAR()
1599 pDef = i->getDef(0); in emitBAR()
1603 rDef = i->getDef(1); in emitBAR()
1605 pDef = i->getDef(1); in emitBAR()
1662 code[0] |= ((i->getDef(0)->reg.size / 4) - 1) << 5; in emitVFETCH()
2295 code[1] |= i->getDef(0)->reg.data.id << 23; in emitSUCalc()
2299 code[1] |= i->getDef(1)->reg.data.id << 23; in emitSUCalc()
3365 recordWr(insn->getDef(d), ready); in commitInsn()
Dnv50_ir_ssa.cpp250 assigned.set(i->getDef(d)->id); in buildLiveSetsPreSSA()
282 bb->defSet.set(i->getDef(d)->id); in buildDefSetsPreSSA()
Dnv50_ir_emit_gv100.cpp361 emitField(84, 1, insn->getDef(0)->reg.data.ts == TS_PQUAD_MACTIVE ? 1 : 0); in emitMOV()
709 emitPRED (81, insn->flagsDef >= 0 ? insn->getDef(insn->flagsDef) : NULL); in emitIADD3()
843 emitField(74, 2, (insn->getDef(0)->reg.size / 4) - 1); in emitALD()
1575 emitField(74, 2, (insn->getDef(0)->reg.size / 4) - 1); in emitAL2P()
Dnv50_ir_emit_gk110.cpp497 assert(i->getDef(0)->reg.data.id == i->getSrc(2)->reg.data.id); in emitFMAD()
1269 if (i->getDef(0)->interfers(i->next->getSrc(0))) in isNextIndependentTex()
1271 return !i->next->srcExists(1) || !i->getDef(0)->interfers(i->next->getSrc(1)); in isNextIndependentTex()
1886 code[1] |= i->getDef(1)->reg.data.id << pos; in emitSUCalc()
1890 code[1] |= i->getDef(1)->reg.data.id << pos; in emitSUCalc()
Dnv50_ir_emit_gm107.cpp1396 assert(insn->getDef(0)->reg.data.id == insn->getSrc(2)->reg.data.id); in emitFFMA()
2529 emitField(0x2f, 2, (insn->getDef(0)->reg.size / 4) - 1); in emitALD()
2560 emitField(0x2f, 2, (insn->getDef(0)->reg.size / 4) - 1); in emitAL2P()
3969 recordWr(insn->getDef(d), cycle, ready); in commitInsn()
4120 const Value* def = insn->getDef(d); in doesInsnWriteTo()
4167 if (doesInsnWriteTo(bari, insn->getDef(d))) in findFirstUse()
Dnv50_ir_emit_nv50.cpp343 setDst(i->getDef(d)); in setDst()
758 DataFile df = i->getDef(0)->reg.file; in emitMOV()
1978 else if (insn->getDef(0)->reg.file == FILE_ADDRESS) in emitInstruction()
Dnv50_ir_from_tgsi.cpp1854 return insn->getDef(0); in interpolate()
2068 return ld->getDef(0); in fetchSrc()
2073 return ld->getDef(0); in fetchSrc()
2085 return ld->getDef(0); in fetchSrc()
2294 proj = insn->getDef(0); in loadProjTexCoords()
2308 dst[c] = insn->getDef(0); in loadProjTexCoords()
3289 val0 = mkOp1(op, TYPE_F32, getScratch(), fetchSrc(0, 0))->getDef(0); in handleInstruction()
Dnv50_ir_print.cpp742 pos += getDef(d)->print(&buf[pos], size - pos); in print()
Dnv50_ir.h880 inline Value *getDef(int d) const { return defs[d].get(); } in getDef() function
Dnv50_ir_from_nir.cpp1274 split[0] = mkMov(getSSA(), split[0], ty)->getDef(0); in storeTo()
1275 split[1] = mkMov(getSSA(), split[1], ty)->getDef(0); in storeTo()
1284 src = mkMov(getSSA(size), src, ty)->getDef(0); in storeTo()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DSetTheory.cpp214 cast<DefInit>(Expr->getOperator())->getDef()->getRecords(); in apply()
225 Record *Rec = Records.getDef(OS.str()); in apply()
285 if (const RecVec *Result = expand(Def->getDef())) in evaluate()
287 Elts.insert(Def->getDef()); in evaluate()
302 auto I = Operators.find(OpInit->getDef()->getName()); in evaluate()
DRecord.cpp642 return DI->getDef(); in getElementAsRecord()
738 D = CurRec->getRecords().getDef(Name->getValue()); in Fold()
909 if (LOp && ROp && LOp->getDef() != ROp->getDef()) { in Fold()
1180 Record *Val = RHSd->getDef(); in Fold()
1182 Val = MHSd->getDef(); in Fold()
1769 Record *Def = DI->getDef(); in Fold()
1971 return DefI->getDef(); in getOperatorAsDef()
2250 Defs.push_back(DI->getDef()); in getValueAsListOfDefs()
2311 return DI->getDef(); in getValueAsDef()
2323 return DI->getDef(); in getValueAsOptionalDef()
DJSONBackend.cpp81 obj["def"] = Def->getDef()->getName(); in translateInit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryDependenceAnalysis.cpp219 return MemDepResult::getDef(Inst); in getCallDependencyFrom()
429 return MemDepResult::getDef(ClosestDependency); in getInvariantGroupPointerDependency()
436 MemDepResult::getDef(ClosestDependency), nullptr)); in getInvariantGroupPointerDependency()
540 return MemDepResult::getDef(II); in getSimplePointerDependencyFrom()
587 return MemDepResult::getDef(Inst); in getSimplePointerDependencyFrom()
614 return MemDepResult::getDef(Inst); in getSimplePointerDependencyFrom()
655 return MemDepResult::getDef(Inst); in getSimplePointerDependencyFrom()
670 return MemDepResult::getDef(Inst); in getSimplePointerDependencyFrom()
DIVDescriptors.cpp952 auto getDef = [&](const Value *Val) -> Value * { in getCastsForInductionPHI() local
998 Val = getDef(Val); in getCastsForInductionPHI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DMemoryDependenceAnalysis.h131 static MemDepResult getDef(Instruction *Inst) { in getDef() function
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/
DRecord.h1193 Record *getDef() const { return Def; } in getDef() function
1712 Record *getDef(StringRef Name) const { in getDef() function
1718 if (Record *R = getDef(Name)) in getGlobal()
1741 assert(!getDef(Name)); in addExtraGlobal()

12