Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
161e2b42
Commit
161e2b42
authored
7 years ago
by
Matt Arsenault
Browse files
Options
Downloads
Patches
Plain Diff
AMDGPU: Make MFI fields private
llvm-svn: 300596
parent
922940b6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+3
-3
3 additions, 3 deletions
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
+5
-3
5 additions, 3 deletions
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
with
8 additions
and
6 deletions
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+
3
−
3
View file @
161e2b42
...
@@ -512,10 +512,10 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
...
@@ -512,10 +512,10 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
AMDGPU
::
IsaInfo
::
FIXED_NUM_SGPRS_FOR_INIT_BUG
;
AMDGPU
::
IsaInfo
::
FIXED_NUM_SGPRS_FOR_INIT_BUG
;
}
}
if
(
MFI
->
NumUserSGPRs
>
STM
.
getMaxNumUserSGPRs
())
{
if
(
MFI
->
get
NumUserSGPRs
()
>
STM
.
getMaxNumUserSGPRs
())
{
LLVMContext
&
Ctx
=
MF
.
getFunction
()
->
getContext
();
LLVMContext
&
Ctx
=
MF
.
getFunction
()
->
getContext
();
DiagnosticInfoResourceLimit
Diag
(
*
MF
.
getFunction
(),
"user SGPRs"
,
DiagnosticInfoResourceLimit
Diag
(
*
MF
.
getFunction
(),
"user SGPRs"
,
MFI
->
NumUserSGPRs
,
DS_Error
);
MFI
->
get
NumUserSGPRs
()
,
DS_Error
);
Ctx
.
diagnose
(
Diag
);
Ctx
.
diagnose
(
Diag
);
}
}
...
@@ -572,7 +572,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
...
@@ -572,7 +572,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
}
}
unsigned
LDSSpillSize
=
unsigned
LDSSpillSize
=
MFI
->
LDSWaveSpillSize
*
MFI
->
getMaxFlatWorkGroupSize
();
MFI
->
get
LDSWaveSpillSize
()
*
MFI
->
getMaxFlatWorkGroupSize
();
ProgInfo
.
LDSSize
=
MFI
->
getLDSSize
()
+
LDSSpillSize
;
ProgInfo
.
LDSSize
=
MFI
->
getLDSSize
()
+
LDSSpillSize
;
ProgInfo
.
LDSBlocks
=
ProgInfo
.
LDSBlocks
=
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
+
5
−
3
View file @
161e2b42
...
@@ -133,14 +133,12 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
...
@@ -133,14 +133,12 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
AMDGPUBufferPseudoSourceValue
BufferPSV
;
AMDGPUBufferPseudoSourceValue
BufferPSV
;
AMDGPUImagePseudoSourceValue
ImagePSV
;
AMDGPUImagePseudoSourceValue
ImagePSV
;
public:
private:
// FIXME: Make private
unsigned
LDSWaveSpillSize
;
unsigned
LDSWaveSpillSize
;
unsigned
ScratchOffsetReg
;
unsigned
ScratchOffsetReg
;
unsigned
NumUserSGPRs
;
unsigned
NumUserSGPRs
;
unsigned
NumSystemSGPRs
;
unsigned
NumSystemSGPRs
;
private:
bool
HasSpilledSGPRs
;
bool
HasSpilledSGPRs
;
bool
HasSpilledVGPRs
;
bool
HasSpilledVGPRs
;
bool
HasNonSpillStackObjects
;
bool
HasNonSpillStackObjects
;
...
@@ -535,6 +533,10 @@ public:
...
@@ -535,6 +533,10 @@ public:
llvm_unreachable
(
"unexpected dimension"
);
llvm_unreachable
(
"unexpected dimension"
);
}
}
unsigned
getLDSWaveSpillSize
()
const
{
return
LDSWaveSpillSize
;
}
const
AMDGPUBufferPseudoSourceValue
*
getBufferPSV
()
const
{
const
AMDGPUBufferPseudoSourceValue
*
getBufferPSV
()
const
{
return
&
BufferPSV
;
return
&
BufferPSV
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment