joaosaffran wrote:

After discussing with @bogner and @farzonl, we decided the following: 

- Using `static_assert` for the errors makes the user experience inconsistent, 
since we expect the type checking to happen in `SemaHLSL.cpp`, as other 
builtins.
- The 16 bit casts don't have this problem (because that would be a lossy 
conversion).
- Therefore, we should introduce a builtin for hlsl-specific 32-bit casts, this 
can be reused to implement `asfloat`.

https://github.com/llvm/llvm-project/pull/107292
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to