From 4a2e0c9b3663d1bacc91821ae5699965bff4e5e9 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Mon, 3 Jun 2024 12:05:04 -0400 Subject: [PATCH] Fix comments in liveness.h (#5699) Addressed comments from #5693 that were not fixed before merging. --- source/opt/liveness.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/opt/liveness.h b/source/opt/liveness.h index ce2520771..70500059a 100644 --- a/source/opt/liveness.h +++ b/source/opt/liveness.h @@ -41,7 +41,7 @@ class LivenessManager { // Return true if builtin |bi| is being analyzed. bool IsAnalyzedBuiltin(uint32_t bi); - // Return the result type of |ac| when applied to |cur_type|. Set + // Return the result type of |ac| when applied to |cur_type_id|. Set // |no_loc| to true if no loc found. Set |is_patch| indicates if the variable // is a patch variable. Set |input| if the variable is an input variable. // Otherwise it is assumed that the variable is an output variable. @@ -68,11 +68,11 @@ class LivenessManager { // Mark |count| locations starting at location |start|. void MarkLocsLive(uint32_t start, uint32_t count); - // Return type of component of aggregate type |agg_type| at |index| + // Return type of the member |index| in the aggregate type |agg_type_id|. uint32_t GetComponentType(uint32_t index, uint32_t agg_type_id) const; - // Return offset of |index| into aggregate type |agg_type| in units of - // input locations + // Return offset of member |index| in the aggregate type |agg_type_id| in + // units of input locations. uint32_t GetLocOffset(uint32_t index, uint32_t agg_type_id) const; // Populate live_locs_ and live_builtins_