@@ -290,7 +290,7 @@ static VISA_PredVar *readPreVarNG(unsigned &bytePos, const char *buf,
290290 RoutineContainer &container) {
291291 vISA_ASSERT_INPUT (buf != nullptr , " Argument Exception: argument buf is NULL." );
292292
293- [[maybe_unused]] uint8_t tag = 0 ;
293+ uint8_t tag = 0 ;
294294 READ_CISA_FIELD (tag, uint8_t , bytePos, buf);
295295
296296 uint16_t index = 0 ;
@@ -2448,6 +2448,7 @@ static void
24482448readInstructionLscUntypedAppendCounterAtomic (LSC_OP subOpcode,
24492449 unsigned &bytePos, const char *buf,
24502450 RoutineContainer &container) {
2451+ const LscOpInfo opInfo = LscOpInfoGet (subOpcode);
24512452
24522453 VISA_EMask_Ctrl execMask = vISA_EMASK_M1;
24532454 VISA_Exec_Size execSize = EXEC_SIZE_ILLEGAL;
@@ -2700,9 +2701,9 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
27002701 VISA_GenVar *decl = NULL ;
27012702 VISA_Type varType = (VISA_Type)((var->bit_properties ) & 0xF );
27022703 VISA_Align varAlign = (VISA_Align)((var->bit_properties >> 4 ) & 0xF );
2703- [[maybe_unused]] uint8_t aliasScopeSpecifier =
2704+ uint8_t aliasScopeSpecifier =
27042705 header.variables [declID].alias_scope_specifier ;
2705- [[maybe_unused]] int status = VISA_SUCCESS;
2706+ int status = VISA_SUCCESS;
27062707
27072708 vISA_ASSERT (aliasScopeSpecifier == 0 ,
27082709 " file scope variables are no longer supported" );
@@ -2760,7 +2761,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
27602761 // / VISA Builder Call
27612762 addr_info_t *var = &header.addresses [declID];
27622763 VISA_AddrVar *decl = NULL ;
2763- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAAddrVar (
2764+ int status = kernelBuilderImpl->CreateVISAAddrVar (
27642765 decl, header.strings [var->name_index ], var->num_elements );
27652766 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA address variable." );
27662767
@@ -2799,7 +2800,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
27992800 // / VISA Builder Call
28002801 pred_info_t *var = &header.predicates [declID];
28012802 VISA_PredVar *decl = NULL ;
2802- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAPredVar (
2803+ int status = kernelBuilderImpl->CreateVISAPredVar (
28032804 decl, header.strings [var->name_index ], var->num_elements );
28042805 vISA_ASSERT (VISA_SUCCESS == status,
28052806 " Failed to add VISA predicate vairable." );
@@ -2831,7 +2832,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
28312832 unsigned declID = i;
28322833 label_info_t *var = &header.labels [declID];
28332834 VISA_LabelOpnd *decl = NULL ;
2834- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISALabelVar (
2835+ int status = kernelBuilderImpl->CreateVISALabelVar (
28352836 decl,
28362837 getDeclLabelString (" L" , var->name_index , header,
28372838 VISA_Label_Kind (var->kind ))
@@ -2876,7 +2877,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
28762877 unsigned declID = i;
28772878 state_info_t *var = &header.samplers [declID];
28782879 VISA_SamplerVar *decl = NULL ;
2879- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASamplerVar (
2880+ int status = kernelBuilderImpl->CreateVISASamplerVar (
28802881 decl, header.strings [var->name_index ], var->num_elements );
28812882 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA sampler variable." );
28822883
@@ -2924,7 +2925,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29242925 unsigned declID = i;
29252926 state_info_t *var = &header.surfaces [declID];
29262927 VISA_SurfaceVar *decl = NULL ;
2927- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISASurfaceVar (
2928+ int status = kernelBuilderImpl->CreateVISASurfaceVar (
29282929 decl, header.strings [var->name_index ], var->num_elements );
29292930 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA surface variable." );
29302931
@@ -2945,7 +2946,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29452946 container.surfaceVarDecls [i] = decl;
29462947 }
29472948
2948- [[maybe_unused]] int vmeCount = 0 ;
2949+ int vmeCount = 0 ;
29492950 READ_CISA_FIELD (vmeCount, uint8_t , bytePos, buf);
29502951 vISA_ASSERT (vmeCount == 0 , " VME variable is no longer supported" );
29512952 header.vme_count = 0 ;
@@ -2985,7 +2986,7 @@ static void readRoutineNG(unsigned &bytePos, const char *buf,
29852986 vISA_ASSERT_UNREACHABLE (" Incorrect input variable type." );
29862987 }
29872988
2988- [[maybe_unused]] int status = kernelBuilderImpl->CreateVISAInputVar (
2989+ int status = kernelBuilderImpl->CreateVISAInputVar (
29892990 decl, var->offset , var->size , var->getImplicitKind ());
29902991 vISA_ASSERT (VISA_SUCCESS == status, " Failed to add VISA input variable." );
29912992
0 commit comments