diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-09-29 23:40:19 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2017-09-29 23:40:19 +0000 |
commit | 1d8cf2be89087a2babc1dc38b16040fad0a555e2 (patch) | |
tree | d0f27cf3d5a0e455a5ac4997aea666da42c0a5ad /llvm/lib/Target/AMDGPU/AMDGPU.h | |
parent | b33607e5a112e8af3df3f1bd6e0a21749c40cd09 (diff) | |
download | bcm5719-llvm-1d8cf2be89087a2babc1dc38b16040fad0a555e2.tar.gz bcm5719-llvm-1d8cf2be89087a2babc1dc38b16040fad0a555e2.zip |
[AMDGPU] Set fast-math flags on functions given the options
We have a single library build without relaxation options.
When inlined library functions remove fast math attributes
from the functions they are integrated into.
This patch sets relaxation attributes on the functions after
linking provided corresponding relaxation options are given.
Math instructions inside the inlined functions remain to have
no fast flags, but inlining does not prevent fast math
transformations of a surrounding caller code anymore.
Differential Revision: https://reviews.llvm.org/D38325
llvm-svn: 314568
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPU.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPU.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.h b/llvm/lib/Target/AMDGPU/AMDGPU.h index 893e4cb2a15..6bf8cdcb849 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPU.h +++ b/llvm/lib/Target/AMDGPU/AMDGPU.h @@ -23,6 +23,7 @@ class ModulePass; class Pass; class Target; class TargetMachine; +class TargetOptions; class PassRegistry; class Module; @@ -52,7 +53,7 @@ FunctionPass *createSIDebuggerInsertNopsPass(); FunctionPass *createSIInsertWaitsPass(); FunctionPass *createSIInsertWaitcntsPass(); FunctionPass *createSIFixWWMLivenessPass(); -FunctionPass *createAMDGPUSimplifyLibCallsPass(); +FunctionPass *createAMDGPUSimplifyLibCallsPass(const TargetOptions &); FunctionPass *createAMDGPUUseNativeCallsPass(); FunctionPass *createAMDGPUCodeGenPreparePass(); FunctionPass *createAMDGPUMachineCFGStructurizerPass(); |