Add codegen for llvm log elementwise builtin
The log 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 builtin is restricted to floating point types only.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
248 ↗ | (On Diff #488339) | Looks like you accidentally included my unrelated commit, which caused Phabricator to summon me. |
Comment Actions
LGTM. This looks pretty straightforward and similar to other changes you've been making.
Shall we add log2 and log10 together?