summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZCallingConv.h
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2019-11-04 13:26:38 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2019-11-04 13:45:51 +0100
commit22f9429149a8faed1f5770aca89e68409ae2cc4f (patch)
treee783a393bedbacfd5217848b30aded8f6ee9e172 /llvm/lib/Target/SystemZ/SystemZCallingConv.h
parent499c90afe9099ff700ca8c8f44a2cbf94b1dd627 (diff)
downloadbcm5719-llvm-22f9429149a8faed1f5770aca89e68409ae2cc4f.tar.gz
bcm5719-llvm-22f9429149a8faed1f5770aca89e68409ae2cc4f.zip
[SystemZ] Add GHC calling convention
This is a special calling convention to be used by the GHC compiler. Author: Stefan Schulze Frielinghaus Differential Revision: https://reviews.llvm.org/D69024
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZCallingConv.h')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZCallingConv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZCallingConv.h b/llvm/lib/Target/SystemZ/SystemZCallingConv.h
index 82f29b6361f..4432adc6a26 100644
--- a/llvm/lib/Target/SystemZ/SystemZCallingConv.h
+++ b/llvm/lib/Target/SystemZ/SystemZCallingConv.h
@@ -124,6 +124,13 @@ inline bool CC_SystemZ_I128Indirect(unsigned &ValNo, MVT &ValVT,
return true;
}
+inline bool CC_SystemZ_GHC_Error(unsigned &, MVT &, MVT &,
+ CCValAssign::LocInfo &, ISD::ArgFlagsTy &,
+ CCState &) {
+ report_fatal_error("No registers left in GHC calling convention");
+ return false;
+}
+
} // end namespace llvm
#endif
OpenPOWER on IntegriCloud