aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-12 18:00:49 +0000
committerDan Gohman <gohman@apple.com>2010-10-12 18:00:49 +0000
commit320afb8c818b5cd5b9d4fcd0dba83ba3384ed4b4 (patch)
treee9f21f0a487672547e31382ef3144e7f392a6035 /lib/Target/X86/X86ISelLowering.h
parent8e157302f4991b08a625b05238e01d12c82a2976 (diff)
downloadexternal_llvm-320afb8c818b5cd5b9d4fcd0dba83ba3384ed4b4.zip
external_llvm-320afb8c818b5cd5b9d4fcd0dba83ba3384ed4b4.tar.gz
external_llvm-320afb8c818b5cd5b9d4fcd0dba83ba3384ed4b4.tar.bz2
Initial va_arg support for x86-64. Patch by David Meyer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.h')
-rw-r--r--lib/Target/X86/X86ISelLowering.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h
index 1a2da74..34c72c9 100644
--- a/lib/Target/X86/X86ISelLowering.h
+++ b/lib/Target/X86/X86ISelLowering.h
@@ -310,7 +310,11 @@ namespace llvm {
/// slots. This corresponds to the X86::FST32m / X86::FST64m. It takes a
/// chain operand, value to store, address, and a ValueType to store it
/// as.
- FST
+ FST,
+
+ /// VAARG_64 - This instruction grabs the address of the next argument
+ /// from a va_list. (reads and modifies the va_list in memory)
+ VAARG_64
// WARNING: Do not add anything in the end unless you want the node to
// have memop! In fact, starting from ATOMADD64_DAG all opcodes will be
@@ -853,6 +857,11 @@ namespace llvm {
MachineBasicBlock *BB,
unsigned cmovOpc) const;
+ // Utility function to emit the low-level va_arg code for X86-64.
+ MachineBasicBlock *EmitVAARG64WithCustomInserter(
+ MachineInstr *MI,
+ MachineBasicBlock *MBB) const;
+
/// Utility function to emit the xmm reg save portion of va_start.
MachineBasicBlock *EmitVAStartSaveXMMRegsWithCustomInserter(
MachineInstr *BInstr,