/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptC.java | 135 private static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { argument 143 return rs.nScriptCCreate(resName, mCachePath, bitcode, bitcode.length);
|
/frameworks/compile/libbcc/bcinfo/ |
H A D | BitcodeTranslator.cpp | 64 * compatible with LLVM's default bitcode reader). 71 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, argument 73 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(NULL), 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"); 148 // Use the LLVM 3.2 bitcode write [all...] |
H A D | BitcodeWrapper.cpp | 31 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) argument 32 : mFileType(BC_NOT_BC), mBitcode(bitcode),
|
H A D | MetadataExtractor.cpp | 63 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) argument 64 : mModule(NULL), mBitcode(bitcode), mBitcodeSize(bitcodeSize), 71 BitcodeWrapper wrapper(bitcode, bitcodeSize); 328 // Handle legacy case for pre-ICS bitcode that doesn't contain a metadata 401 ALOGE("Invalid/empty bitcode/module"); 417 ALOGE("Could not parse bitcode file");
|
/frameworks/compile/libbcc/bcinfo/tools/ |
H A D | main.cpp | 50 // information about a supplied bitcode input file. 216 static size_t readBitcode(const char **bitcode) { argument 241 *bitcode = (const char*) calloc(1, bitcodeSize + 1); 242 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); 252 static void releaseBitcode(const char **bitcode) { argument 253 if (bitcode && *bitcode) { 254 free((void*) *bitcode); 255 *bitcode = NULL; 267 const char *bitcode local [all...] |
/frameworks/compile/libbcc/include/bcinfo/ |
H A D | 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 (i [all...] |
H A D | BitcodeWrapper.h | 62 * 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 D | MetadataExtractor.h | 71 * Reads metadata from \p bitcode. 73 * \param bitcode - input bitcode string. 74 * \param bitcodeSize - length of \p bitcode string (in bytes). 76 MetadataExtractor(const char *bitcode, size_t bitcodeSize); 88 * Extract the actual metadata from the supplied bitcode. 180 * \return compiler version that generated this bitcode. 187 * \return compiler optimization level for this bitcode.
|
/frameworks/compile/libbcc/tools/bcc/ |
H A D | Main.cpp | 59 llvm::cl::desc("<input bitcode file>")); 196 ALOGE("Failed to load bitcode from path %s! (%s)", 202 const char *bitcode = input_data->getBufferStart(); local 218 bool built = RSCD.build(context, OptOutputPath.c_str(), OptOutputFilename.c_str(), bitcode,
|
/frameworks/compile/mclinker/include/mcld/ |
H A D | LinkerConfig.h | 27 * bitcode() - the bitcode being linked 78 const BitcodeOption& bitcode() const { return m_Bitcode; } function in class:mcld::LinkerConfig 79 BitcodeOption& bitcode() { return m_Bitcode; } function in class:mcld::LinkerConfig
|
/frameworks/compile/mclinker/lib/CodeGen/ |
H A D | MCLinker.cpp | 253 !m_Config.bitcode().hasDefined()) { 271 1; // bitcode 405 // ----- bitcode ----- // 406 if (m_Config.bitcode().hasDefined()) { 407 actions.push_back(new BitcodeAction(m_Config.bitcode().getPosition(), 408 m_Config.bitcode().getPath()));
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 607 uint8_t const *bitcode, size_t bitcodeSize, 611 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags 605 createScript(const ScriptC *s, char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) argument
|
H A D | rsCpuCore.h | 149 uint8_t const *bitcode, size_t bitcodeSize,
|
H A D | rsCpuScript.cpp | 255 const char *bitcode, 259 rsAssert(bitcode && bitcodeSize); 266 size_t nwritten = fwrite(bitcode, 1, bitcodeSize, bcfile); 380 uint8_t const *bitcode, size_t bitcodeSize, 382 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc); 420 bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSize); 422 ALOGE("Could not extract metadata from bitcode"); 427 const char* core_lib = findCoreLib(bitcodeMetadata, (const char*)bitcode, bitcodeSize); 448 mExecutable = bcc::RSCompilerDriver::loadScript(cacheDir, resName, (const char*)bitcode, 456 if (!compileBitcode(bcFileName, (const char*)bitcode, bitcodeSiz 379 init(char const *resName, char const *cacheDir, uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags, char const *bccPluginName) argument 723 findCoreLib(const bcinfo::MetadataExtractor& ME, const char* bitcode, size_t bitcodeSize) argument [all...] |
H A D | rsCpuScript.h | 61 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags, 129 const char* findCoreLib(const bcinfo::MetadataExtractor& bitCodeMetaData, const char* bitcode,
|
H A D | rsd_cpu.h | 130 uint8_t const *bitcode, size_t bitcodeSize,
|
/frameworks/rs/driver/ |
H A D | rsdBcc.cpp | 42 uint8_t const *bitcode, 47 bitcode, bitcodeSize, flags); 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 D | rsdBcc.h | 25 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags);
|
/frameworks/rs/ |
H A D | rsScriptC.cpp | 237 const uint8_t *bitcode, 240 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 244 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen); 256 // about the bitcode. 263 BT = new bcinfo::BitcodeTranslator((const char *)bitcode, bitcodeLen, 266 ALOGE("Failed to translate bitcode from version: %u", sdkVersion); 271 bitcode = (const uint8_t *) BT->getTranslatedBitcode(); 287 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { 234 runCompiler(Context *rsc, const char *resName, const char *cacheDir, const uint8_t *bitcode, size_t bitcodeLen) argument
|
H A D | rsScriptC.h | 67 const uint8_t *bitcode, size_t bitcodeLen);
|
H A D | rs_hal.h | 106 uint8_t const *bitcode,
|