Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
This will conflict with D84159.
Why does the IR have rint, lrint, and llrint? libm has all 3, but they seem to just differ by the return integer type? Why isn't there just the one rint intrinsic and clang is responsible for picking the right result type?
Comment Actions
Ok. I can see there's a different in FP exception behavior for rint but I'm not sure what the difference is between llvm.lrint.i64.f32 and llvm.llrint.f32.
Comment Actions
These intrinsics were added a lot more recently than I thought by D62017
I think it doesn't really make sense to provide these redundant intrinsics, and math intrinsics are not supposed to provide a 1:1 wrapper around libm. But they're there now, and I would like to eliminate the intrinsic handling delta against SelectionDAG