Mercurial > hg > CbC > CbC_llvm
comparison include/llvm/Bitcode/BitcodeReader.h @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
comparison
equal
deleted
inserted
replaced
146:3fc4d5c3e21e | 148:63bd29f05246 |
---|---|
1 //===- llvm/Bitcode/BitcodeReader.h - Bitcode reader ------------*- C++ -*-===// | 1 //===- llvm/Bitcode/BitcodeReader.h - Bitcode reader ------------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 // | 4 // See https://llvm.org/LICENSE.txt for license information. |
5 // This file is distributed under the University of Illinois Open Source | 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 // License. See LICENSE.TXT for details. | |
7 // | 6 // |
8 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
9 // | 8 // |
10 // This header defines interfaces to read LLVM bitcode files/streams. | 9 // This header defines interfaces to read LLVM bitcode files/streams. |
11 // | 10 // |
14 #ifndef LLVM_BITCODE_BITCODEREADER_H | 13 #ifndef LLVM_BITCODE_BITCODEREADER_H |
15 #define LLVM_BITCODE_BITCODEREADER_H | 14 #define LLVM_BITCODE_BITCODEREADER_H |
16 | 15 |
17 #include "llvm/ADT/ArrayRef.h" | 16 #include "llvm/ADT/ArrayRef.h" |
18 #include "llvm/ADT/StringRef.h" | 17 #include "llvm/ADT/StringRef.h" |
19 #include "llvm/Bitcode/BitCodes.h" | 18 #include "llvm/Bitstream/BitCodes.h" |
20 #include "llvm/IR/ModuleSummaryIndex.h" | 19 #include "llvm/IR/ModuleSummaryIndex.h" |
21 #include "llvm/Support/Endian.h" | 20 #include "llvm/Support/Endian.h" |
22 #include "llvm/Support/Error.h" | 21 #include "llvm/Support/Error.h" |
23 #include "llvm/Support/ErrorOr.h" | 22 #include "llvm/Support/ErrorOr.h" |
24 #include "llvm/Support/MemoryBuffer.h" | 23 #include "llvm/Support/MemoryBuffer.h" |
49 | 48 |
50 /// Basic information extracted from a bitcode module to be used for LTO. | 49 /// Basic information extracted from a bitcode module to be used for LTO. |
51 struct BitcodeLTOInfo { | 50 struct BitcodeLTOInfo { |
52 bool IsThinLTO; | 51 bool IsThinLTO; |
53 bool HasSummary; | 52 bool HasSummary; |
53 bool EnableSplitLTOUnit; | |
54 }; | 54 }; |
55 | 55 |
56 /// Represents a module in a bitcode file. | 56 /// Represents a module in a bitcode file. |
57 class BitcodeModule { | 57 class BitcodeModule { |
58 // This covers the identification (if present) and module blocks. | 58 // This covers the identification (if present) and module blocks. |