summaryrefslogtreecommitdiff
path: root/src/arch/hsail
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/hsail')
-rw-r--r--src/arch/hsail/insts/decl.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/arch/hsail/insts/decl.hh b/src/arch/hsail/insts/decl.hh
index f84cb61e9..3132a425a 100644
--- a/src/arch/hsail/insts/decl.hh
+++ b/src/arch/hsail/insts/decl.hh
@@ -1272,6 +1272,27 @@ namespace HsailISA
template<typename T> T heynot(T arg) { return ~arg; }
template<> inline bool heynot<bool>(bool arg) { return !arg; }
+
+
+ /* Explicitly declare template static member variables to avoid
+ * warnings in some clang versions
+ */
+ template<> const char *B1::label;
+ template<> const char *B8::label;
+ template<> const char *B16::label;
+ template<> const char *B32::label;
+ template<> const char *B64::label;
+ template<> const char *S8::label;
+ template<> const char *S16::label;
+ template<> const char *S32::label;
+ template<> const char *S64::label;
+ template<> const char *U8::label;
+ template<> const char *U16::label;
+ template<> const char *U32::label;
+ template<> const char *U64::label;
+ template<> const char *F32::label;
+ template<> const char *F64::label;
+
} // namespace HsailISA
#endif // __ARCH_HSAIL_INSTS_DECL_HH__