Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 24182 Build 24181: arc lint + arc unit
Event Timeline
include/clang/Basic/BuiltinsWebAssembly.def | ||
---|---|---|
85 | Do you think we need to provide this builtin also for other vector types? |
include/clang/Basic/BuiltinsWebAssembly.def | ||
---|---|---|
85 | This builtin is interesting because there is basically no reason for the mask to be the same type as the vectors. So we could have 36 versions of this, one for each pair of vector types. Or if we required the mask to be a vector of integers we could cut that down to just 24 versions. But no matter what types you use, this builtin does the exact same thing to the bits. So in the end it seems simpler to have just one version and have users convert between vector types. Without the -fno-lax-vector-conversions flag, clang will silently convert between vector types for you anyway, so there's no real ergonomic loss either (not that ergonomics really matter for builtins). |
Do you think we need to provide this builtin also for other vector types?