aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode/BitstreamWriter.h
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-09-05 09:41:53 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-09-05 09:41:53 -0700
commitcd4a14419f49fb236d65e5b69d871d6fc61fcb99 (patch)
treeddb320f736845f4aa93ef3ab42400f1fbf69584e /include/llvm/Bitcode/BitstreamWriter.h
parent1180f259c88b1eb1000d0aaf5753b3da9f8e4e51 (diff)
PNaCl bitcode: Indirect calls: Store return type instead of function type
For indirect call instructions (INST_CALL_INDIRECT), it's not necessary to store the full function type. The argument types are already known from the arguments in the instruction. We only need to store the return type to be able to reconstruct the full function type. Storing only the return type ID will make the bitcode a little more compact. Return type IDs will be frequently-used scalar types, which can be given smaller type IDs than function types, which are less frequently used. This potentially makes the writer simpler: In principle, the writer no longer needs to make a pass across all functions' bodies to determine which function types are used in order to build the type table. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3544 TEST=*.ll tests Review URL: https://codereview.chromium.org/23521005
Diffstat (limited to 'include/llvm/Bitcode/BitstreamWriter.h')
0 files changed, 0 insertions, 0 deletions