Copied from the existing llvm.amdgcn.class handling; eventually I will
fold that to the generic intrinsic when legal. The tests should
probably move into an instsimplify only test.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Are there any plans for a Mask2Enum function such that your code could become a switch statement?
Comment Actions
I don't see how that would help here. Each bit test needs to be performed in sequence, it's not a simple enum mapping