[llvm-commits] CVS: llvm/include/llvm/CallingConv.h
Chris Lattner
lattner at cs.uiuc.edu
Fri May 19 14:19:14 PDT 2006
Changes in directory llvm/include/llvm:
CallingConv.h updated: 1.2 -> 1.3
---
Log message:
Add new calling convention, as documented in LangRef.html
---
Diffs of the changes: (+7 -0)
CallingConv.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/CallingConv.h
diff -u llvm/include/llvm/CallingConv.h:1.2 llvm/include/llvm/CallingConv.h:1.3
--- llvm/include/llvm/CallingConv.h:1.2 Wed Feb 22 10:23:42 2006
+++ llvm/include/llvm/CallingConv.h Fri May 19 16:19:02 2006
@@ -27,6 +27,13 @@
// As with typical C calling conventions, the callee/caller have to tolerate
// certain amounts of prototype mismatch.
C = 0,
+
+ /// CSRet - C Struct Return calling convention. This convention requires
+ /// that the function return void and take a pointer as the first argument
+ /// of the struct. This is used by targets which need to distinguish
+ /// between C functions returning a structure, and C functions taking a
+ /// structure pointer as the first argument to the function.
+ CSRet = 1,
// Generic LLVM calling conventions. None of these calling conventions
More information about the llvm-commits
mailing list