Lines Matching refs:OperandType

154     template<typename OperandType>
155 OperandType
158 assert(sizeof(OperandType) <= sizeof(uint32_t));
160 // if OperandType is smaller than 32-bit, we truncate the value
161 OperandType ret;
164 switch (sizeof(OperandType)) {
176 vgprIdx = w->remap(regIdx,sizeof(OperandType), 1);
178 read<OperandType>(vgprIdx, lane);
181 panic("Bad OperandType\n");
185 return (OperandType)ret;
195 template<typename OperandType>
196 void set(Wavefront *w, int lane, OperandType &val);
200 template<typename OperandType>
202 SRegOperand::set(Wavefront *w, int lane, OperandType &val)
207 assert(sizeof(OperandType) == sizeof(uint32_t));
209 uint32_t vgprIdx = w->remap(regIdx, sizeof(OperandType), 1);
210 w->computeUnit->vrf[w->simdId]->write<OperandType>(vgprIdx,val,lane);
259 template<typename OperandType>
260 OperandType
263 assert(sizeof(OperandType) <= sizeof(uint64_t));
266 uint32_t vgprIdx = w->remap(regIdx, sizeof(OperandType), 1);
268 return w->computeUnit->vrf[w->simdId]->read<OperandType>(vgprIdx,lane);
271 template<typename OperandType>
273 set(Wavefront *w, int lane, OperandType &val)
279 assert(sizeof(OperandType) <= sizeof(uint64_t));
282 uint32_t vgprIdx = w->remap(regIdx, sizeof(OperandType), 1);
283 w->computeUnit->vrf[w->simdId]->write<OperandType>(vgprIdx,val,lane);
323 template<typename OperandType>
324 OperandType
329 return w->condRegState->read<OperandType>((int)regIdx, lane);
332 template<typename OperandType>
334 set(Wavefront *w, int lane, OperandType &val)
341 w->condRegState->write<OperandType>(regIdx,lane,val);
359 template<typename OperandType>
360 OperandType
363 assert(sizeof(OperandType) <= sizeof(T));
369 return (OperandType)w->computeUnit->wfSize();
373 return *(OperandType*)&bits;
380 template<typename OperandType>
381 OperandType
384 return get<OperandType>(w);
472 template<typename OperandType>
473 OperandType
476 return is_imm ? imm_op.template get<OperandType>(w) :
477 reg_op.template get<OperandType>(w, lane);
769 template<typename OperandType>
770 OperandType
773 return w->readCallArgMem<OperandType>(lane, getSrcOperand(arg_idx));
776 template<typename OperandType>
778 set(Wavefront *w, int lane, OperandType val)
780 w->writeCallArgMem<OperandType>(lane, getSrcOperand(0), val);