mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
The powers that be have decided that LLVM IR should now support 16-bit
"half precision" floating-point with a first-class type. This patch adds basic IR support (but not codegen support). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -203,6 +203,7 @@ typedef enum {
|
||||
|
||||
typedef enum {
|
||||
LLVMVoidTypeKind, /**< type with no size */
|
||||
LLVMHalfTypeKind, /**< 16 bit floating point type */
|
||||
LLVMFloatTypeKind, /**< 32 bit floating point type */
|
||||
LLVMDoubleTypeKind, /**< 64 bit floating point type */
|
||||
LLVMX86_FP80TypeKind, /**< 80 bit floating point type (X87) */
|
||||
@ -382,12 +383,14 @@ LLVMTypeRef LLVMIntType(unsigned NumBits);
|
||||
unsigned LLVMGetIntTypeWidth(LLVMTypeRef IntegerTy);
|
||||
|
||||
/* Operations on real types */
|
||||
LLVMTypeRef LLVMHalfTypeInContext(LLVMContextRef C);
|
||||
LLVMTypeRef LLVMFloatTypeInContext(LLVMContextRef C);
|
||||
LLVMTypeRef LLVMDoubleTypeInContext(LLVMContextRef C);
|
||||
LLVMTypeRef LLVMX86FP80TypeInContext(LLVMContextRef C);
|
||||
LLVMTypeRef LLVMFP128TypeInContext(LLVMContextRef C);
|
||||
LLVMTypeRef LLVMPPCFP128TypeInContext(LLVMContextRef C);
|
||||
|
||||
LLVMTypeRef LLVMHalfType(void);
|
||||
LLVMTypeRef LLVMFloatType(void);
|
||||
LLVMTypeRef LLVMDoubleType(void);
|
||||
LLVMTypeRef LLVMX86FP80Type(void);
|
||||
|
Reference in New Issue
Block a user