File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,9 @@ using namespace llvm;
15
15
16
16
AMDGPUMachineFunction::AMDGPUMachineFunction (const MachineFunction &MF) :
17
17
MachineFunctionInfo(),
18
- LocalMemoryObjects(),
19
- ExplicitKernArgSize(0 ),
20
- LDSSize(0 ),
21
18
Mode(MF.getFunction()),
22
19
IsEntryFunction(AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())),
23
- NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath),
24
- MemoryBound(false ),
25
- WaveLimiter(false ) {
20
+ NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath) {
26
21
const AMDGPUSubtarget &ST = AMDGPUSubtarget::get (MF);
27
22
28
23
// FIXME: Should initialize KernArgSize based on ExplicitKernelArgOffset,
Original file line number Diff line number Diff line change @@ -23,26 +23,26 @@ class AMDGPUMachineFunction : public MachineFunctionInfo {
23
23
SmallDenseMap<const GlobalValue *, unsigned , 4 > LocalMemoryObjects;
24
24
25
25
protected:
26
- uint64_t ExplicitKernArgSize; // Cache for this.
26
+ uint64_t ExplicitKernArgSize = 0 ; // Cache for this.
27
27
Align MaxKernArgAlign; // Cache for this.
28
28
29
29
// / Number of bytes in the LDS that are being used.
30
- unsigned LDSSize;
30
+ unsigned LDSSize = 0 ;
31
31
32
32
// State of MODE register, assumed FP mode.
33
33
AMDGPU::SIModeRegisterDefaults Mode;
34
34
35
35
// Kernels + shaders. i.e. functions called by the driver and not called
36
36
// by other functions.
37
- bool IsEntryFunction;
37
+ bool IsEntryFunction = false ;
38
38
39
- bool NoSignedZerosFPMath;
39
+ bool NoSignedZerosFPMath = false ;
40
40
41
41
// Function may be memory bound.
42
- bool MemoryBound;
42
+ bool MemoryBound = false ;
43
43
44
44
// Kernel may need limited waves per EU for better performance.
45
- bool WaveLimiter;
45
+ bool WaveLimiter = false ;
46
46
47
47
public:
48
48
AMDGPUMachineFunction (const MachineFunction &MF);
You can’t perform that action at this time.
0 commit comments