[Mesa-dev] [PATCH 1/2] R600: Dump the function name when TargetLowering::LowerCall() fails
Tom Stellard
tom at stellard.net
Thu Feb 7 14:23:47 PST 2013
From: Tom Stellard <thomas.stellard at amd.com>
Also output a more useful error message.
NOTE: This is a candidate for the Mesa stable branches
---
lib/Target/R600/AMDGPUISelLowering.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/Target/R600/AMDGPUISelLowering.h b/lib/Target/R600/AMDGPUISelLowering.h
index 927ed09..4b844a3 100644
--- a/lib/Target/R600/AMDGPUISelLowering.h
+++ b/lib/Target/R600/AMDGPUISelLowering.h
@@ -53,6 +53,11 @@ public:
const SmallVectorImpl<ISD::OutputArg> &Outs,
const SmallVectorImpl<SDValue> &OutVals,
DebugLoc DL, SelectionDAG &DAG) const;
+ virtual SDValue LowerCall(CallLoweringInfo &CLI,
+ SmallVectorImpl<SDValue> &InVals) const {
+ CLI.Callee.dump();
+ llvm_unreachable("Undefined function");
+ }
virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerIntrinsicIABS(SDValue Op, SelectionDAG &DAG) const;
--
1.7.8.6
More information about the mesa-dev
mailing list