File tree Expand file tree Collapse file tree 4 files changed +5
-0
lines changed
llvm/include/llvm/BinaryFormat Expand file tree Collapse file tree 4 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2991,6 +2991,7 @@ enum CXCallingConv {
2991
2991
CXCallingConv_AArch64SVEPCS = 18 ,
2992
2992
CXCallingConv_M68kRTD = 19 ,
2993
2993
CXCallingConv_PreserveNone = 20 ,
2994
+ CXCallingConv_RISCVVectorCall = 21 ,
2994
2995
2995
2996
CXCallingConv_Invalid = 100 ,
2996
2997
CXCallingConv_Unexposed = 200
Original file line number Diff line number Diff line change @@ -1452,6 +1452,8 @@ static unsigned getDwarfCC(CallingConv CC) {
1452
1452
return llvm::dwarf::DW_CC_LLVM_M68kRTD;
1453
1453
case CC_PreserveNone:
1454
1454
return llvm::dwarf::DW_CC_LLVM_PreserveNone;
1455
+ case CC_RISCVVectorCall:
1456
+ return llvm::dwarf::DW_CC_LLVM_RISCVVectorCall;
1455
1457
}
1456
1458
return 0 ;
1457
1459
}
Original file line number Diff line number Diff line change @@ -680,6 +680,7 @@ CXCallingConv clang_getFunctionTypeCallingConv(CXType X) {
680
680
TCALLINGCONV (PreserveAll);
681
681
TCALLINGCONV (M68kRTD);
682
682
TCALLINGCONV (PreserveNone);
683
+ TCALLINGCONV (RISCVVectorCall);
683
684
case CC_SpirFunction: return CXCallingConv_Unexposed;
684
685
case CC_AMDGPUKernelCall: return CXCallingConv_Unexposed;
685
686
case CC_OpenCLKernel: return CXCallingConv_Unexposed;
Original file line number Diff line number Diff line change @@ -1040,6 +1040,7 @@ HANDLE_DW_CC(0xca, LLVM_PreserveAll)
1040
1040
HANDLE_DW_CC(0xcb , LLVM_X86RegCall)
1041
1041
HANDLE_DW_CC(0xcc , LLVM_M68kRTD)
1042
1042
HANDLE_DW_CC(0xcd , LLVM_PreserveNone)
1043
+ HANDLE_DW_CC(0xce , LLVM_RISCVVectorCall)
1043
1044
// From GCC source code (include/dwarf2.h): This DW_CC_ value is not currently
1044
1045
// generated by any toolchain. It is used internally to GDB to indicate OpenCL
1045
1046
// C functions that have been compiled with the IBM XL C for OpenCL compiler and
You can’t perform that action at this time.
0 commit comments