Home | History | Annotate | Download | only in MCTargetDesc

Lines Matching defs:OS

54   /// \brief Encode the instruction and write it to the OS.
55 virtual void EncodeInstruction(const MCInst &MI, raw_ostream &OS,
64 raw_ostream &OS) const;
65 void EmitSrc(const MCInst &MI, unsigned OpIdx, raw_ostream &OS) const;
67 raw_ostream &OS) const;
68 void EmitDst(const MCInst &MI, raw_ostream &OS) const;
70 raw_ostream &OS) const;
71 void EmitFCInstr(const MCInst &MI, raw_ostream &OS) const;
73 void EmitNullBytes(unsigned int byteCount, raw_ostream &OS) const;
75 void EmitByte(unsigned int byte, raw_ostream &OS) const;
77 void EmitTwoBytes(uint32_t bytes, raw_ostream &OS) const;
79 void Emit(uint32_t value, raw_ostream &OS) const;
80 void Emit(uint64_t value, raw_ostream &OS) const;
141 void R600MCCodeEmitter::EncodeInstruction(const MCInst &MI, raw_ostream &OS,
144 EmitTexInstr(MI, Fixups, OS);
146 EmitFCInstr(MI, OS);
156 EmitByte(INSTR_NATIVE, OS);
157 Emit(inst, OS);
173 EmitByte(INSTR_VTX, OS);
174 Emit(InstWord01, OS);
175 Emit(InstWord2, OS);
183 EmitByte(INSTR_EXPORT, OS);
184 Emit(Inst, OS);
189 EmitALUInstr(MI, Fixups, OS);
197 raw_ostream &OS) const {
201 EmitByte(INSTR_ALU, OS);
217 EmitByte(SrcNum, OS);
228 EmitSrcISA(MI, RegOpIdx, SelOpIdx, OS);
231 Emit(InstWord01, OS);
236 raw_ostream &OS) const {
248 EmitTwoBytes(getHWReg(reg), OS);
261 EmitTwoBytes(0, OS);
266 EmitByte(getHWRegChan(MO.getReg()), OS);
268 EmitByte(0, OS);
276 EmitByte(1, OS);
278 EmitByte(0, OS);
283 EmitByte(1, OS);
285 EmitByte(0, OS);
289 EmitByte(0, OS);
292 EmitByte(0, OS);
295 Emit(Value.i, OS);
300 unsigned SelOpIdx, raw_ostream &OS) const {
314 EmitByte(1, OS);
316 Emit(Sel, OS);
318 EmitByte(0, OS);
319 Emit((uint32_t)0, OS);
334 Emit(InlineConstant.i, OS);
339 raw_ostream &OS) const {
350 EmitByte(1, OS);
353 EmitByte(getBinaryCodeForInstr(MI, Fixups), OS);
356 EmitByte(Resource, OS);
359 EmitByte(getHWReg(MI.getOperand(1).getReg()), OS);
362 EmitByte(0, OS);
365 EmitByte(getHWReg(MI.getOperand(0).getReg()), OS);
368 EmitByte(0, OS);
371 EmitByte(0, OS); // X
372 EmitByte(1, OS); // Y
373 EmitByte(2, OS); // Z
374 EmitByte(3, OS); // W
377 EmitByte(0, OS);
402 EmitByte(coordType[i], OS);
408 EmitByte(MI.getOperand(i).getImm()<<1, OS);
410 EmitNullBytes(3, OS);
413 EmitByte(Sampler, OS);
426 EmitByte(srcSelect[i], OS);
430 void R600MCCodeEmitter::EmitFCInstr(const MCInst &MI, raw_ostream &OS) const {
433 EmitByte(INSTR_FC, OS);
439 EmitSrc(MI, 0, OS);
441 EmitNullBytes(SRC_BYTE_COUNT, OS);
472 EmitByte(instr, OS);
476 raw_ostream &OS) const {
479 EmitByte(0, OS);
483 void R600MCCodeEmitter::EmitByte(unsigned int Byte, raw_ostream &OS) const {
484 OS.write((uint8_t) Byte & 0xff);
488 raw_ostream &OS) const {
489 OS.write((uint8_t) (Bytes & 0xff));
490 OS.write((uint8_t) ((Bytes >> 8) & 0xff));
493 void R600MCCodeEmitter::Emit(uint32_t Value, raw_ostream &OS) const {
495 OS.write((uint8_t) ((Value >> (8 * i)) & 0xff));
499 void R600MCCodeEmitter::Emit(uint64_t Value, raw_ostream &OS) const {
501 EmitByte((Value >> (8 * i)) & 0xff, OS);