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

/frameworks/compile/libbcc/bcinfo/
H A DBitcodeWrapper.cpp28 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) argument
29 : mFileType(BC_NOT_BC), mBitcode(bitcode),
H A DBitcodeTranslator.cpp66 * compatible with LLVM's default bitcode reader).
78 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, argument
80 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(nullptr),
89 // the bitcode would be improper.
99 ALOGE("Invalid/empty bitcode");
126 // Do the actual transcoding by invoking a 2.7-era bitcode reader that can
127 // then write the bitcode back out in a more modern (acceptable) version.
142 ALOGE("No compatible bitcode reader for API version %d", mVersion);
147 ALOGE("Could not parse bitcode file");
160 // Use the LLVM 3.2 bitcode write
[all...]
H A DMetadataExtractor.cpp180 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) argument
181 : mModule(nullptr), mBitcode(bitcode), mBitcodeSize(bitcodeSize),
192 BitcodeWrapper wrapper(bitcode, bitcodeSize);
416 // Handle legacy case for pre-ICS bitcode that doesn't contain a metadata
601 ALOGE("Invalid/empty bitcode/module");
618 ALOGE("Could not parse bitcode file");
/frameworks/compile/libbcc/bcinfo/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 // bitcode wrapper should have been stored when we use the
140 * Reads metadata from \p bitcode.
142 * \param bitcode - input bitcode string.
143 * \param bitcodeSize - length of \p bitcode string (in bytes).
145 MetadataExtractor(const char *bitcode, size_t bitcodeSize);
159 * Extract the actual metadata from the supplied bitcode.
272 * \return compiler version indicating which guarantees this bitcode is
280 * \return compiler optimization level for this bitcode. In the case of
281 * linked bitcode (user_bitcod
[all...]
/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/rs/rsov/compiler/
H A Drs2spirv.cpp68 errs() << "Fails to load bitcode: " << EC.message();
90 std::vector<char> bitcode = android::spirit::readFile<char>(InputFile); local
92 new bcinfo::MetadataExtractor(bitcode.data(), bitcode.size()));
/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/rs/support/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.h43 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags,
119 const char* findCoreLib(const bcinfo::MetadataExtractor& bitCodeMetaData, const char* bitcode,
152 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize,
H A DrsCpuScript.cpp124 const char *bitcode,
127 rsAssert(bitcode && bitcodeSize);
134 size_t nwritten = fwrite(bitcode, 1, bitcodeSize, bcfile);
201 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize, argument
206 // include checksum of bitcode
207 if (bitcode != nullptr && bitcodeSize > 0) {
208 checksum = adler32(checksum, bitcode, bitcodeSize);
293 uint8_t const *bitcode, size_t bitcodeSize,
296 // bitcode, bitcodeSize, flags, lookupFunc);
303 bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSiz
123 compileBitcode(const std::string &bcFileName, const char *bitcode, size_t bitcodeSize, std::vector<const char *> &compileArguments) argument
292 init(char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags, char const *bccPluginName) argument
444 findCoreLib(const bcinfo::MetadataExtractor& ME, const char* bitcode, size_t bitcodeSize) argument
[all...]
H A DrsCpuCore.h175 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) override;
H A Drsd_cpu.h129 uint8_t const *bitcode, size_t bitcodeSize,
H A DrsCpuCore.cpp941 uint8_t const *bitcode, size_t bitcodeSize,
945 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags
939 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.cpp263 const char *suffix, const uint8_t *bitcode,
282 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp);
297 const uint8_t *bitcode,
300 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen);
303 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen);
315 // about the bitcode.
323 bcinfo::BitcodeTranslator BT((const char *)bitcode, bitcodeLen,
326 ALOGE("Failed to translate bitcode from version: %u", sdkVersion);
329 bitcode = (const uint8_t *) BT.getTranslatedBitcode();
333 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLe
262 dumpBitcodeFile(const char *cacheDir, const char *resName, const char *suffix, const uint8_t *bitcode, size_t bitcodeLen) argument
294 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.h157 uint8_t const *bitcode,
/frameworks/rs/driver/
H A DrsdBcc.cpp41 uint8_t const *bitcode,
46 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode,
37 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/rs/rsov/driver/
H A DrsovScript.cpp87 const char *bitcode, size_t bitcodeSize) {
88 rsAssert(bitcode && bitcodeSize);
97 writeBytes(bcFileName.c_str(), bitcode, bitcodeSize);
686 char const *cacheDir, uint8_t const *bitcode,
691 script, resName, cacheDir, bitcode, bitcodeSize, flags));
700 new bcinfo::MetadataExtractor((const char *)bitcode, bitcodeSize));
702 ALOGE("Could not extract metadata from bitcode from %s", resName);
707 compileBitcode(resName, cacheDir, (const char *)bitcode, bitcodeSize);
86 compileBitcode(const char *resName, const char *cacheDir, const char *bitcode, size_t bitcodeSize) argument
685 rsovScriptInit(const Context *rsc, ScriptC *script, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
H A DrsovScript.h148 uint8_t const *bitcode, size_t bitcodeSize,
/frameworks/compile/libbcc/tools/bcc/
H A DMain.cpp59 llvm::cl::desc("<input bitcode files>"));
287 ALOGE("Failed to compile bitcode, -bclib was not specified");
317 ALOGE("Failed to load bitcode from path %s! (%s)",
323 const char *bitcode = input_data->getBufferStart(); local
329 bitcode, bitcodeSize,
340 bitcode, bitcodeSize);
342 // If the bitcode fails verification in the bitcode loader, the returned Source is set to NULL.

Completed in 392 milliseconds