diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-08-31 18:42:55 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-08-31 18:42:55 +0000 |
commit | 0a243f47b0e88ef348100234ec7a6cc2d9e43728 (patch) | |
tree | 0dad6a0ed9fc23f7684522e97e20e5f189371fd3 /llvm/lib | |
parent | 83a120337af08649fe338f89537bbc7dc58476da (diff) | |
download | bcm5719-llvm-0a243f47b0e88ef348100234ec7a6cc2d9e43728.tar.gz bcm5719-llvm-0a243f47b0e88ef348100234ec7a6cc2d9e43728.zip |
[DiagnosticInfo] Add a diagnostic class for the fallback of ISel.
This will be used to warm when we fallback in GlobalISel.
llvm-svn: 280271
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index ce67be328ab..7dd4cab734d 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -262,3 +262,7 @@ void llvm::emitLoopInterleaveWarning(LLVMContext &Ctx, const Function &Fn, Ctx.diagnose(DiagnosticInfoOptimizationFailure( Fn, DLoc, Twine("loop not interleaved: " + Msg))); } + +void DiagnosticInfoISelFallback::print(DiagnosticPrinter &DP) const { + DP << "Instruction selection used fallback path for " << getFunction(); +} |