diff options
author | Tom Stellard <[email protected]> | 2012-05-01 13:08:26 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-01 13:12:27 -0400 |
commit | ff10dbf35f1c083d38bbdbec30cadf6703b609e5 (patch) | |
tree | 256b0f0f4a912481893829b83830c6c7c8851f21 /src/gallium/drivers/radeon/R600CodeEmitter.cpp | |
parent | 2d75a1e25e6ddcd65964d30fc3c782df2e880cc4 (diff) |
radeon/llvm: Add subtarget feature: DumpCode
With this feature enabled, the LLVM backend will dump the MachineIntrs
prior to emitting code. The mesa env variable R600_DUMP_SHADERS will enable
this feature in the backend.
Diffstat (limited to 'src/gallium/drivers/radeon/R600CodeEmitter.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/R600CodeEmitter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/R600CodeEmitter.cpp b/src/gallium/drivers/radeon/R600CodeEmitter.cpp index 8faf0deb8c5..53fdd1592c4 100644 --- a/src/gallium/drivers/radeon/R600CodeEmitter.cpp +++ b/src/gallium/drivers/radeon/R600CodeEmitter.cpp @@ -155,10 +155,8 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) { } else { evergreenEncoding = true; } - const AMDGPUTargetMachine *amdtm = - static_cast<const AMDGPUTargetMachine *>(&MF.getTarget()); - if (amdtm->shouldDumpCode()) { + if (STM.dumpCode()) { MF.dump(); } |