From 8b49f42e8148284815b4c31bf1c280e7ae2b03be Mon Sep 17 00:00:00 2001 From: "Kotynia, Piotr" Date: Thu, 7 Jul 2022 13:42:18 +0000 Subject: [PATCH] Put in namespace Fixes #237 --- IGC/GenISAIntrinsics/GenIntrinsics.cpp | 7 ++++++- .../lib/InternalIntrinsics/InternalIntrinsics.cpp | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/IGC/GenISAIntrinsics/GenIntrinsics.cpp b/IGC/GenISAIntrinsics/GenIntrinsics.cpp index 09dfa636f80a..48c6f2096a46 100644 --- a/IGC/GenISAIntrinsics/GenIntrinsics.cpp +++ b/IGC/GenISAIntrinsics/GenIntrinsics.cpp @@ -1,6 +1,6 @@ /*========================== begin_copyright_notice ============================ -Copyright (C) 2017-2021 Intel Corporation +Copyright (C) 2017-2022 Intel Corporation SPDX-License-Identifier: MIT @@ -89,6 +89,9 @@ void getIntrinsicInfoTableEntries(ID id, SmallVectorImpl &T, Arra ID lookupGenIntrinsicID(const char *Name, unsigned int Len); } } + +namespace { + enum IIT_Info { // Common values should be encoded with 0-15. IIT_Done = 0, @@ -132,6 +135,8 @@ enum IIT_Info { IIT_V1024 = 36 }; +} // namespace + static Type *DecodeFixedType(ArrayRef &Infos, ArrayRef Tys, LLVMContext &Context) { using namespace GenISAIntrinsic; diff --git a/IGC/VectorCompiler/lib/InternalIntrinsics/InternalIntrinsics.cpp b/IGC/VectorCompiler/lib/InternalIntrinsics/InternalIntrinsics.cpp index adda52bcef28..fd337aa2c761 100644 --- a/IGC/VectorCompiler/lib/InternalIntrinsics/InternalIntrinsics.cpp +++ b/IGC/VectorCompiler/lib/InternalIntrinsics/InternalIntrinsics.cpp @@ -51,6 +51,8 @@ static cl::opt EnableInternalIntrinsicsCache( // Metadata name for caching static StringRef InternalIntrinsicMDName{"internal_intrinsic_id"}; +namespace { + /// IIT_Info - These are enumerators that describe the entries returned by the /// getIntrinsicInfoTableEntries function. /// @@ -102,6 +104,8 @@ enum IIT_Info { IIT_STRUCT8 = 40, IIT_F128 = 41 }; + +} // namespace // define static const unsigned IIT_Table // define static const unsigned char IIT_LongEncodingTable #define GET_INTRINSIC_GENERATOR_GLOBAL