cx-language / cx

C* is a hybrid low-level/high-level systems programming language focused on performance and productivity.
https://cx-language.github.io/
MIT License
130 stars 9 forks source link

llvm 8.0.0 #55

Closed ghost closed 4 years ago

ghost commented 5 years ago

When is delta going to be updated to use llvm version 8.0.0?

emlai commented 5 years ago

There's an LLVM 8.0 update commit in the llvm8 branch. However the Asteroids example project fails to build with it on my machine, the Clang invocation fails with the following:

<built-in>:102:51: error: invalid suffix 'F16' on floating constant
#define __FLT16_DENORM_MIN__ 5.9604644775390625e-8F16
                                                  ^
<built-in>:106:38: error: invalid suffix 'F16' on floating constant
#define __FLT16_EPSILON__ 9.765625e-4F16
                                     ^
<built-in>:112:32: error: invalid suffix 'F16' on floating constant
#define __FLT16_MAX__ 6.5504e+4F16
                               ^
<built-in>:115:37: error: invalid suffix 'F16' on floating constant
#define __FLT16_MIN__ 6.103515625e-5F16
                                    ^
<built-in>:102:51: error: invalid suffix 'F16' on floating constant
#define __FLT16_DENORM_MIN__ 5.9604644775390625e-8F16
                                                  ^
<built-in>:106:38: error: invalid suffix 'F16' on floating constant
#define __FLT16_EPSILON__ 9.765625e-4F16
                                     ^
<built-in>:112:32: error: invalid suffix 'F16' on floating constant
#define __FLT16_MAX__ 6.5504e+4F16
                               ^
<built-in>:115:37: error: invalid suffix 'F16' on floating constant
#define __FLT16_MIN__ 6.103515625e-5F16
                                    ^

Keeping master on LLVM 7 until this is resolved.

emlai commented 5 years ago

I think https://reviews.llvm.org/D57577 will fix this.

Let's hope it lands in LLVM 8.0.1.

emlai commented 4 years ago

Delta has now been updated to LLVM 9.0.0 (1c89deb0401bac3d4db547eddae854971ba0a4de).