[PATCH] add a function to translate subregister lane masks to other subregs.

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Aug 16 10:08:38 PDT 2013


On Aug 15, 2013, at 3:55 PM, Matthias Braun <mbraun at apple.com> wrote:

> Here’s the next part of my lane mask patches. This one adds a function to transform lane masks in a similar fashion like composeSubRegisterIndices does for sub registers.
> I’m putting this here for an early review. It probably does not make too much sense committing this now before more of the subreg alloc work is finished.

How big are the new tables?

+        "    Result |= (Masked << Ops->RotateLeft) & 0xFFFFFFFF;\n"
+        "    Result |= (Masked >> (32 - Ops->RotateLeft));\n”

C unfortunately defines Masked >> 32 to be undefined behavior.

Thanks,
/jakob





More information about the llvm-commits mailing list