diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 21:22:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 21:22:58 +0000 |
commit | 5ffd83dbcc34f10e07f6d3e968ae6365869615f4 (patch) | |
tree | 0e9f5cf729dde39f949698fddef45a34e2bc7f44 /contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h | |
parent | 1799696096df87b52968b8996d00c91e0a5de8d9 (diff) | |
parent | cfca06d7963fa0909f90483b42a6d7d194d01e08 (diff) |
Notes
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h b/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h index 1933e41c66f3..c504dd76bc65 100644 --- a/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h +++ b/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h @@ -23,26 +23,26 @@ class AMDGPUMachineFunction : public MachineFunctionInfo { SmallDenseMap<const GlobalValue *, unsigned, 4> LocalMemoryObjects; protected: - uint64_t ExplicitKernArgSize; // Cache for this. + uint64_t ExplicitKernArgSize = 0; // Cache for this. Align MaxKernArgAlign; // Cache for this. /// Number of bytes in the LDS that are being used. - unsigned LDSSize; + unsigned LDSSize = 0; // State of MODE register, assumed FP mode. AMDGPU::SIModeRegisterDefaults Mode; // Kernels + shaders. i.e. functions called by the driver and not called // by other functions. - bool IsEntryFunction; + bool IsEntryFunction = false; - bool NoSignedZerosFPMath; + bool NoSignedZerosFPMath = false; // Function may be memory bound. - bool MemoryBound; + bool MemoryBound = false; // Kernel may need limited waves per EU for better performance. - bool WaveLimiter; + bool WaveLimiter = false; public: AMDGPUMachineFunction(const MachineFunction &MF); @@ -77,7 +77,7 @@ public: return WaveLimiter; } - unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalValue &GV); + unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalVariable &GV); }; } |