blob: 15a455ae29b288abfbf93b4ed5b1ae81f50693cf [file] [log] [blame]
Juergen Ributzka9969d3e2013-11-08 23:28:16 +00001//=== X86CallingConv.h - X86 Custom Calling Convention Routines -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the custom routines for the X86 Calling Convention that
11// aren't done by tablegen.
12//
13//===----------------------------------------------------------------------===//
14
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000015#ifndef LLVM_LIB_TARGET_X86_X86CALLINGCONV_H
16#define LLVM_LIB_TARGET_X86_X86CALLINGCONV_H
Juergen Ributzka9969d3e2013-11-08 23:28:16 +000017
18#include "llvm/CodeGen/CallingConvLower.h"
19#include "llvm/IR/CallingConv.h"
20
21namespace llvm {
22
23inline bool CC_X86_AnyReg_Error(unsigned &, MVT &, MVT &,
24 CCValAssign::LocInfo &, ISD::ArgFlagsTy &,
25 CCState &) {
26 llvm_unreachable("The AnyReg calling convention is only supported by the " \
27 "stackmap and patchpoint intrinsics.");
28 // gracefully fallback to X86 C calling convention on Release builds.
29 return false;
30}
31
Juergen Ributzka9969d3e2013-11-08 23:28:16 +000032} // End llvm namespace
33
34#endif
35