llvm-project
95dddf6e - libclc: Add frexp_exp utility function

Commit
47 days ago
libclc: Add frexp_exp utility function Many functions want to extract the exponent and currently rely on bithacking to do it. These can be better handled with frexp. AMDGPU has a dedicated instruction for each of the frexp return values. Other targets could override this to do the bithacking (though they would be better off teaching codegen to optimize frexp with a discarded output).
Author
Committer
Parents
Loading