summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon/AMDILCompilerWarnings.h
blob: c257980a1e4d9fc3db11662849e23be5cc821da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//===-- AMDILCompilerWarnings.h - TODO: Add brief description -------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//==-----------------------------------------------------------------------===//
#ifndef _AMDIL_COMPILER_WARNINGS_H_
#define _AMDIL_COMPILER_WARNINGS_H_
/// Compiler backend generated warnings that might cause
/// issues with compilation. These warnings become errors if
/// -Werror is specified on the command line.
namespace amd {

#define LIMIT_BARRIER 0
#define BAD_BARRIER_OPT 1
#define RECOVERABLE_ERROR 2
#define NUM_WARN_MESSAGES 3
    /// All warnings must be prefixed with the W token or they might be
    /// treated as errors.
    static const char *CompilerWarningMessage[NUM_WARN_MESSAGES] =
    {
        "W000:Barrier caused limited groupsize",
        "W001:Dangerous Barrier Opt Detected! ",
        "W002:Recoverable BE Error Detected!  "

    };
}

#endif // _AMDIL_COMPILER_WARNINGS_H_