summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDILBase.td
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-01 13:08:26 -0400
committerTom Stellard <[email protected]>2012-05-01 13:12:27 -0400
commitff10dbf35f1c083d38bbdbec30cadf6703b609e5 (patch)
tree256b0f0f4a912481893829b83830c6c7c8851f21 /src/gallium/drivers/radeon/AMDILBase.td
parent2d75a1e25e6ddcd65964d30fc3c782df2e880cc4 (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/AMDILBase.td')
-rw-r--r--src/gallium/drivers/radeon/AMDILBase.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDILBase.td b/src/gallium/drivers/radeon/AMDILBase.td
index 2706b211f2d..31ebed31d72 100644
--- a/src/gallium/drivers/radeon/AMDILBase.td
+++ b/src/gallium/drivers/radeon/AMDILBase.td
@@ -60,6 +60,11 @@ def FeatureDebug : SubtargetFeature<"debug",
"CapsOverride[AMDILDeviceInfo::Debug]",
"true",
"Debug mode is enabled, so disable hardware accelerated address spaces.">;
+def FeatureDumpCode : SubtargetFeature <"DumpCode",
+ "mDumpCode",
+ "true",
+ "Dump MachineInstrs in the CodeEmitter">;
+
//===----------------------------------------------------------------------===//
// Register File, Calling Conv, Instruction Descriptions