Update the SIMD builtin load functions to take pointers to const data and update
the intrinsics themselves to not cast away constness.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Why do only these instructions have const? It doesn't apply to other read-only arguments?
Comment Actions
It only matters for pointer parameters. For example, const int * is meaningfully different from int *, but const int is not usefully different from int.
Comment Actions
I see, thanks. Then other load instructions are OK not to be fixed?
- v128.load
- v128.loadN_splat
- v128.loadNxM_s/u
Comment Actions
Yep, the intrinsics for those instructions were already using const pointers correctly.