OSDN Git Service

Update go bindings for 2dea3f129878e929e5d1f00b91a622eb1ec8be4e
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 22 Apr 2020 17:02:01 +0000 (19:02 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 22 Apr 2020 17:02:59 +0000 (19:02 +0200)
llvm/bindings/go/llvm/ir.go
llvm/bindings/go/llvm/string.go

index c1daf82..4c350ac 100644 (file)
@@ -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
 )
 
 //-------------------------------------------------------------------------
index bd48d4b..5bd894e 100644 (file)
@@ -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")
 }