/frameworks/compile/libbcc/bcinfo/tools/ |
main.cpp | 39 // information about a supplied bitcode input file. 143 static size_t readBitcode(const char **bitcode) { 168 *bitcode = (const char*) calloc(1, bitcodeSize + 1); 169 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); 179 static void releaseBitcode(const char **bitcode) { 180 if (bitcode && *bitcode) { 181 free((void*) *bitcode); 182 *bitcode = NULL; 194 const char *bitcode = NULL local [all...] |
/frameworks/compile/libbcc/bcinfo/ |
BitcodeWrapper.cpp | 24 #include "llvm/Bitcode/ReaderWriter.h" 31 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) 32 : mFileType(BC_NOT_BC), mBitcode(bitcode), 33 mBitcodeEnd(bitcode + bitcodeSize - 1), mBitcodeSize(bitcodeSize),
|
BitcodeTranslator.cpp | 28 #include "llvm/Bitcode/BitstreamWriter.h" 29 #include "llvm/Bitcode/ReaderWriter.h" 61 * compatible with LLVM's default bitcode reader). 68 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, 70 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(NULL), 79 // the bitcode would be improper. 89 ALOGE("Invalid/empty bitcode"); 95 ALOGE("Bitcode wrapper (%u) and translator (%u) disagree about target API", 115 // Do the actual transcoding by invoking a 2.7-era bitcode reader that can 116 // then write the bitcode back out in a more modern (acceptable) version [all...] |
MetadataExtractor.cpp | 25 #include "llvm/Bitcode/ReaderWriter.h" 61 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) 62 : mModule(NULL), mBitcode(bitcode), mBitcodeSize(bitcodeSize), 69 BitcodeWrapper wrapper(bitcode, bitcodeSize); 309 // Handle legacy case for pre-ICS bitcode that doesn't contain a metadata 382 ALOGE("Invalid/empty bitcode/module"); 398 ALOGE("Could not parse bitcode file");
|
/frameworks/compile/libbcc/include/bcinfo/ |
BitcodeTranslator.h | 34 * Translates \p bitcode of a particular \p version to the latest version. 36 * \param bitcode - input bitcode string. 37 * \param bitcodeSize - length of \p bitcode string (in bytes). 38 * \param version - corresponding target SDK version of \p bitcode. 40 BitcodeTranslator(const char *bitcode, size_t bitcodeSize, 46 * Translate the supplied bitcode to the latest supported version. 48 * \return true if the bitcode was translated successfully and false if an 54 * \return translated bitcode. 61 * \return size of the translated bitcode (in bytes) [all...] |
BitcodeWrapper.h | 63 * Reads wrapper information from \p bitcode. 65 * \param bitcode - input bitcode string. 66 * \param bitcodeSize - length of \p bitcode string (in bytes). 68 BitcodeWrapper(const char *bitcode, size_t bitcodeSize); 73 * Attempt to unwrap the target bitcode. This function is \deprecated. 80 * \return type of bitcode file. 87 * \return header version of bitcode wrapper. 94 * \return target API version for this bitcode. 101 * \return compiler version that generated this bitcode [all...] |
MetadataExtractor.h | 72 * Reads metadata from \p bitcode. 74 * \param bitcode - input bitcode string. 75 * \param bitcodeSize - length of \p bitcode string (in bytes). 77 MetadataExtractor(const char *bitcode, size_t bitcodeSize); 89 * Extract the actual metadata from the supplied bitcode. 181 * \return compiler version that generated this bitcode. 188 * \return compiler optimization level for this bitcode.
|
/external/llvm/bindings/ocaml/bitwriter/ |
llvm_bitwriter.mli | 10 (** Bitcode writer. 12 This interface provides an ocaml API for the LLVM bitcode writer, the 15 (** [write_bitcode_file m path] writes the bitcode for module [m] to the file at 20 (** [write_bitcode_to_fd ~unbuffered fd m] writes the bitcode for module 27 (** [output_bitcode ~unbuffered c m] writes the bitcode for module [m]
|
llvm_bitwriter.ml | 16 (* Writes the bitcode for module the given path. Returns true if successful. *)
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
SourceInfo.h | 44 // use module to store the pointer to parsed bitcode. 53 char const *bitcode; member in struct:bcc::SourceInfo::__anon17061::__anon17062 71 char const *bitcode,
|
SourceInfo.cpp | 28 #include <llvm/Bitcode/ReaderWriter.h> 43 char const *bitcode, 54 result->buffer.bitcode = bitcode; 69 calcSHA1(result->sha1, bitcode, bitcodeSize); 135 llvm::StringRef(buffer.bitcode, buffer.bitcodeSize), "", false)); 139 buffer.bitcode, (unsigned long)buffer.bitcodeSize);
|
bcc.cpp | 17 // Bitcode compiler (bcc) for Android: 79 char const *bitcode, 83 return unwrap(script)->addSourceBC(0, resName, bitcode, bitcodeSize, flags); 106 char const *bitcode, 110 return unwrap(script)->addSourceBC(1, resName, bitcode, bitcodeSize, flags);
|
Script.cpp | 77 const char *bitcode, 93 if (!bitcode) { 95 ALOGE("Invalid argument: bitcode = NULL\n"); 99 bcinfo::BitcodeWrapper wrapper(bitcode, bitcodeSize); 102 bitcode, bitcodeSize, 107 ALOGE("Out of memory while adding source bitcode\n"); 345 ALOGE("Source bitcode is not set.\n"); 349 // Parse Source bitcode file (if necessary) 355 // Parse Library bitcode file (if necessary)
|
Script.h | 116 const char *bitcode,
|
/external/llvm/bindings/ocaml/bitreader/ |
llvm_bitreader.mli | 10 (** Bitcode reader. 12 This interface provides an ocaml API for the LLVM bitcode reader, the 17 (** [get_module context mb] reads the bitcode for a new module [m] from the 24 (** [parse_bitcode context mb] parses the bitcode for a new module [m] from the
|
/frameworks/compile/libbcc/include/bcc/ |
bcc.h | 87 char const *bitcode, 102 char const *bitcode,
|
/frameworks/compile/mclinker/lib/MC/ |
MCLDInfo.cpp | 52 Input& MCLDInfo::bitcode() function in class:MCLDInfo 54 assert((0 != m_pBitcode) && "default bitcode is not set"); 58 const Input& MCLDInfo::bitcode() const function in class:MCLDInfo 60 assert((0 != m_pBitcode) && "default bitcode is not set");
|
/frameworks/compile/mclinker/include/mcld/MC/ |
MCLDInfo.h | 36 * bitcode() - the bitcode being linked 59 Input& bitcode(); 60 const Input& bitcode() const;
|
/external/llvm/ |
README.android | 36 * This downstreaming could have broken bitcode compatibility 37 * Upstream was migrating from 2.7 bitcode to 3.0 bitcode. 45 ==> * 020a5a4 - remove bitcode reader support for LLVM 2.7 metadata encoding. (13 days ago) <Chris Lattner> 47 * Our bitcode reader can read both 2.7 and 3.0 versions. Writer is tracking upstream.
|
/frameworks/rs/ |
rsScriptC.cpp | 198 const uint8_t *bitcode, 201 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 204 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen); 206 ALOGE("Bitcode is not in proper container format (raw or wrapper)"); 216 // about the bitcode. 223 BT = new bcinfo::BitcodeTranslator((const char *)bitcode, bitcodeLen, 226 ALOGE("Failed to translate bitcode from version: %u", sdkVersion); 231 bitcode = (const uint8_t *) BT->getTranslatedBitcode(); 235 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) {
|
rsScriptC.h | 62 const uint8_t *bitcode, size_t bitcodeLen);
|
/external/llvm/test/Bindings/Ocaml/ |
bitreader.ml | 55 (* corrupt the bitcode *) 58 output_string oc "not a bitcode file\n";
|
/frameworks/rs/driver/ |
rsdBcc.h | 26 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags);
|
/gdk/build/core/ |
build-all.mk | 40 BUILD_BITCODE := $(BUILD_SYSTEM)/build-bitcode.mk
|
/external/llvm/lib/Support/ |
Path.cpp | 218 return type == fs::file_magic::bitcode;
|