Home
last modified time | relevance | path

Searched refs:mkImm (Results 1 – 10 of 10) sorted by relevance

/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_lowering_gv100.cpp38 i->sType, bld.mkImm(0), i->getSrc(2))->ftz = i->ftz; in handleCMP()
57 src[s][1] = bld.mkImm(0); in handleIADD64()
78 bld.mkMov(src2s[0], bld.mkImm(0)); in handleIMAD_HIGH()
82 src2 = bld.mkImm(0); in handleIMAD_HIGH()
114 bld.mkImm(0)); in handleIMUL()
139 bld.mkImm(0))->subOp = subOp; in handleLOP2()
146 bld.mkOp3(OP_LOP3_LUT, TYPE_U32, i->getDef(0), bld.mkImm(0), i->getSrc(0), in handleNOT()
147 bld.mkImm(0))->subOp = (uint8_t)~NV50_IR_SUBOP_LOP3_LUT_SRC1; in handleNOT()
181 met = bld.mkImm(0x3f800000); in handleSET()
183 met = bld.mkImm(0xffffffff); in handleSET()
[all …]
Dnv50_ir_lowering_gm107.cpp106 Value *quad = bld.mkImm(SHFL_BOUND_QUAD); in handleManualTXD()
122 Value *lane = bld.mkImm(l); in handleManualTXD()
181 bld.mkOp3(OP_SHFL, TYPE_F32, tex->getDef(c), tex->getDef(c), bld.mkImm(0), quad); in handleManualTXD()
225 bld.mkImm(xid), bld.mkImm(SHFL_BOUND_QUAD)); in handleDFDX()
242 bld.mkOp3(OP_PERMT, TYPE_U32, tmp1, tmp0, bld.mkImm(0x4442), bld.mkImm(0)); in handlePFETCH()
243 bld.mkOp3(OP_PERMT, TYPE_U32, tmp0, tmp0, bld.mkImm(0x4440), bld.mkImm(0)); in handlePFETCH()
Dnv50_ir_lowering_nvc0.cpp245 bld.mkOp2(OP_ADD, TYPE_U32, (x32_minus_shift = bld.getSSA()), shift, bld.mkImm(0x20)) in handleShift()
248 TYPE_U32, shift, bld.mkImm(32)); in handleShift()
318 i->setSrc(1, bld.mkImm(0x2000)); in handleBREV()
922 ptr = bld.mkOp2v(OP_SHL, TYPE_U32, bld.getSSA(), ptr, bld.mkImm(2)); in loadTexHandle()
1017 bld.mkOp3(OP_INSBF, TYPE_U32, hnd, rHnd, bld.mkImm(0x1400), sHnd); in handleTEX()
1075 ticRel, bld.mkImm(i->tex.r)); in handleTEX()
1081 tscRel, bld.mkImm(i->tex.s)); in handleTEX()
1102 bld.mkOp3(OP_INSBF, TYPE_U32, src, ticRel, bld.mkImm(0x0917), src); in handleTEX()
1104 bld.mkOp3(OP_INSBF, TYPE_U32, src, tscRel, bld.mkImm(0x0710), src); in handleTEX()
1141 bld.mkImm(0x800 | ((n * 16 + c * 8) % 32)), in handleTEX()
[all …]
Dnv50_ir_build_util.h92 ImmediateValue *mkImm(float);
93 ImmediateValue *mkImm(double);
94 ImmediateValue *mkImm(uint32_t);
95 ImmediateValue *mkImm(uint64_t);
97 ImmediateValue *mkImm(int i) { return mkImm((uint32_t)i); } in mkImm() function
Dnv50_ir_build_util.cpp357 BuildUtil::mkImm(uint32_t u) in mkImm() function in nv50_ir::BuildUtil
373 BuildUtil::mkImm(uint64_t u) in mkImm() function in nv50_ir::BuildUtil
385 BuildUtil::mkImm(float f) in mkImm() function in nv50_ir::BuildUtil
392 return mkImm(u.u32); in mkImm()
396 BuildUtil::mkImm(double d) in mkImm() function in nv50_ir::BuildUtil
404 return mkOp1v(OP_MOV, TYPE_F32, dst ? dst : getScratch(), mkImm(f)); in loadImm()
410 return mkOp1v(OP_MOV, TYPE_F64, dst ? dst : getScratch(8), mkImm(d)); in loadImm()
416 return mkOp1v(OP_MOV, TYPE_U32, dst ? dst : getScratch(), mkImm(u)); in loadImm()
422 return mkOp1v(OP_MOV, TYPE_U64, dst ? dst : getScratch(8), mkImm(u)); in loadImm()
Dnv50_ir_lowering_nv50.cpp94 bld->mkImm(src1.reg.data.u32 & 0xffff)); in expandIntegerMUL()
97 src1imm ? bld->mkImm(src1.reg.data.u32 >> 16) : b[1]); in expandIntegerMUL()
105 i[7] = bld->mkOp2(OP_SHL, fTy, t[2], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
122 i[8] = bld->mkOp2(OP_SHR, fTy, r[0], t[1], bld->mkImm(halfSize * 8)); in expandIntegerMUL()
448 arl = bld.mkOp2(OP_SHL, TYPE_U32, i->getDef(0), bld.getSSA(), bld.mkImm(0)); in handleAddrDef()
515 bf = bld.mkOp2v(OP_ADD, TYPE_U32, bld.getSSA(), bf, bld.mkImm(-2)); in handleDIV()
710 bld.mkOp2v(OP_SHL, TYPE_U32, t, ms, bld.mkImm(3)), in loadMsInfo()
712 bld.mkImm(3)); in loadMsInfo()
1172 bld.mkOp2(OP_OR, TYPE_U32, def, def, bld.mkImm(0x00000001)); in handleRDSV()
1182 bld.mkMov(def, bld.mkImm(1)); in handleRDSV()
[all …]
Dnv50_ir_lowering_helper.cpp70 bld.mkOp2(OP_SUB, dTy, neg, bld.mkImm((uint64_t)0), insn->getSrc(0)); in handleABS()
186 insn->setSrc(0, bld.mkImm((uint64_t)0)); in handleNEG()
Dnv50_ir_peephole.cpp1004 bld.mkOp2(OP_SHL, ty, res, a, bld.mkImm(shl)); in createMul()
1023 Instruction *insn = bld.mkOp3(OP_SHLADD, TYPE_U32, res, a, bld.mkImm(shl), a); in createMul()
1038 a, bld.mkImm((uint32_t)b), c ? c : bld.mkImm(0)); in createMul()
1039 bld.mkOp3(OP_XMAD, TYPE_U32, def, a, bld.mkImm((uint32_t)b), tmp)->subOp = in createMul()
1070 newi = bld.mkMov(def, bld.mkImm((uint32_t)(val & mask)), TYPE_U32); in opnd()
1087 TYPE_S32, i->getSrc(t), bld.mkImm(0)); in opnd()
1222 i->setSrc(1, bld.mkImm(util_logbase2(imm0.reg.data.u32))); in opnd()
1245 bld.mkOp2(OP_SHR, TYPE_U32, tA, tB, bld.mkImm(r)); in opnd()
1251 bld.mkOp2(OP_SHR, TYPE_U32, i->getDef(0), tB, bld.mkImm(s)); in opnd()
1276 bld.mkOp2(OP_SHR, TYPE_S32, tB, tA, bld.mkImm(l - 1)); in opnd()
[all …]
Dnv50_ir_from_nir.cpp205 zero = mkImm((uint32_t)0); in Converter()
1803 mkOp3v(OP_INSBF, TYPE_U32, newDefs[0], offs[1], mkImm(0x1010), offs[0]); in visit()
1918 mkOp1(OP_VOTE, TYPE_U32, tmp, mkImm(1))->subOp = NV50_IR_SUBOP_VOTE_ANY; in visit()
1925 mkOp3(OP_SHFL, dType, newDefs[i], getSrc(&insn->src[0], i), tmp, mkImm(0x1f)) in visit()
1939 mkImm(baseVertex), indirectVertex); in visit()
1974 mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; in visit()
1981 mkOp1(getOperation(op), TYPE_U32, NULL, mkImm(idx))->fixed = 1; in visit()
2307 Instruction *bar = mkOp2(OP_BAR, TYPE_U32, NULL, mkImm(0), mkImm(0)); in visit()
2623 mkOp3(OP_INSBF, TYPE_U32, newDefs[0], tmpH, mkImm(0x1010), tmpL); in visit()
2704 mkOp3(OP_INSBF, TYPE_U32, temp, getSrc(&insn->src[3]), mkImm(0x808), getSrc(&insn->src[2])); in visit()
Dnv50_ir_from_tgsi.cpp1859 mkImm(index), rel); in getVertexBase()
1980 return mkOp2v(OP_SHL, TYPE_U32, getSSA(4, FILE_ADDRESS), index, mkImm(4)); in shiftAddress()
3068 offs[1], mkImm(0x1010), offs[0]); in handleINTERP()
3401 mkOp1(OP_VOTE, TYPE_U32, val0, mkImm(1))->subOp = NV50_IR_SUBOP_VOTE_ANY; in handleInstruction()
3410 geni = mkOp3(op, dstTy, dst0[c], fetchSrc(0, c), src1, mkImm(0x1f)); in handleInstruction()
3515 mkOp3(OP_INSBF, TYPE_U32, dst0[c], val1, mkImm(0x1010), val0); in handleInstruction()
3543 src0 = mkImm(stream); in handleInstruction()
3727 geni = mkOp2(OP_BAR, TYPE_U32, NULL, mkImm(0), mkImm(0)); in handleInstruction()
3800 mkOp3(OP_INSBF, TYPE_U32, val0, src2, mkImm(0x808), src1); in handleInstruction()
3812 mkOp3(OP_INSBF, TYPE_U32, val0, src3, mkImm(0x808), src2); in handleInstruction()
[all …]