[IR] Limit bits used for CallingConv::ID, update tests
authorVedant Kumar <vsk@apple.com>
Tue, 27 Oct 2015 21:17:06 +0000 (21:17 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 27 Oct 2015 21:17:06 +0000 (21:17 +0000)
commitefc0b08f2b66a17585aefb2b7af1a4e6df34a8cf
treec7fa2e3cc92b582039ef7450ec4f517a02fdf22b
parentb741ea5c1725abbc70bf5a2a689be86a64f0791f
[IR] Limit bits used for CallingConv::ID, update tests

Use 10 bits to represent calling convention ID's instead of 13, and
update the bitcode compatibility tests accordingly. We now error-out in
the bitcode reader when we see bad calling conv ID's.

Thanks to rnk and dexonsmith for feedback!

Differential Revision: http://reviews.llvm.org/D13826

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251452 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallingConv.h
include/llvm/IR/Function.h
include/llvm/IR/Instructions.h
lib/Bitcode/Reader/BitcodeReader.cpp
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