P4 to Git Change 1322036 by smekhano@stas-mwamba-rocm on 2016/10/03 22:44:10

SWDEV-104366 - ROCm/LC: allow passing options to llvm through -Wb,...
	Reviewed by Laurent Morichetti

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#37 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#22 edit
Este commit está contenido en:
foreman
2016-10-03 22:49:41 -04:00
padre 7607667bd3
commit 0f7a5d7cd8
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
+3
Ver fichero
@@ -889,6 +889,9 @@ processOption(int OptDescTableIx, Options& Opts, const std::string& Value,
}
else if (((OptionIdentifier)OptDescTableIx) == OID_WBComma) {
Opts.llvmOptions.append(" ");
#if defined(WITH_LIGHTNING_COMPILER)
Opts.llvmOptions.append("-mllvm ");
#endif
Opts.llvmOptions.append(sval);
}
else if (((OptionIdentifier)OptDescTableIx) == OID_WHComma) {
+2
Ver fichero
@@ -156,6 +156,8 @@ HSAILProgram::compileImpl_LC(
return false;
}
driverOptions.append(options->llvmOptions);
// Set fp32-denormals and fp64-denormals
bool fp32Denormals = !options->oVariables->DenormsAreZero
&& dev().deviceInfo().gfxipVersion_ >= 900;