[PATCH] D42350: Add constructor DWARF calling convention for every supported LLVM CC

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 22 05:26:50 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL328191: Add vendor specific calling convention to DWARF (authored by JDevlieghere, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42350?vs=131005&id=139430#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42350

Files:
  llvm/trunk/include/llvm/BinaryFormat/Dwarf.def


Index: llvm/trunk/include/llvm/BinaryFormat/Dwarf.def
===================================================================
--- llvm/trunk/include/llvm/BinaryFormat/Dwarf.def
+++ llvm/trunk/include/llvm/BinaryFormat/Dwarf.def
@@ -708,6 +708,7 @@
 HANDLE_DW_CC(0x04, pass_by_reference)
 HANDLE_DW_CC(0x05, pass_by_value)
 // Vendor extensions:
+HANDLE_DW_CC(0x40, GNU_renesas_sh)
 HANDLE_DW_CC(0x41, GNU_borland_fastcall_i386)
 HANDLE_DW_CC(0xb0, BORLAND_safecall)
 HANDLE_DW_CC(0xb1, BORLAND_stdcall)
@@ -717,6 +718,22 @@
 HANDLE_DW_CC(0xb5, BORLAND_thiscall)
 HANDLE_DW_CC(0xb6, BORLAND_fastcall)
 HANDLE_DW_CC(0xc0, LLVM_vectorcall)
+HANDLE_DW_CC(0xc1, LLVM_Win64)
+HANDLE_DW_CC(0xc2, LLVM_X86_64SysV)
+HANDLE_DW_CC(0xc3, LLVM_AAPCS)
+HANDLE_DW_CC(0xc4, LLVM_AAPCS_VFP)
+HANDLE_DW_CC(0xc5, LLVM_IntelOclBicc)
+HANDLE_DW_CC(0xc6, LLVM_SpirFunction)
+HANDLE_DW_CC(0xc7, LLVM_OpenCLKernel)
+HANDLE_DW_CC(0xc8, LLVM_Swift)
+HANDLE_DW_CC(0xc9, LLVM_PreserveMost)
+HANDLE_DW_CC(0xca, LLVM_PreserveAll)
+HANDLE_DW_CC(0xcb, LLVM_X86RegCall)
+// From GCC source code (include/dwarf2.h): This DW_CC_ value is not currently
+// generated by any toolchain.  It is used internally to GDB to indicate OpenCL C
+// functions that have been compiled with the IBM XL C for OpenCL compiler and use
+// a non-platform calling convention for passing OpenCL C vector types.
+HANDLE_DW_CC(0xff, GDB_IBM_OpenCL)
 
 // Line Number Extended Opcode Encodings
 HANDLE_DW_LNE(0x01, end_sequence)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42350.139430.patch
Type: text/x-patch
Size: 1468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180322/1d152fdf/attachment.bin>


More information about the llvm-commits mailing list