P4 to Git Change 1174141 by vpykhtin@vpykhtin-HSA on 2015/07/27 08:36:29

ECR #333753 - HSA HLC: --denorms-f32-are-zero flag support

	Testing: smoke, presubmit

	Reviewed by Brian Sumner, Evgeny Mankov

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#127 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/BRIGAsmPrinter.cpp#119 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/src/llc/opt/intrinsics/flush-denorms.cl#1 add
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/llc_opt.tlst#38 edit
Этот коммит содержится в:
foreman
2015-07-27 08:46:17 -04:00
родитель 00c67fb024
Коммит c57ef1bb5b
+9
Просмотреть файл
@@ -111,6 +111,10 @@
#endif
#define DEBUG_TYPE "ocl_linker"
#if !defined(LEGACY_COMPLIB)
extern bool HLC_FlushF32Denorms;
#endif
namespace AMDSpir {
extern void replaceTrivialFunc(llvm::Module& M);
}
@@ -641,6 +645,11 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector<llvm::Module*> &libs)
setFP32RoundDivideSqrt(Options()->oVariables->FP32RoundDivideSqrt);
setUseNative(Options()->oVariables->OptUseNative);
setDenormsAreZero(Options()->oVariables->DenormsAreZero);
#if !defined(LEGACY_COMPLIB)
// TODO: Enable the following line to pass DenormsAreZero option to the HLC
// when ready
// HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero;
#endif
setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize);
setHaveFastFMA32(chip == "Cypress"
|| chip == "Cayman"