From a709ffc57ea94bbd5e14e51addf8c838421cd476 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 9 Dec 2014 16:10:21 -0500
Subject: [PATCH] P4 to Git Change 1103884 by yaxunl@yaxunl_stg_win50 on
2014/12/09 15:30:25
EPR #405889 - Added option to set VGPR/SGPR/LDS usage in ISA to certain value greater than actual usage for debugging purpose. If the given value is smaller than actual value, this option has no effect.
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/SI/scCompileSI.cpp#52 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/scwrapper/scHWShaderInfo.h#2 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/OPTIONS.def#121 edit
[ROCm/clr commit: 9f760b7bf06e0a07f325ba871a05d3a7b25a47a1]
---
.../clr/rocclr/compiler/lib/utils/OPTIONS.def | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def
index 1fc6b55947..bd6ca39ca5 100644
--- a/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def
+++ b/projects/clr/rocclr/compiler/lib/utils/OPTIONS.def
@@ -1115,6 +1115,21 @@ FLAG(OT_UINT32, OVIS_SUPPORT|OVIS_INTERNAL|OVA_REQUIRED, \
"limit-scalar-registers", OptLimitScalarRegisters, 0, \
"Maximum number of scalar registers that are available to the compiler.")
+// -set-vector-registers= (default 0 = no change)
+FLAG(OT_UINT32, OVIS_SUPPORT|OVIS_INTERNAL|OVA_REQUIRED, \
+ "set-vector-registers", OptSetVecRegisters, 0, \
+ "Set the number of vector registers used in ISA (no effect if less than actual value).")
+
+// -set-scalar-registers= (default 0 = no change)
+FLAG(OT_UINT32, OVIS_SUPPORT|OVIS_INTERNAL|OVA_REQUIRED, \
+ "set-scalar-registers", OptSetScalarRegisters, 0, \
+ "Set the number of scalar registers used in ISA (no effect if less than actual value).")
+
+// -set-lds= (default 0 = no change)
+FLAG(OT_UINT32, OVIS_SUPPORT|OVIS_INTERNAL|OVA_REQUIRED, \
+ "set-lds", OptSetLDS, 0, \
+ "Set LDS usage in bytes in ISA (no effect if less than actual value).")
+
// -lower-atomics=0|1 (default is 1)
FLAG(OT_BOOL, OVIS_SUPPORT, "lower-atomics", LowerAtomics, 1,\
"Enable/disable pass lowering OCL atomics to LLVM intrinsics (only for x86/x64)")