[PATCH] D58138: [GlobalISel][NFC] Gardening: Factor out more intrinsics into simple intrinsics
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 12 10:29:18 PST 2019
paquette created this revision.
paquette added reviewers: aemerson, dsanders, arsenm.
Herald added subscribers: Petar.Avramovic, volkan, kristof.beyls, rovka, wdng.
Found another place where we can just factor out a bunch of intrinsics and make it a bit easier to add more of these. The only difference between a "simple intrinsic" and, say, the overflow intrinsics is that simple intrinsics only have a single result.
This teaches translateSimpleIntrinsic to handle an arbitrary number of destination registers. Then we can factor out all of the overflow intrinsics, and delete `translateOverflowIntrinsic` entirely. Also makes the overflow intrinsics respect IR flags, which weren't being copied over in `translateOverflowIntrinsic`.
By doing this, we can add IRTranslator support for any intrinsic that can be "straight-line" translated by adding it to `getSimpleIntrinsicOpcode`.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3844 bytes
Desc: not available
More information about the llvm-commits