github.com/llir/llvm@v0.3.6/ir/enum/callingconv_string.go (about) 1 // Code generated by "stringer -linecomment -type CallingConv"; DO NOT EDIT. 2 3 package enum 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[CallingConvNone-0] 12 _ = x[CallingConvC-1] 13 _ = x[CallingConvFast-8] 14 _ = x[CallingConvCold-9] 15 _ = x[CallingConvGHC-10] 16 _ = x[CallingConvHiPE-11] 17 _ = x[CallingConvWebKitJS-12] 18 _ = x[CallingConvAnyReg-13] 19 _ = x[CallingConvPreserveMost-14] 20 _ = x[CallingConvPreserveAll-15] 21 _ = x[CallingConvSwift-16] 22 _ = x[CallingConvCXXFastTLS-17] 23 _ = x[CallingConvTail-18] 24 _ = x[CallingConvCFGuardCheck-19] 25 _ = x[CallingConvSwiftTail-20] 26 _ = x[CallingConvX86StdCall-64] 27 _ = x[CallingConvX86FastCall-65] 28 _ = x[CallingConvARM_APCS-66] 29 _ = x[CallingConvARM_AAPCS-67] 30 _ = x[CallingConvARM_AAPCS_VFP-68] 31 _ = x[CallingConvMSP430Interrupt-69] 32 _ = x[CallingConvX86ThisCall-70] 33 _ = x[CallingConvPTXKernel-71] 34 _ = x[CallingConvPTXDevice-72] 35 _ = x[CallingConvSPIRFunc-75] 36 _ = x[CallingConvSPIRKernel-76] 37 _ = x[CallingConvIntelOCL_BI-77] 38 _ = x[CallingConvX86_64SysV-78] 39 _ = x[CallingConvWin64-79] 40 _ = x[CallingConvX86VectorCall-80] 41 _ = x[CallingConvHHVM-81] 42 _ = x[CallingConvHHVM_C-82] 43 _ = x[CallingConvX86Interrupt-83] 44 _ = x[CallingConvAVRInterrupt-84] 45 _ = x[CallingConvAVRSignal-85] 46 _ = x[CallingConvAVRBuiltin-86] 47 _ = x[CallingConvAMDGPU_VS-87] 48 _ = x[CallingConvAMDGPU_GS-88] 49 _ = x[CallingConvAMDGPU_PS-89] 50 _ = x[CallingConvAMDGPU_CS-90] 51 _ = x[CallingConvAMDGPUKernel-91] 52 _ = x[CallingConvX86RegCall-92] 53 _ = x[CallingConvAMDGPU_HS-93] 54 _ = x[CallingConvMSP430Builtin-94] 55 _ = x[CallingConvAMDGPU_LS-95] 56 _ = x[CallingConvAMDGPU_ES-96] 57 _ = x[CallingConvAArch64VectorCall-97] 58 _ = x[CallingConvAArch64SVEVectorCall-98] 59 _ = x[CallingConvAMDGPUGfx-100] 60 } 61 62 const ( 63 _CallingConv_name_0 = "noneccc" 64 _CallingConv_name_1 = "fastcccoldccghccccc 11webkit_jsccanyregccpreserve_mostccpreserve_allccswiftcccxx_fast_tlscctailcccfguard_checkccswifttailcc" 65 _CallingConv_name_2 = "x86_stdcallccx86_fastcallccarm_apcsccarm_aapcsccarm_aapcs_vfpccmsp430_intrccx86_thiscallccptx_kernelptx_device" 66 _CallingConv_name_3 = "spir_funcspir_kernelintel_ocl_biccx86_64_sysvccwin64ccx86_vectorcallcchhvmcchhvm_cccx86_intrccavr_intrccavr_signalcccc 86amdgpu_vsamdgpu_gsamdgpu_psamdgpu_csamdgpu_kernelx86_regcallccamdgpu_hscc 94amdgpu_lsamdgpu_esaarch64_vector_pcsaarch64_sve_vector_pcs" 67 _CallingConv_name_4 = "amdgpu_gfx" 68 ) 69 70 var ( 71 _CallingConv_index_0 = [...]uint8{0, 4, 7} 72 _CallingConv_index_1 = [...]uint8{0, 6, 12, 17, 22, 33, 41, 56, 70, 77, 91, 97, 112, 123} 73 _CallingConv_index_2 = [...]uint8{0, 13, 27, 37, 48, 63, 76, 90, 100, 110} 74 _CallingConv_index_3 = [...]uint8{0, 9, 20, 34, 47, 54, 70, 76, 84, 94, 104, 116, 121, 130, 139, 148, 157, 170, 183, 192, 197, 206, 215, 233, 255} 75 ) 76 77 func (i CallingConv) String() string { 78 switch { 79 case i <= 1: 80 return _CallingConv_name_0[_CallingConv_index_0[i]:_CallingConv_index_0[i+1]] 81 case 8 <= i && i <= 20: 82 i -= 8 83 return _CallingConv_name_1[_CallingConv_index_1[i]:_CallingConv_index_1[i+1]] 84 case 64 <= i && i <= 72: 85 i -= 64 86 return _CallingConv_name_2[_CallingConv_index_2[i]:_CallingConv_index_2[i+1]] 87 case 75 <= i && i <= 98: 88 i -= 75 89 return _CallingConv_name_3[_CallingConv_index_3[i]:_CallingConv_index_3[i+1]] 90 case i == 100: 91 return _CallingConv_name_4 92 default: 93 return "CallingConv(" + strconv.FormatInt(int64(i), 10) + ")" 94 } 95 }