diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-31 18:50:30 -0700 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2019-11-19 19:55:43 +0530 |
commit | db0ed3e429b55d1730d1ecc253b0643de7fca099 (patch) | |
tree | 33f725b9778863f7c737075b4ca9d9e6c43ceb08 /llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | |
parent | ea23b6428b88ed50a2cfc91b783f627fa139bb36 (diff) | |
download | llvm-db0ed3e429b55d1730d1ecc253b0643de7fca099.zip llvm-db0ed3e429b55d1730d1ecc253b0643de7fca099.tar.gz llvm-db0ed3e429b55d1730d1ecc253b0643de7fca099.tar.bz2 |
AMDGPU: Refactor treatment of denormal mode
Start moving towards treating this as a property of the calling
convention, and not the subtarget. The default denormal mode should
not be part of the subtarget, and be moved into a separate function
attribute.
This patch is still NFC. The denormal mode remains as a subtarget
feature for now, but make the necessary changes to switch to using an
attribute.
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp index 89ca702..940ddff 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp @@ -18,6 +18,7 @@ AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) : LocalMemoryObjects(), ExplicitKernArgSize(0), LDSSize(0), + Mode(MF.getFunction(), MF.getSubtarget<GCNSubtarget>()), IsEntryFunction(AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())), NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath), MemoryBound(false), |