Add two new calling conventions for runtime calls

Press ? to show keyboard shortcuts.
Committed
ributzkaJan 17 2014, 11:47 AM
Parents
rL199507: Update Win snapshot and clang-format extension to r199319
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

Add two new calling conventions for runtime calls

This patch adds two new target-independent calling conventions for runtime
calls - PreserveMost and PreserveAll.
The target-specific implementation for X86-64 is defined as following:

  • Arguments are passed as for the default C calling convention
  • The same applies for the return value(s)
  • PreserveMost preserves all GPRs - except R11
  • PreserveAll preserves all GPRs and all XMMs/YMMs - except R11

Reviewed by Lang and Philip

rL199508

llvm/trunk/docs/BitCodeFormat.rst

Loading...

llvm/trunk/docs/LangRef.rst

Loading...

llvm/trunk/include/llvm/IR/CallingConv.h

Loading...

llvm/trunk/lib/AsmParser/LLLexer.cpp

Loading...

llvm/trunk/lib/AsmParser/LLParser.cpp

Loading...

llvm/trunk/lib/AsmParser/LLToken.h

Loading...

llvm/trunk/lib/IR/AsmWriter.cpp

Loading...

llvm/trunk/lib/Target/X86/X86CallingConv.td

Loading...

llvm/trunk/lib/Target/X86/X86RegisterInfo.cpp

Loading...

llvm/trunk/test/CodeGen/X86/preserve_allcc64.ll

Loading...

llvm/trunk/test/CodeGen/X86/preserve_mostcc64.ll

Loading...

Add Comment