Skip to content

Commit 8b49f42

Browse files
Kotynia, Piotrigcbot
authored andcommitted
Put in namespace
Fixes #237
1 parent 7af6fa6 commit 8b49f42

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

IGC/GenISAIntrinsics/GenIntrinsics.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*========================== begin_copyright_notice ============================
22
3-
Copyright (C) 2017-2021 Intel Corporation
3+
Copyright (C) 2017-2022 Intel Corporation
44
55
SPDX-License-Identifier: MIT
66
@@ -89,6 +89,9 @@ void getIntrinsicInfoTableEntries(ID id, SmallVectorImpl<IITDescriptor> &T, Arra
8989
ID lookupGenIntrinsicID(const char *Name, unsigned int Len);
9090
}
9191
}
92+
93+
namespace {
94+
9295
enum IIT_Info {
9396
// Common values should be encoded with 0-15.
9497
IIT_Done = 0,
@@ -132,6 +135,8 @@ enum IIT_Info {
132135
IIT_V1024 = 36
133136
};
134137

138+
} // namespace
139+
135140
static Type *DecodeFixedType(ArrayRef<GenISAIntrinsic::IITDescriptor> &Infos,
136141
ArrayRef<Type*> Tys, LLVMContext &Context) {
137142
using namespace GenISAIntrinsic;

IGC/VectorCompiler/lib/InternalIntrinsics/InternalIntrinsics.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ static cl::opt<bool> EnableInternalIntrinsicsCache(
5151
// Metadata name for caching
5252
static StringRef InternalIntrinsicMDName{"internal_intrinsic_id"};
5353

54+
namespace {
55+
5456
/// IIT_Info - These are enumerators that describe the entries returned by the
5557
/// getIntrinsicInfoTableEntries function.
5658
///
@@ -102,6 +104,8 @@ enum IIT_Info {
102104
IIT_STRUCT8 = 40,
103105
IIT_F128 = 41
104106
};
107+
108+
} // namespace
105109
// define static const unsigned IIT_Table
106110
// define static const unsigned char IIT_LongEncodingTable
107111
#define GET_INTRINSIC_GENERATOR_GLOBAL

0 commit comments

Comments
 (0)