forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert r259035, it introduces a cyclic library dependency
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259045 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
22 changed files
with
246 additions
and
167 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//===-- AMDGPUDiagnosticInfoUnsupported.cpp -------------------------------===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "AMDGPUDiagnosticInfoUnsupported.h" | ||
|
||
using namespace llvm; | ||
|
||
DiagnosticInfoUnsupported::DiagnosticInfoUnsupported( | ||
const Function &Fn, | ||
const Twine &Desc, | ||
DiagnosticSeverity Severity) | ||
: DiagnosticInfo(getKindID(), Severity), | ||
Description(Desc), | ||
Fn(Fn) { } | ||
|
||
int DiagnosticInfoUnsupported::KindID = 0; | ||
|
||
void DiagnosticInfoUnsupported::print(DiagnosticPrinter &DP) const { | ||
DP << "unsupported " << getDescription() << " in " << Fn.getName(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//===-- AMDGPUDiagnosticInfoUnsupported.h - Error reporting -----*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUDIAGNOSTICINFOUNSUPPORTED_H | ||
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUDIAGNOSTICINFOUNSUPPORTED_H | ||
|
||
#include "llvm/IR/DiagnosticInfo.h" | ||
#include "llvm/IR/DiagnosticPrinter.h" | ||
|
||
namespace llvm { | ||
|
||
/// Diagnostic information for unimplemented or unsupported feature reporting. | ||
class DiagnosticInfoUnsupported : public DiagnosticInfo { | ||
private: | ||
const Twine &Description; | ||
const Function &Fn; | ||
|
||
static int KindID; | ||
|
||
static int getKindID() { | ||
if (KindID == 0) | ||
KindID = llvm::getNextAvailablePluginDiagnosticKind(); | ||
return KindID; | ||
} | ||
|
||
public: | ||
DiagnosticInfoUnsupported(const Function &Fn, const Twine &Desc, | ||
DiagnosticSeverity Severity = DS_Error); | ||
|
||
const Function &getFunction() const { return Fn; } | ||
const Twine &getDescription() const { return Description; } | ||
|
||
void print(DiagnosticPrinter &DP) const override; | ||
|
||
static bool classof(const DiagnosticInfo *DI) { | ||
return DI->getKind() == getKindID(); | ||
} | ||
}; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.