summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-12-08 22:44:13 +0000
committerTim Northover <tnorthover@apple.com>2016-12-08 22:44:13 +0000
commitb58346f2f266ce9164e74ee2a01c0f676431f7cc (patch)
treeb541c63c670e64b00262218fe505fe121d3dff43 /llvm/lib/CodeGen
parent1e656ec137423caee482c0b1104597349b493661 (diff)
downloadbcm5719-llvm-b58346f2f266ce9164e74ee2a01c0f676431f7cc.tar.gz
bcm5719-llvm-b58346f2f266ce9164e74ee2a01c0f676431f7cc.zip
GlobalISel: fall back gracefully for debug intrinsics.
Supporting them properly is a reasonably complex chunk of work, so to allow bot testing before then we should at least be able to fall back to DAG ISel. llvm-svn: 289150
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
index 92607dc738e..936e1b804cb 100644
--- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
@@ -466,6 +466,12 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
switch (ID) {
default:
break;
+ case Intrinsic::dbg_declare:
+ case Intrinsic::dbg_value:
+ // FIXME: these obviously need to be supported properly.
+ MF->getProperties().set(
+ MachineFunctionProperties::Property::FailedISel);
+ return true;
case Intrinsic::uadd_with_overflow:
return translateOverflowIntrinsic(CI, TargetOpcode::G_UADDE, MIRBuilder);
case Intrinsic::sadd_with_overflow:
OpenPOWER on IntegriCloud