PR12696: Attribute bits above 1<<30 are not encoded in bitcode
authorMeador Inge <meadori@gmail.com>
Mon, 28 May 2012 15:45:43 +0000 (15:45 +0000)
committerMeador Inge <meadori@gmail.com>
Mon, 28 May 2012 15:45:43 +0000 (15:45 +0000)
commite17b69a3734ea08677684bf0e66003552f2e06f4
tree333a2bdb7854e8104c4d77859c2dfaf3e5b71b42
parentdb892de5816789614e864503aa296a9c76c344b6
PR12696: Attribute bits above 1<<30 are not encoded in bitcode

Attribute bits above 1<<30 are now encoded correctly.  Additionally,
the encoding/decoding functionality has been hoisted to helper functions
in Attributes.h in an effort to help the encoding/decoding to stay in
sync with the Attribute bitcode definitions.

llvm-svn: 157581
llvm/include/llvm/Attributes.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Bitcode/attributes.ll [new file with mode: 0644]