Add codegen for llvm bitreverse elementwise builtin
The bitreverse elementwise builtin is necessary for HLSL codegen.
Tests were added to make sure that the expected errors are encountered when these functions are given inputs of incompatible types, or too many inputs.
The new builtin is restricted to integer types only.
Details
Details
- Reviewers
arsenm fhahn - Commits
- rG57f879cdd4c6: clang: Add elementwise bitreverse builtin
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/LanguageExtensions.rst | ||
---|---|---|
634 ↗ | (On Diff #544830) | Unrelated but I noticed a couple of the elementwise builtins are missing from this list if you're fixing up the docs for them. Can't remember which off the top of my head |
clang/test/Sema/builtins-elementwise-math.c | ||
272 | Test the vector of float case? |
Comment Actions
- add float4 test
clang/docs/LanguageExtensions.rst | ||
---|---|---|
634 ↗ | (On Diff #544830) | Are you sure? |
Test the vector of float case?