diff --git a/llvm/bindings/go/llvm/ir.go b/llvm/bindings/go/llvm/ir.go index c1daf829608c..4c350ac66f67 100644 --- a/llvm/bindings/go/llvm/ir.go +++ b/llvm/bindings/go/llvm/ir.go @@ -224,21 +224,22 @@ const ( //------------------------------------------------------------------------- const ( - VoidTypeKind TypeKind = C.LLVMVoidTypeKind - FloatTypeKind TypeKind = C.LLVMFloatTypeKind - DoubleTypeKind TypeKind = C.LLVMDoubleTypeKind - X86_FP80TypeKind TypeKind = C.LLVMX86_FP80TypeKind - FP128TypeKind TypeKind = C.LLVMFP128TypeKind - PPC_FP128TypeKind TypeKind = C.LLVMPPC_FP128TypeKind - LabelTypeKind TypeKind = C.LLVMLabelTypeKind - IntegerTypeKind TypeKind = C.LLVMIntegerTypeKind - FunctionTypeKind TypeKind = C.LLVMFunctionTypeKind - StructTypeKind TypeKind = C.LLVMStructTypeKind - ArrayTypeKind TypeKind = C.LLVMArrayTypeKind - PointerTypeKind TypeKind = C.LLVMPointerTypeKind - VectorTypeKind TypeKind = C.LLVMVectorTypeKind - MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind - TokenTypeKind TypeKind = C.LLVMTokenTypeKind + VoidTypeKind TypeKind = C.LLVMVoidTypeKind + FloatTypeKind TypeKind = C.LLVMFloatTypeKind + DoubleTypeKind TypeKind = C.LLVMDoubleTypeKind + X86_FP80TypeKind TypeKind = C.LLVMX86_FP80TypeKind + FP128TypeKind TypeKind = C.LLVMFP128TypeKind + PPC_FP128TypeKind TypeKind = C.LLVMPPC_FP128TypeKind + LabelTypeKind TypeKind = C.LLVMLabelTypeKind + IntegerTypeKind TypeKind = C.LLVMIntegerTypeKind + FunctionTypeKind TypeKind = C.LLVMFunctionTypeKind + StructTypeKind TypeKind = C.LLVMStructTypeKind + ArrayTypeKind TypeKind = C.LLVMArrayTypeKind + PointerTypeKind TypeKind = C.LLVMPointerTypeKind + MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind + TokenTypeKind TypeKind = C.LLVMTokenTypeKind + FixedVectorTypeKind TypeKind = C.LLVMFixedVectorTypeKind + ScalableVectorTypeKind TypeKind = C.LLVMScalableVectorTypeKind ) //------------------------------------------------------------------------- diff --git a/llvm/bindings/go/llvm/string.go b/llvm/bindings/go/llvm/string.go index bd48d4bc170a..5bd894ea6cac 100644 --- a/llvm/bindings/go/llvm/string.go +++ b/llvm/bindings/go/llvm/string.go @@ -40,10 +40,12 @@ func (t TypeKind) String() string { return "ArrayTypeKind" case PointerTypeKind: return "PointerTypeKind" - case VectorTypeKind: - return "VectorTypeKind" case MetadataTypeKind: return "MetadataTypeKind" + case FixedVectorTypeKind: + return "FixedVectorTypeKind" + case ScalableVectorTypeKind: + return "ScalableVectorTypeKind" } panic("unreachable") }