Home | History | Annotate | Download | only in Reader

Lines Matching full:bitcode

10 #include "llvm/Bitcode/ReaderWriter.h"
15 #include "llvm/Bitcode/BitstreamReader.h"
16 #include "llvm/Bitcode/LLVMBitCodes.h"
145 // Contains an arbitrary and optional string identifying the bitcode producer
150 // Support older bitcode without the MODULE_CODE_METADATA_VALUES record.
187 // Map the bitcode's custom MDKind ID to the Module's MDKind ID.
252 /// \brief Main interface to parsing a bitcode buffer.
262 /// Cheap mechanism to just extract the identification block out of bitcode.
283 // "epoch" encoded in the bitcode.
413 /// Class to manage reading and parsing function summary index bitcode
434 /// of the function summary bitcode section. All blocks are skipped,
448 /// for the combined index this maps the summary record's bitcode
481 /// \brief Main interface to parsing a bitcode buffer.
1134 // Functions for parsing blocks from the bitcode file
1321 // Note: Alignment in bitcode files is incremented by 1, so that zero
1754 // Compute the delta between the bitcode indices in the VST (the word offset
1919 "Inconsistent bitcode: METADATA_VALUES mismatch");
2365 // Support older bitcode files that had METADATA_KIND records in a
2550 unsigned BitCode = Stream.readRecord(Entry.ID, Record);
2551 switch (BitCode) {
2645 BitCode == bitc::CST_CODE_CSTRING);
2771 BitCode ==
3134 /// either have an old bitcode file without a VST forward declaration record,
3146 // An old bitcode file with the symbol table at the end would have
3193 unsigned BitCode = Stream.readRecord(Entry.ID, Record);
3194 switch (BitCode) {
3206 Twine("Incompatible epoch: Bitcode '") + Twine(epoch) +
3332 // Support older bitcode files that did not have the function
3340 // materialization calls will resume it when necessary. If the bitcode
3366 auto BitCode = Stream.readRecord(Entry.ID, Record);
3367 switch (BitCode) {
3613 bool NewRecord = BitCode == bitc::MODULE_CODE_ALIAS;
3636 // Old bitcode files didn't have visibility field.
3678 // based on their ordering in the bitcode, with the function-level
3696 /// Helper to read the header common to all bitcode files.
3719 return error("Invalid bitcode signature");
3792 return error("Invalid bitcode signature");
3827 return error("Invalid bitcode signature");
4012 unsigned BitCode = Stream.readRecord(Entry.ID, Record);
4013 switch (BitCode) {
4150 if (BitCode == bitc::FUNC_CODE_INST_GEP) {
4154 InBounds = BitCode == bitc::FUNC_CODE_INST_INBOUNDS_GEP_OLD;
4273 // handles select i1 ... in old bitcode
4530 if (BitCode == bitc::FUNC_CODE_INST_CLEANUPPAD)
4541 // format were reverted but we still recognize bitcode that uses it.
4752 if (BitCode == bitc::FUNC_CODE_INST_LANDINGPAD) {
4756 assert(BitCode == bitc::FUNC_CODE_INST_LANDINGPAD_OLD);
4763 if (BitCode == bitc::FUNC_CODE_INST_LANDINGPAD_OLD) {
4894 (BitCode == bitc::FUNC_CODE_INST_STORE
4918 (BitCode == bitc::FUNC_CODE_INST_STOREATOMIC
4951 (BitCode == bitc::FUNC_CODE_INST_CMPXCHG
4980 // value loaded from memory, so bitcode files from that era will be
5198 /// Find the function body in the bitcode stream
5203 // This is the fallback handling for the old format bitcode that
5223 // In older bitcode we must materialize the metadata before parsing
5336 return error("Invalid bitcode signature");
5342 return error("Invalid bitcode wrapper header");
5352 // Check and strip off the bitcode wrapper; BitstreamReader expects never to
5362 return error("Invalid bitcode signature");
5365 return error("Invalid bitcode signature");
5411 // the function block's bitcode offset as well as the offset into the
5576 // via the bitcode offset of the summary records (which were saved
5657 // Parse the function info index from the bitcode streamer into the given index.
5667 return error("Invalid bitcode signature");
5708 return error("Invalid bitcode signature");
5746 return error("Invalid bitcode signature");
5752 return error("Invalid bitcode wrapper header");
5762 // Check and strip off the bitcode wrapper; BitstreamReader expects never to
5772 return error("Invalid bitcode signature");
5775 return error("Invalid bitcode signature");
5790 return "llvm.bitcode";
5796 return "Invalid bitcode signature";
5798 return "Corrupted bitcode";
5844 /// \brief Get a lazy one-at-time loading module from bitcode.
5890 // TODO: Restore the use-lists to the in-memory state when the bitcode was
5914 // Parse the specified bitcode buffer, returning the function info index.
5940 // Check if the given bitcode buffer contains a function summary block.