Searched refs:bitcode (Results 1 - 20 of 20) sorted by relevance

/frameworks/compile/libbcc/bcinfo/
H A DBitcodeWrapper.cpp31 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) argument
32 : mFileType(BC_NOT_BC), mBitcode(bitcode),
H A DBitcodeTranslator.cpp64 * compatible with LLVM's default bitcode reader).
71 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, argument
73 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(nullptr),
82 // the bitcode would be improper.
92 ALOGE("Invalid/empty bitcode");
119 // Do the actual transcoding by invoking a 2.7-era bitcode reader that can
120 // then write the bitcode back out in a more modern (acceptable) version.
135 ALOGE("No compatible bitcode reader for API version %d", mVersion);
140 ALOGE("Could not parse bitcode file");
151 // Use the LLVM 3.2 bitcode write
[all...]
H A DMetadataExtractor.cpp175 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) argument
176 : mModule(nullptr), mBitcode(bitcode), mBitcodeSize(bitcodeSize),
187 BitcodeWrapper wrapper(bitcode, bitcodeSize);
406 // Handle legacy case for pre-ICS bitcode that doesn't contain a metadata
591 ALOGE("Invalid/empty bitcode/module");
608 ALOGE("Could not parse bitcode file");
/frameworks/compile/libbcc/include/bcinfo/
H A DBitcodeTranslator.h34 * 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 (i
[all...]
H A DBitcodeWrapper.h62 * Reads wrapper information from \p bitcode.
64 * \param bitcode - input bitcode string.
65 * \param bitcodeSize - length of \p bitcode string (in bytes).
67 BitcodeWrapper(const char *bitcode, size_t bitcodeSize);
72 * Attempt to unwrap the target bitcode. This function is \deprecated.
79 * \return type of bitcode file.
86 * \return header version of bitcode wrapper.
93 * \return target API version for this bitcode.
100 * \return compiler version that generated this bitcode
[all...]
H A DMetadataExtractor.h135 * Reads metadata from \p bitcode.
137 * \param bitcode - input bitcode string.
138 * \param bitcodeSize - length of \p bitcode string (in bytes).
140 MetadataExtractor(const char *bitcode, size_t bitcodeSize);
152 * Extract the actual metadata from the supplied bitcode.
159 * \return target API level of this bitcode.
275 * \return compiler version that generated this bitcode.
282 * \return compiler optimization level for this bitcode.
/frameworks/base/rs/java/android/renderscript/
H A DScriptC.java122 private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { argument
124 return rs.nScriptCCreate(resName, RenderScript.getCachePath(), bitcode, bitcode.length);
/frameworks/compile/libbcc/bcinfo/tools/
H A Dmain.cpp50 // information about a supplied bitcode input file.
252 static size_t readBitcode(const char **bitcode) { argument
277 *bitcode = (const char*) calloc(1, bitcodeSize + 1);
278 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in);
288 static void releaseBitcode(const char **bitcode) { argument
289 if (bitcode && *bitcode) {
290 free((void*) *bitcode);
291 *bitcode = nullptr;
303 const char *bitcode local
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptC.java125 private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { argument
128 return rs.nScriptCCreate(resName, cachePath, bitcode, bitcode.length);
/frameworks/rs/cpu_ref/
H A DrsCpuScript.h41 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags,
117 const char* findCoreLib(const bcinfo::MetadataExtractor& bitCodeMetaData, const char* bitcode,
150 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize,
H A DrsCpuScript.cpp147 const char *bitcode,
150 rsAssert(bitcode && bitcodeSize);
157 size_t nwritten = fwrite(bitcode, 1, bitcodeSize, bcfile);
224 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize, argument
229 // include checksum of bitcode
230 if (bitcode != nullptr && bitcodeSize > 0) {
231 checksum = adler32(checksum, bitcode, bitcodeSize);
316 uint8_t const *bitcode, size_t bitcodeSize,
319 // bitcode, bitcodeSize, flags, lookupFunc);
326 bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSiz
146 compileBitcode(const std::string &bcFileName, const char *bitcode, size_t bitcodeSize, std::vector<const char *> &compileArguments) argument
315 init(char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags, char const *bccPluginName) argument
458 findCoreLib(const bcinfo::MetadataExtractor& ME, const char* bitcode, size_t bitcodeSize) argument
[all...]
H A DrsCpuCore.h173 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) override;
H A Drsd_cpu.h125 uint8_t const *bitcode, size_t bitcodeSize,
H A DrsCpuCore.cpp943 uint8_t const *bitcode, size_t bitcodeSize,
947 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags
941 createScript(const ScriptC *s, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
/frameworks/rs/
H A DrsScriptC.cpp286 const char *suffix, const uint8_t *bitcode,
305 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp);
321 const uint8_t *bitcode,
324 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen);
328 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen);
340 // about the bitcode.
348 bcinfo::BitcodeTranslator BT((const char *)bitcode, bitcodeLen,
351 ALOGE("Failed to translate bitcode from version: %u", sdkVersion);
354 bitcode = (const uint8_t *) BT.getTranslatedBitcode();
358 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLe
285 dumpBitcodeFile(const char *cacheDir, const char *resName, const char *suffix, const uint8_t *bitcode, size_t bitcodeLen) argument
318 runCompiler(Context *rsc, const char *resName, const char *cacheDir, const uint8_t *bitcode, size_t bitcodeLen) argument
[all...]
H A DrsScriptC.h59 const uint8_t *bitcode, size_t bitcodeLen);
H A Drs_hal.h154 uint8_t const *bitcode,
/frameworks/rs/driver/
H A DrsdBcc.cpp42 uint8_t const *bitcode,
47 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode,
38 rsdScriptInit(const Context *rsc, ScriptC *script, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
H A DrsdBcc.h25 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags);
/frameworks/compile/libbcc/tools/bcc/
H A DMain.cpp62 llvm::cl::desc("<input bitcode files>"));
290 ALOGE("Failed to compile bitcode, -bclib was not specified");
320 ALOGE("Failed to load bitcode from path %s! (%s)",
326 const char *bitcode = input_data->getBufferStart(); local
332 bitcode, bitcodeSize,
343 bitcode, bitcodeSize);
345 // If the bitcode fails verification in the bitcode loader, the returned Source is set to NULL.

Completed in 654 milliseconds