[tablegen] Add CustomCallingConv and use it to tablegen-erate the outermost parts...
[oota-llvm.git] / include / llvm / Target / TargetCallingConv.td
index d0bdd369839f35c20b4b1301f2e02ad370d315cf..d785aa8f453e559d8410b13f2f8612d3eec21f97 100644 (file)
@@ -147,6 +147,13 @@ class CCDelegateTo<CallingConv cc> : CCAction {
 /// that the target supports.
 class CallingConv<list<CCAction> actions> {
   list<CCAction> Actions = actions;
+  bit Custom = 0;
+}
+
+/// CustomCallingConv - An instance of this is used to declare calling
+/// conventions that are implemented using a custom function of the same name.
+class CustomCallingConv : CallingConv<[]> {
+  let Custom = 1;
 }
 
 /// CalleeSavedRegs - A list of callee saved registers for a given calling