-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] clang-format SIProgramInfo.h. NFC. #127033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rampitec
merged 1 commit into
main
from
users/rampitec/02-13-_amdgpu_clang-format_siprograminfo.h._nfc
Feb 13, 2025
Merged
[AMDGPU] clang-format SIProgramInfo.h. NFC. #127033
rampitec
merged 1 commit into
main
from
users/rampitec/02-13-_amdgpu_clang-format_siprograminfo.h._nfc
Feb 13, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@llvm/pr-subscribers-backend-amdgpu Author: Stanislav Mekhanoshin (rampitec) ChangesFull diff: https://github.com/llvm/llvm-project/pull/127033.diff 1 Files Affected:
diff --git a/llvm/lib/Target/AMDGPU/SIProgramInfo.h b/llvm/lib/Target/AMDGPU/SIProgramInfo.h
index c358a2d9db10b..37c03d9b637f0 100644
--- a/llvm/lib/Target/AMDGPU/SIProgramInfo.h
+++ b/llvm/lib/Target/AMDGPU/SIProgramInfo.h
@@ -29,83 +29,83 @@ class MachineFunction;
/// Track resource usage for kernels / entry functions.
struct LLVM_EXTERNAL_VISIBILITY SIProgramInfo {
- // Fields set in PGM_RSRC1 pm4 packet.
- const MCExpr *VGPRBlocks = nullptr;
- const MCExpr *SGPRBlocks = nullptr;
- uint32_t Priority = 0;
- uint32_t FloatMode = 0;
- uint32_t Priv = 0;
- uint32_t DX10Clamp = 0;
- uint32_t DebugMode = 0;
- uint32_t IEEEMode = 0;
- uint32_t WgpMode = 0; // GFX10+
- uint32_t MemOrdered = 0; // GFX10+
- uint32_t RrWgMode = 0; // GFX12+
- const MCExpr *ScratchSize = nullptr;
-
- // State used to calculate fields set in PGM_RSRC2 pm4 packet.
- uint32_t LDSBlocks = 0;
- const MCExpr *ScratchBlocks = nullptr;
-
- // Fields set in PGM_RSRC2 pm4 packet
- const MCExpr *ScratchEnable = nullptr;
- uint32_t UserSGPR = 0;
- uint32_t TrapHandlerEnable = 0;
- uint32_t TGIdXEnable = 0;
- uint32_t TGIdYEnable = 0;
- uint32_t TGIdZEnable = 0;
- uint32_t TGSizeEnable = 0;
- uint32_t TIdIGCompCount = 0;
- uint32_t EXCPEnMSB = 0;
- uint32_t LdsSize = 0;
- uint32_t EXCPEnable = 0;
-
- const MCExpr *ComputePGMRSrc3GFX90A = nullptr;
-
- const MCExpr *NumVGPR = nullptr;
- const MCExpr *NumArchVGPR = nullptr;
- const MCExpr *NumAccVGPR = nullptr;
- const MCExpr *AccumOffset = nullptr;
- uint32_t TgSplit = 0;
- const MCExpr *NumSGPR = nullptr;
- unsigned SGPRSpill = 0;
- unsigned VGPRSpill = 0;
- uint32_t LDSSize = 0;
- const MCExpr *FlatUsed = nullptr;
-
- // Number of SGPRs that meets number of waves per execution unit request.
- const MCExpr *NumSGPRsForWavesPerEU = nullptr;
-
- // Number of VGPRs that meets number of waves per execution unit request.
- const MCExpr *NumVGPRsForWavesPerEU = nullptr;
-
- // Final occupancy.
- const MCExpr *Occupancy = nullptr;
-
- // Whether there is recursion, dynamic allocas, indirect calls or some other
- // reason there may be statically unknown stack usage.
- const MCExpr *DynamicCallStack = nullptr;
-
- // Bonus information for debugging.
- const MCExpr *VCCUsed = nullptr;
-
- SIProgramInfo() = default;
-
- // The constructor sets the values for each member as shown in the struct.
- // However, setting the MCExpr members to their zero value equivalent
- // happens in reset together with (duplicated) value re-set for the
- // non-MCExpr members.
- void reset(const MachineFunction &MF);
-
- /// Compute the value of the ComputePGMRsrc1 register.
- const MCExpr *getComputePGMRSrc1(const GCNSubtarget &ST,
- MCContext &Ctx) const;
- const MCExpr *getPGMRSrc1(CallingConv::ID CC, const GCNSubtarget &ST,
- MCContext &Ctx) const;
-
- /// Compute the value of the ComputePGMRsrc2 register.
- const MCExpr *getComputePGMRSrc2(MCContext &Ctx) const;
- const MCExpr *getPGMRSrc2(CallingConv::ID CC, MCContext &Ctx) const;
+ // Fields set in PGM_RSRC1 pm4 packet.
+ const MCExpr *VGPRBlocks = nullptr;
+ const MCExpr *SGPRBlocks = nullptr;
+ uint32_t Priority = 0;
+ uint32_t FloatMode = 0;
+ uint32_t Priv = 0;
+ uint32_t DX10Clamp = 0;
+ uint32_t DebugMode = 0;
+ uint32_t IEEEMode = 0;
+ uint32_t WgpMode = 0; // GFX10+
+ uint32_t MemOrdered = 0; // GFX10+
+ uint32_t RrWgMode = 0; // GFX12+
+ const MCExpr *ScratchSize = nullptr;
+
+ // State used to calculate fields set in PGM_RSRC2 pm4 packet.
+ uint32_t LDSBlocks = 0;
+ const MCExpr *ScratchBlocks = nullptr;
+
+ // Fields set in PGM_RSRC2 pm4 packet
+ const MCExpr *ScratchEnable = nullptr;
+ uint32_t UserSGPR = 0;
+ uint32_t TrapHandlerEnable = 0;
+ uint32_t TGIdXEnable = 0;
+ uint32_t TGIdYEnable = 0;
+ uint32_t TGIdZEnable = 0;
+ uint32_t TGSizeEnable = 0;
+ uint32_t TIdIGCompCount = 0;
+ uint32_t EXCPEnMSB = 0;
+ uint32_t LdsSize = 0;
+ uint32_t EXCPEnable = 0;
+
+ const MCExpr *ComputePGMRSrc3GFX90A = nullptr;
+
+ const MCExpr *NumVGPR = nullptr;
+ const MCExpr *NumArchVGPR = nullptr;
+ const MCExpr *NumAccVGPR = nullptr;
+ const MCExpr *AccumOffset = nullptr;
+ uint32_t TgSplit = 0;
+ const MCExpr *NumSGPR = nullptr;
+ unsigned SGPRSpill = 0;
+ unsigned VGPRSpill = 0;
+ uint32_t LDSSize = 0;
+ const MCExpr *FlatUsed = nullptr;
+
+ // Number of SGPRs that meets number of waves per execution unit request.
+ const MCExpr *NumSGPRsForWavesPerEU = nullptr;
+
+ // Number of VGPRs that meets number of waves per execution unit request.
+ const MCExpr *NumVGPRsForWavesPerEU = nullptr;
+
+ // Final occupancy.
+ const MCExpr *Occupancy = nullptr;
+
+ // Whether there is recursion, dynamic allocas, indirect calls or some other
+ // reason there may be statically unknown stack usage.
+ const MCExpr *DynamicCallStack = nullptr;
+
+ // Bonus information for debugging.
+ const MCExpr *VCCUsed = nullptr;
+
+ SIProgramInfo() = default;
+
+ // The constructor sets the values for each member as shown in the struct.
+ // However, setting the MCExpr members to their zero value equivalent
+ // happens in reset together with (duplicated) value re-set for the
+ // non-MCExpr members.
+ void reset(const MachineFunction &MF);
+
+ /// Compute the value of the ComputePGMRsrc1 register.
+ const MCExpr *getComputePGMRSrc1(const GCNSubtarget &ST,
+ MCContext &Ctx) const;
+ const MCExpr *getPGMRSrc1(CallingConv::ID CC, const GCNSubtarget &ST,
+ MCContext &Ctx) const;
+
+ /// Compute the value of the ComputePGMRsrc2 register.
+ const MCExpr *getComputePGMRSrc2(MCContext &Ctx) const;
+ const MCExpr *getPGMRSrc2(CallingConv::ID CC, MCContext &Ctx) const;
};
} // namespace llvm
|
jayfoad
approved these changes
Feb 13, 2025
arsenm
approved these changes
Feb 13, 2025
joaosaffran
pushed a commit
to joaosaffran/llvm-project
that referenced
this pull request
Feb 14, 2025
sivan-shani
pushed a commit
to sivan-shani/llvm-project
that referenced
this pull request
Feb 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.