[llvm] 9dda41e - [BFloat] Move LLVMBFloatTypeKind to the end of the enum

Ties Stuij via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 17:51:58 PDT 2020


Author: Ties Stuij
Date: 2020-06-19T01:51:44+01:00
New Revision: 9dda41e43327fd73ed9a7cc205ef0e222cc8726e

URL: https://github.com/llvm/llvm-project/commit/9dda41e43327fd73ed9a7cc205ef0e222cc8726e
DIFF: https://github.com/llvm/llvm-project/commit/9dda41e43327fd73ed9a7cc205ef0e222cc8726e.diff

LOG: [BFloat] Move LLVMBFloatTypeKind to the end of the enum

Summary: so it doesn't change the C ABI

Reviewers: deadalnix

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82135

Added: 
    

Modified: 
    llvm/include/llvm-c/Core.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index 38560546d96a..2c7b4c6eff10 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -146,7 +146,6 @@ typedef enum {
 typedef enum {
   LLVMVoidTypeKind,      /**< type with no size */
   LLVMHalfTypeKind,      /**< 16 bit floating point type */
-  LLVMBFloatTypeKind,    /**< 16 bit brain floating point type */
   LLVMFloatTypeKind,     /**< 32 bit floating point type */
   LLVMDoubleTypeKind,    /**< 64 bit floating point type */
   LLVMX86_FP80TypeKind,  /**< 80 bit floating point type (X87) */
@@ -162,7 +161,8 @@ typedef enum {
   LLVMMetadataTypeKind,  /**< Metadata */
   LLVMX86_MMXTypeKind,   /**< X86 MMX */
   LLVMTokenTypeKind,     /**< Tokens */
-  LLVMScalableVectorTypeKind /**< Scalable SIMD vector type */
+  LLVMScalableVectorTypeKind, /**< Scalable SIMD vector type */
+  LLVMBFloatTypeKind     /**< 16 bit brain floating point type */
 } LLVMTypeKind;
 
 typedef enum {


        


More information about the llvm-commits mailing list