mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
AMDGPU: Use member initializers in MFI
This commit is contained in:
parent
ededcfd109
commit
c07c3f775b
@ -15,14 +15,9 @@ using namespace llvm;
|
||||
|
||||
AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
|
||||
MachineFunctionInfo(),
|
||||
LocalMemoryObjects(),
|
||||
ExplicitKernArgSize(0),
|
||||
LDSSize(0),
|
||||
Mode(MF.getFunction()),
|
||||
IsEntryFunction(AMDGPU::isEntryFunctionCC(MF.getFunction().getCallingConv())),
|
||||
NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath),
|
||||
MemoryBound(false),
|
||||
WaveLimiter(false) {
|
||||
NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath) {
|
||||
const AMDGPUSubtarget &ST = AMDGPUSubtarget::get(MF);
|
||||
|
||||
// FIXME: Should initialize KernArgSize based on ExplicitKernelArgOffset,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user