1 //===-- AMDILCompilerWarnings.h - TODO: Add brief description -------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //==-----------------------------------------------------------------------===//
9 #ifndef _AMDIL_COMPILER_WARNINGS_H_
10 #define _AMDIL_COMPILER_WARNINGS_H_
11 /// Compiler backend generated warnings that might cause
12 /// issues with compilation. These warnings become errors if
13 /// -Werror is specified on the command line.
16 #define LIMIT_BARRIER 0
17 #define BAD_BARRIER_OPT 1
18 #define RECOVERABLE_ERROR 2
19 #define NUM_WARN_MESSAGES 3
20 /// All warnings must be prefixed with the W token or they might be
21 /// treated as errors.
22 static const char *CompilerWarningMessage[NUM_WARN_MESSAGES] =
24 "W000:Barrier caused limited groupsize",
25 "W001:Dangerous Barrier Opt Detected! ",
26 "W002:Recoverable BE Error Detected! "
31 #endif // _AMDIL_COMPILER_WARNINGS_H_