[llvm-commits] [Review] Integer type legalization capable of supporting non-power-of-2 value types

Ken Dyck Ken.Dyck at onsemi.com
Tue Jan 5 08:13:27 PST 2010


The attached patch is an implementation of the changes to integer type
legalization that Duncan Sands outlined [1] for supporting
non-power-of-2 integer value types. Reviews appreciated.

It currently recalculates transformation information whenever it is
needed for extended types and all simple integer types that are larger
than the largest legal type, so memoizing might improve performance.
Thoughts? Is there any better implementation option than a std::map
keyed on the integer size?

-Ken

[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-December/027939.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: non-po2.TargetLowering.diff
Type: application/octet-stream
Size: 11748 bytes
Desc: non-po2.TargetLowering.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100105/a6007b89/attachment.obj>


More information about the llvm-commits mailing list