Home
last modified time | relevance | path

Searched refs:bitcode (Results 1 – 25 of 25) sorted by relevance

/frameworks/compile/libbcc/bcinfo/tools/
Dmain.cpp252 static size_t readBitcode(const char **bitcode) { in readBitcode() argument
277 *bitcode = (const char*) calloc(1, bitcodeSize + 1); in readBitcode()
278 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); in readBitcode()
288 static void releaseBitcode(const char **bitcode) { in releaseBitcode() argument
289 if (bitcode && *bitcode) { in releaseBitcode()
290 free((void*) *bitcode); in releaseBitcode()
291 *bitcode = nullptr; in releaseBitcode()
303 const char *bitcode = nullptr; in main() local
304 size_t bitcodeSize = readBitcode(&bitcode); in main()
308 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeSize); in main()
[all …]
/frameworks/rs/
DrsScriptC.cpp286 const char *suffix, const uint8_t *bitcode, in dumpBitcodeFile() argument
305 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp); in dumpBitcodeFile()
321 const uint8_t *bitcode, in runCompiler() argument
328 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen); in runCompiler()
348 bcinfo::BitcodeTranslator BT((const char *)bitcode, bitcodeLen, in runCompiler()
354 bitcode = (const uint8_t *) BT.getTranslatedBitcode(); in runCompiler()
358 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler()
381 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler()
DrsScriptC.h59 const uint8_t *bitcode, size_t bitcodeLen);
Drs_hal.h154 uint8_t const *bitcode,
/frameworks/base/rs/java/android/renderscript/
DScriptC.java122 …te static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { in internalStringCreate() argument
124 return rs.nScriptCCreate(resName, RenderScript.getCachePath(), bitcode, bitcode.length); in internalStringCreate()
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp147 const char *bitcode, in compileBitcode() argument
150 rsAssert(bitcode && bitcodeSize); in compileBitcode()
157 size_t nwritten = fwrite(bitcode, 1, bitcodeSize, bcfile); in compileBitcode()
224 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize, in constructBuildChecksum() argument
230 if (bitcode != nullptr && bitcodeSize > 0) { in constructBuildChecksum()
231 checksum = adler32(checksum, bitcode, bitcodeSize); in constructBuildChecksum()
316 uint8_t const *bitcode, size_t bitcodeSize, in init() argument
326 bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSize); in init()
333 const char* core_lib = findCoreLib(bitcodeMetadata, (const char*)bitcode, bitcodeSize); in init()
364 mBuildChecksum = constructBuildChecksum(bitcode, bitcodeSize, in init()
[all …]
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,
Drsd_cpu.h125 uint8_t const *bitcode, size_t bitcodeSize,
DrsCpuCore.h173 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags) override;
DrsCpuCore.cpp943 uint8_t const *bitcode, size_t bitcodeSize, in createScript() argument
947 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags in createScript()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptC.java125 …te static synchronized long internalStringCreate(RenderScript rs, String resName, byte[] bitcode) { in internalStringCreate() argument
128 return rs.nScriptCCreate(resName, cachePath, bitcode, bitcode.length); in internalStringCreate()
/frameworks/compile/libbcc/bcinfo/
DBitcodeWrapper.cpp31 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) in BitcodeWrapper() argument
32 : mFileType(BC_NOT_BC), mBitcode(bitcode), in BitcodeWrapper()
DBitcodeTranslator.cpp71 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, in BitcodeTranslator() argument
73 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(nullptr), in BitcodeTranslator()
DMetadataExtractor.cpp175 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) in MetadataExtractor() argument
176 : mModule(nullptr), mBitcode(bitcode), mBitcodeSize(bitcodeSize), in MetadataExtractor()
187 BitcodeWrapper wrapper(bitcode, bitcodeSize); in MetadataExtractor()
/frameworks/compile/libbcc/
DREADME.rst9 libbcc is an LLVM bitcode execution engine that compiles the bitcode
20 her own runtime bitcode library (lib*.bc) that differentiates his or
25 * a *just-in-time bitcode compiler*, which translates the LLVM bitcode
37 * libbcc supports bitcode from various language frontends, such as
91 * **bccReadBC** - Set the source bitcode for compilation
95 * **bccLinkBC** - Set the library bitcode for linking
/frameworks/compile/slang/lit-tests/
DREADME6 used to verify certain strings are present in the output bitcode files.
25 more than just emitted bitcode. For example, with some changes to the testcases
/frameworks/compile/libbcc/include/bcinfo/
DBitcodeTranslator.h40 BitcodeTranslator(const char *bitcode, size_t bitcodeSize,
DBitcodeWrapper.h67 BitcodeWrapper(const char *bitcode, size_t bitcodeSize);
DMetadataExtractor.h140 MetadataExtractor(const char *bitcode, size_t bitcodeSize);
/frameworks/compile/slang/lit-tests/bitcode_wrapper/
Dbitcode_wrapper_test.ll1 ; This test assembles this file to bitcode with all supported target
2 ; API versions, then checks that the bitcode file was generated and
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp326 const char *bitcode = input_data->getBufferStart(); in main() local
332 bitcode, bitcodeSize, in main()
343 bitcode, bitcodeSize); in main()
/frameworks/rs/driver/
DrsdBcc.cpp42 uint8_t const *bitcode, in rsdScriptInit() argument
47 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
DrsdBcc.h25 uint8_t const *bitcode, size_t bitcodeSize, uint32_t flags);
/frameworks/compile/slang/
DREADME.rst12 * Bitcode file. Note that the bitcode here denotes the LLVM (Low-Level
13 Virtual Machine) bitcode representation, which will be consumed on
27 machine-dependent code generation for some input bitcode.
DRSCCOptions.td85 def bitcode_storage : Separate<["-"], "bitcode-storage">,