HomeSort by relevance Sort by last modified time
    Searched refs:bitcode (Results 1 - 23 of 23) sorted by null

  /frameworks/compile/libbcc/bcinfo/tools/
main.cpp 38 // information about a supplied bitcode input file.
110 static size_t readBitcode(const char **bitcode) {
135 *bitcode = (const char*) calloc(1, bitcodeSize + 1);
136 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in);
146 static void releaseBitcode(const char **bitcode) {
147 if (bitcode && *bitcode) {
148 free((void*) *bitcode);
149 *bitcode = NULL;
161 const char *bitcode = NULL local
    [all...]
  /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...]
MetadataExtractor.h 53 * Reads metadata from \p bitcode.
55 * \param bitcode - input bitcode string.
56 * \param bitcodeSize - length of \p bitcode string (in bytes).
58 MetadataExtractor(const char *bitcode, size_t bitcodeSize);
63 * Extract the actual metadata from the supplied 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.
49 char const *bitcode; member in struct:bcc::SourceInfo::__anon15548::__anon15549
69 char const *bitcode,
SourceInfo.cpp 49 char const *bitcode,
60 result->buffer.bitcode = bitcode;
76 calcSHA1(result->sha1, bitcode, bitcodeSize);
142 llvm::StringRef(buffer.bitcode, buffer.bitcodeSize)));
146 buffer.bitcode, (unsigned long)buffer.bitcodeSize);
bcc.cpp 17 // Bitcode compiler (bcc) for Android:
77 char const *bitcode,
81 return unwrap(script)->addSourceBC(0, resName, bitcode, bitcodeSize, flags);
104 char const *bitcode,
108 return unwrap(script)->addSourceBC(1, resName, bitcode, bitcodeSize, flags);
Script.h 96 const char *bitcode,
Script.cpp 85 const char *bitcode,
101 if (!bitcode) {
103 LOGE("Invalid argument: bitcode = NULL\n");
108 bitcode, bitcodeSize,
113 LOGE("Out of memory while adding source bitcode\n");
341 // Parse Bitcode File (if necessary)
344 LOGE("Unable to parse bitcode for source[%lu]\n", (unsigned long)i);
351 LOGE("Source bitcode is not setted.\n");
  /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/bcinfo/
BitcodeTranslator.cpp 25 #include "llvm/Bitcode/BitstreamWriter.h"
26 #include "llvm/Bitcode/ReaderWriter.h"
50 * compatible with LLVM's default bitcode reader).
55 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize,
57 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(NULL),
66 // the bitcode would be improper.
76 LOGE("Invalid/empty bitcode");
96 // Do the actual transcoding by invoking a 2.7-era bitcode reader that can
97 // then write the bitcode back out in a more modern (acceptable) version.
108 LOGE("Could not parse bitcode file")
    [all...]
MetadataExtractor.cpp 23 #include "llvm/Bitcode/ReaderWriter.h"
53 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize)
54 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mExportVarCount(0),
173 // Handle legacy case for pre-ICS bitcode that doesn't contain a metadata
216 LOGE("Invalid/empty bitcode");
229 LOGE("Could not parse bitcode file");
  /frameworks/compile/libbcc/include/bcc/
bcc.h 75 char const *bitcode,
90 char const *bitcode,
  /external/llvm/
README.android 24 * This downstreaming could have broken bitcode compatibility
25 * Upstream was migrating from 2.7 bitcode to 3.0 bitcode.
33 ==> * 020a5a4 - remove bitcode reader support for LLVM 2.7 metadata encoding. (13 days ago) <Chris Lattner>
35 * Our bitcode reader can read both 2.7 and 3.0 versions. Writer is tracking upstream.
  /frameworks/compile/libbcc/tests/
main.cpp 188 std::vector<char> bitcode(bitcodeSize + 1, '\0');
189 size_t nread = fread(&*bitcode.begin(), 1, bitcodeSize, in);
196 if (bccReadBC(script, "file", &*bitcode.begin(), bitcodeSize, 0) != 0) {
197 fprintf(stderr, "bcc: FAILS to read bitcode");
  /external/llvm/test/Bindings/Ocaml/
bitreader.ml 55 (* corrupt the bitcode *)
58 output_string oc "not a bitcode file\n";
  /frameworks/base/libs/rs/
rsScriptC.cpp 194 const uint8_t *bitcode,
197 //LOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen);
203 BT = new bcinfo::BitcodeTranslator((const char *)bitcode, bitcodeLen,
206 LOGE("Failed to translate bitcode from version: %u", sdkVersion);
211 bitcode = (const uint8_t *) BT->getTranslatedBitcode();
215 rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0);
rsScriptC.h 61 const uint8_t *bitcode, size_t bitcodeLen);
rs_hal.h 75 uint8_t const *bitcode,
  /frameworks/base/libs/rs/driver/
rsdBcc.h 26 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags);
rsdBcc.cpp 69 uint8_t const *bitcode,
72 //LOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc);
89 drv->mScriptText = bitcode;
111 LOGE("bcc: FAILS to read bitcode");
116 LOGE("bcc: FAILS to link bitcode");
  /external/llvm/tools/llvm-config/
llvm-config.in.in 200 engine Either a native JIT or a bitcode interpreter.

Completed in 126 milliseconds