llvm-6502/test/Bitcode/Inputs
Rafael Espindola 0c650627ca Improve handling of end of file in the bitcode reader.
Before this patch the bitcode reader would read a module from a file
that contained in order:

* Any number of non MODULE_BLOCK sub blocks.
* One MODULE_BLOCK
* Any number of non MODULE_BLOCK sub blocks.
* 4 '\n' characters to handle OS X's ranlib.

Since we support lazy reading of modules, any information that is relevant
for the module has to be in the MODULE_BLOCK or before it. We don't gain
anything from checking what is after.

This patch then changes the reader to stop once the MODULE_BLOCK has been
successfully parsed.

This avoids the ugly special case for .bc files in an archive and makes it
easier to embed bitcode files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239845 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-16 20:03:39 +00:00
..
invalid-abbrev-fixed-size-too-big.bc Verify sizes when trying to read a BitcodeAbbrevOp 2015-04-23 13:25:35 +00:00
invalid-abbrev-no-operands.bc [BitcodeReader] Make sure abbrev records have at least one operand (record code) 2015-05-26 23:52:21 +00:00
invalid-abbrev-vbr-size-too-big.bc Verify sizes when trying to read a BitcodeAbbrevOp 2015-04-23 13:25:35 +00:00
invalid-abbrev.bc
invalid-alias-type-mismatch.bc [BitcodeReader] Diagnose type mismatches with aliases 2015-06-03 01:30:13 +00:00
invalid-align.bc
invalid-array-element-type.bc Make sure that isValidElementType(Type) before calling {Array,Struct}Type::get(Type) 2015-04-29 01:27:01 +00:00
invalid-array-op-not-2nd-to-last.bc Turn an assert into report_fatal_error since it's reachable based on user input 2015-04-29 01:58:31 +00:00
invalid-array-operand-encoding.bc [BitstreamReader] Make sure the Array operand type is an encoding 2015-05-27 00:48:43 +00:00
invalid-array-type.bc Be more strict about the operand for the array type in BitcodeReader 2015-04-23 13:38:21 +00:00
invalid-bad-abbrev-number.bc
invalid-bitwidth.bc
invalid-call-mismatched-explicit-type.bc
invalid-call-non-function-explicit-type.bc
invalid-code-len-width.bc [BitcodeReader] It's a malformed block if CodeLenWidth is too big 2015-05-19 00:34:17 +00:00
invalid-extract-0-indices.bc [BitcodeReader] Don't allow INSERTVAL/EXTRACTVAL with 0 indices 2015-05-16 00:33:12 +00:00
invalid-extractval-array-idx.bc
invalid-extractval-struct-idx.bc
invalid-extractval-too-many-idxs.bc
invalid-fixme-streaming-blob.bc Change a reachable unreachable to a fatal error. 2015-05-19 18:18:10 +00:00
invalid-fp-shift.bc
invalid-function-argument-type.bc [BitcodeReader] Error out if we read an invalid function argument type 2015-05-19 01:21:06 +00:00
invalid-function-comdat-id.bc [BitcodeReader] Sanity check on Comdat ID 2015-05-26 23:00:56 +00:00
invalid-fwdref-type-mismatch-2.bc [BitcodeReader] Change assert to report_fatal_error 2015-05-27 01:05:40 +00:00
invalid-fwdref-type-mismatch.bc Relax an assert when there's a type mismatch in forward references 2015-04-28 20:18:47 +00:00
invalid-GCTable-overflow.bc Don't overflow GCTable 2015-04-30 04:09:41 +00:00
invalid-gep-mismatched-explicit-type.bc
invalid-gep-operator-mismatched-explicit-type.bc
invalid-global-var-comdat-id.bc [BitcodeReader] Sanity check on Comdat ID 2015-05-26 23:00:56 +00:00
invalid-insert-0-indices.bc [BitcodeReader] Don't allow INSERTVAL/EXTRACTVAL with 0 indices 2015-05-16 00:33:12 +00:00
invalid-inserted-value-type-mismatch.bc [BitcodeReader] Make sure the type of the inserted value matches the type of the aggregate at those indices 2015-05-18 22:27:11 +00:00
invalid-insertval-array-idx.bc
invalid-insertval-struct-idx.bc
invalid-insertval-too-many-idxs.bc
invalid-invoke-mismatched-explicit-type.bc [opaque pointer type] bitcode: add explicit callee type to invoke instructions 2015-04-24 18:06:06 +00:00
invalid-invoke-non-function-explicit-type.bc [opaque pointer type] bitcode: add explicit callee type to invoke instructions 2015-04-24 18:06:06 +00:00
invalid-load-mismatched-explicit-type.bc
invalid-load-pointer-type.bc Make sure Op->getType() is a PointerType before we cast<> it. 2015-04-30 01:13:31 +00:00
invalid-load-ptr-type.bc Extract the load/store type verification to a separate function. 2015-05-18 21:48:55 +00:00
invalid-metadata-not-followed-named-node.bc [BitcodeReader] Change an assert to a call to a call to Error() 2015-05-30 00:17:20 +00:00
invalid-no-proper-module.bc
invalid-non-vector-extractelement.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-non-vector-insertelement.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-non-vector-shufflevector.bc [BitcodeReader] Fix asserts when we read a non-vector type for insert/extract/shuffle 2015-04-24 11:30:15 +00:00
invalid-pointer-element-type.bc Check that we have a valid PointerType element type before calling get() 2015-04-29 02:27:28 +00:00
invalid-pr20485.bc
invalid-too-big-fwdref.bc Make sure we don't resize(0) when we get a fwdref with Idx == UINT_MAX 2015-04-30 00:52:42 +00:00
invalid-type-table-forward-ref.bc
invalid-unexpected-eof.bc
invalid-vector-element-type.bc Make sure that isValidElementType(Type) before calling {Array,Struct}Type::get(Type) 2015-04-29 01:27:01 +00:00
invalid-vector-length.bc [Bitcode] Minimize the test to not conflict with others 2015-06-03 01:30:08 +00:00
padding-garbage.bc Improve handling of end of file in the bitcode reader. 2015-06-16 20:03:39 +00:00
padding.bc Add a test for padded bitcode files. 2015-06-16 16:36:15 +00:00