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
[ROCm/clr commit: 0f7a5d7cd8]
Tento commit je obsažen v:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele