Add codegen for llvm pow elementwise builtin
The pow 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 floating point types only.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Add a test for the strictfp case (there's an existing strictfp test for all the elementwise builtins)
clang/lib/CodeGen/CGBuiltin.cpp | ||
---|---|---|
3241 | emitBinaryBuiltin? |
Comment Actions
Code looks fine, patch title is a bit confusing. Don't say codegen, and say clang: Add elementwise pow builtin?
clang/test/CodeGen/strictfp-elementwise-bulitins.cpp | ||
---|---|---|
223 | This is broken but I know this is a pre-existing broken with the others |
emitBinaryBuiltin?