@@ -2874,7 +2874,7 @@ static void transMetadataDecorations(Metadata *MD, SPIRVEntry *Target) {
28742874 break ;
28752875 }
28762876
2877- case spv::internal:: DecorationCacheControlLoadINTEL: {
2877+ case DecorationCacheControlLoadINTEL: {
28782878 ErrLog.checkError (
28792879 NumOperands == 3 , SPIRVEC_InvalidLlvmModule,
28802880 " CacheControlLoadINTEL requires exactly 2 extra operands" );
@@ -2891,11 +2891,10 @@ static void transMetadataDecorations(Metadata *MD, SPIRVEntry *Target) {
28912891
28922892 Target->addDecorate (new SPIRVDecorateCacheControlLoadINTEL (
28932893 Target, CacheLevel->getZExtValue (),
2894- static_cast <internal::LoadCacheControlINTEL>(
2895- CacheControl->getZExtValue ())));
2894+ static_cast <LoadCacheControl>(CacheControl->getZExtValue ())));
28962895 break ;
28972896 }
2898- case spv::internal:: DecorationCacheControlStoreINTEL: {
2897+ case DecorationCacheControlStoreINTEL: {
28992898 ErrLog.checkError (
29002899 NumOperands == 3 , SPIRVEC_InvalidLlvmModule,
29012900 " CacheControlStoreINTEL requires exactly 2 extra operands" );
@@ -2912,8 +2911,7 @@ static void transMetadataDecorations(Metadata *MD, SPIRVEntry *Target) {
29122911
29132912 Target->addDecorate (new SPIRVDecorateCacheControlStoreINTEL (
29142913 Target, CacheLevel->getZExtValue (),
2915- static_cast <internal::StoreCacheControlINTEL>(
2916- CacheControl->getZExtValue ())));
2914+ static_cast <StoreCacheControl>(CacheControl->getZExtValue ())));
29172915 break ;
29182916 }
29192917 default : {
@@ -3369,8 +3367,7 @@ AnnotationDecorations tryParseAnnotationString(SPIRVModule *BM,
33693367 Decorates.LatencyControlVec .emplace_back (
33703368 static_cast <Decoration>(DecorationKind), std::move (DecValues));
33713369 } else if (AllowCacheControls &&
3372- DecorationKind ==
3373- internal::DecorationCacheControlLoadINTEL) {
3370+ DecorationKind == DecorationCacheControlLoadINTEL) {
33743371 Decorates.CacheControlVec .emplace_back (
33753372 static_cast <Decoration>(DecorationKind), std::move (DecValues));
33763373 } else if (DecorationKind == DecorationMemoryINTEL) {
@@ -3631,7 +3628,7 @@ void addAnnotationDecorations(SPIRVEntry *E, DecorationsInfoVec &Decorations) {
36313628 }
36323629 break ;
36333630 }
3634- case spv::internal:: DecorationCacheControlLoadINTEL: {
3631+ case DecorationCacheControlLoadINTEL: {
36353632 if (M->isAllowedToUseExtension (ExtensionID::SPV_INTEL_cache_controls)) {
36363633 M->getErrorLog ().checkError (
36373634 I.second .size () == 2 , SPIRVEC_InvalidLlvmModule,
@@ -3641,8 +3638,7 @@ void addAnnotationDecorations(SPIRVEntry *E, DecorationsInfoVec &Decorations) {
36413638 StringRef (I.second [0 ]).getAsInteger (10 , CacheLevel);
36423639 StringRef (I.second [1 ]).getAsInteger (10 , CacheControl);
36433640 E->addDecorate (new SPIRVDecorateCacheControlLoadINTEL (
3644- E, CacheLevel,
3645- static_cast <internal::LoadCacheControlINTEL>(CacheControl)));
3641+ E, CacheLevel, static_cast <LoadCacheControl>(CacheControl)));
36463642 }
36473643 }
36483644
0 commit comments