[PATCH] D13826: [Bitcode] Limit bits used for CallingConv::ID in Function, update tests

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 12:56:26 PDT 2015


vsk created this revision.
vsk added reviewers: dblaikie, dexonsmith.
vsk added a subscriber: llvm-commits.

- Use 10 bits to represent calling convention ID's instead of 13.
- Update the bitcode compatibility tests to reflect this change.

We currently implement about 80 calling conventions. This change lowers the cap to 1023 CC's (from 8191). This gives us back reserve bits in Function's subclass data field, which I plan on using soon.

I've also fixed syntax errors in the compatibility tests caused by accidental 3.6 -> 3.8 IR conversion.

http://reviews.llvm.org/D13826

Files:
  include/llvm/IR/Function.h
  test/Bitcode/compatibility-3.6.ll
  test/Bitcode/compatibility-3.6.ll.bc
  test/Bitcode/compatibility-3.7.ll
  test/Bitcode/compatibility-3.7.ll.bc
  test/Bitcode/compatibility.ll
  test/Bitcode/tailcall.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13826.37625.patch
Type: text/x-patch
Size: 10996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151016/b94fdfdf/attachment.bin>


More information about the llvm-commits mailing list