Reviewed-by:Vincent Lejeune<vljn at ovi.com>
----- Mail original ----- > De : Tom Stellard <t...@stellard.net> > À : Vincent Lejeune <v...@ovi.com> > Cc : "llvm-comm...@cs.uiuc.edu" <llvm-comm...@cs.uiuc.edu>; > "mesa-dev@lists.freedesktop.org" <mesa-dev@lists.freedesktop.org> > Envoyé le : Lundi 6 mai 2013 17h02 > Objet : Re: R600 Patchset: Emit true ISA > > On Sat, May 04, 2013 at 09:09:25AM -0700, Vincent Lejeune wrote: >> Hi, >> >> Thank for doing this. >> Patches 1 2 and 3 have my rb. >> For patch 4: >> > > Hi Vincent, > > Attached is an updated version of patch 4. > > -Tom > >> >@@ -125,9 +106,7 @@ MCCodeEmitter *llvm::createR600MCCodeEmitter(const > MCInstrInfo &MCII, >> > >> > void R600MCCodeEmitter::EncodeInstruction(const MCInst &MI, > raw_ostream &OS, >> > SmallVectorImpl<MCFixup> > &Fixups) const { >> >- if (isFCOp(MI.getOpcode())){ >> >- EmitFCInstr(MI, OS); >> >- } else if (MI.getOpcode() == AMDGPU::RETURN || >> >+ if (MI.getOpcode() == AMDGPU::RETURN || >> > MI.getOpcode() == AMDGPU::FETCH_CLAUSE || >> > MI.getOpcode() == AMDGPU::ALU_CLAUSE || >> > MI.getOpcode() == AMDGPU::BUNDLE || >> >@@ -135,12 +114,6 @@ void R600MCCodeEmitter::EncodeInstruction(const > MCInst &MI, raw_ostream &OS, >> > return; >> > } else { >> > switch(MI.getOpcode()) { >> >- case AMDGPU::RAT_WRITE_CACHELESS_32_eg: >> >- case AMDGPU::RAT_WRITE_CACHELESS_128_eg: { >> >- uint64_t inst = getBinaryCodeForInstr(MI, Fixups); >> >- Emit(inst, OS); >> >- break; >> >- } >> > case AMDGPU::CONSTANT_LOAD_eg: >> > case AMDGPU::VTX_READ_PARAM_8_eg: >> > case AMDGPU::VTX_READ_PARAM_16_eg: >> Is it possible to use R600_InstFlag::VTX_INST and R600_InstFlag::TEX_INST > instead and to remove the switch() statement ? >> >@@ -234,44 +207,6 @@ void R600MCCodeEmitter::EncodeInstruction(const > MCInst &MI, raw_ostream &OS, >> > Emit((u_int32_t) 0, OS); >> > break; >> > } >> ----- Mail original ----- >> > De : Tom Stellard <t...@stellard.net> >> > À : llvm-comm...@cs.uiuc.edu >> > Cc : mesa-dev@lists.freedesktop.org >> > Envoyé le : Samedi 4 mai 2013 0h53 >> > Objet : R600 Patchset: Emit true ISA >> > >> > Hi, >> > >> > The attached patches modify the CodeEmitter to emit true ISA. >> > Previously, we were prefixing all instructions with an instruction > type >> > byte. >> > >> > Vincent did most of the work to convert the CodeEmitter to true ISA, >> > these patches are just the last few cleanups that are needed to finish >> > the project. >> > >> > Please test/review. >> > >> > Thanks, >> > Tom >> > >> > _______________________________________________ >> > llvm-commits mailing list >> > llvm-comm...@cs.uiuc.edu >> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits >> > > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev