Add codegen for llvm log2 / log10 elementwise builtin
The log2/log10 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.
The new builtins are restricted to floating point types only.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks! Looks like a straight-forward extension of the existing builtins.
clang/test/Sema/aarch64-sve-vector-log-ops.c | ||
---|---|---|
17 | We should ideally not mention integer type here. Not directly related to the patch, but would be great to see this fixed. |
We should ideally not mention integer type here. Not directly related to the patch, but would be great to see this fixed.