[llvm] Add and call `AMDGPUMCResourceInfo::reset` method (PR #110818)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 03:33:58 PDT 2024


================
@@ -71,6 +71,13 @@ void MCResourceInfo::assignMaxRegs(MCContext &OutContext) {
   assignMaxRegSym(MaxSGPRSym, MaxSGPR);
 }
 
+void MCResourceInfo::reset() {
+  Finalized = false;
+  MaxVGPR = 0;
+  MaxAGPR = 0;
+  MaxSGPR = 0;
+}
----------------
arsenm wrote:

*this = MCResourceInfo()?

https://github.com/llvm/llvm-project/pull/110818


More information about the llvm-commits mailing list