OSDN Git Service

radeonsi: initial WIP SI code
[android-x86/external-mesa.git] / src / gallium / drivers / radeon / AMDILCompilerWarnings.h
1 //===-- AMDILCompilerWarnings.h - TODO: Add brief description -------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
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.
14 namespace amd {
15
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] =
23     {
24         "W000:Barrier caused limited groupsize",
25         "W001:Dangerous Barrier Opt Detected! ",
26         "W002:Recoverable BE Error Detected!  "
27
28     };
29 }
30
31 #endif // _AMDIL_COMPILER_WARNINGS_H_