[Mesa-dev] R600 Patchset: Emit true ISA

Vincent Lejeune vljn at ovi.com
Mon May 6 10:15:15 PDT 2013


Reviewed-by:Vincent Lejeune<vljn at ovi.com>


----- Mail original -----
> De : Tom Stellard <tom at stellard.net>
> À : Vincent Lejeune <vljn at ovi.com>
> Cc : "llvm-commits at cs.uiuc.edu" <llvm-commits at cs.uiuc.edu>; "mesa-dev at lists.freedesktop.org" <mesa-dev at 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 <tom at stellard.net>
>>  > À : llvm-commits at cs.uiuc.edu
>>  > Cc : mesa-dev at 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-commits at cs.uiuc.edu
>>  > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>  >
> 


More information about the mesa-dev mailing list