Home
last modified time | relevance | path

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

12

/frameworks/rs/driver/
DREADME.txt6 bitcode wrapper has a field that indicates the version of the slang
7 compiler that produced that bitcode. A bitcode consumer is allowed to
9 However, only user bitcode has a wrapper -- libclcore.bc does not.
12 assumptions. This is important because when user bitcode is linked to
13 libclcore.bc (bcc::Script::LinkRuntime()) the linked bitcode is
14 treated as having the same SlangVersion as the user bitcode. This
DrsdBcc.cpp41 uint8_t const *bitcode, in rsdScriptInit() argument
46 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
/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.cpp263 const char *suffix, const uint8_t *bitcode, in dumpBitcodeFile() argument
282 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp); in dumpBitcodeFile()
297 const uint8_t *bitcode, in runCompiler() argument
303 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeLen); in runCompiler()
323 bcinfo::BitcodeTranslator BT((const char *)bitcode, bitcodeLen, in runCompiler()
329 bitcode = (const uint8_t *) BT.getTranslatedBitcode(); in runCompiler()
333 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler()
355 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler()
DrsScriptC.h59 const uint8_t *bitcode, size_t bitcodeLen);
/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/support/java/src/androidx/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.cpp28 BitcodeWrapper::BitcodeWrapper(const char *bitcode, size_t bitcodeSize) in BitcodeWrapper() argument
29 : mFileType(BC_NOT_BC), mBitcode(bitcode), in BitcodeWrapper()
DBitcodeTranslator.cpp78 BitcodeTranslator::BitcodeTranslator(const char *bitcode, size_t bitcodeSize, in BitcodeTranslator() argument
80 : mBitcode(bitcode), mBitcodeSize(bitcodeSize), mTranslatedBitcode(nullptr), in BitcodeTranslator()
DMetadataExtractor.cpp180 MetadataExtractor::MetadataExtractor(const char *bitcode, size_t bitcodeSize) in MetadataExtractor() argument
181 : mModule(nullptr), mBitcode(bitcode), mBitcodeSize(bitcodeSize), in MetadataExtractor()
192 BitcodeWrapper wrapper(bitcode, bitcodeSize); in MetadataExtractor()
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp130 const char *bitcode, in compileBitcode() argument
133 rsAssert(bitcode && bitcodeSize); in compileBitcode()
140 size_t nwritten = fwrite(bitcode, 1, bitcodeSize, bcfile); in compileBitcode()
209 uint32_t constructBuildChecksum(uint8_t const *bitcode, size_t bitcodeSize, in constructBuildChecksum() argument
215 if (bitcode != nullptr && bitcodeSize > 0) { in constructBuildChecksum()
216 checksum = adler32(checksum, bitcode, bitcodeSize); in constructBuildChecksum()
301 uint8_t const *bitcode, size_t bitcodeSize, in init() argument
311 bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSize); in init()
318 const char* core_lib = findCoreLib(bitcodeMetadata, (const char*)bitcode, bitcodeSize); in init()
349 mBuildChecksum = constructBuildChecksum(bitcode, bitcodeSize, in init()
[all …]
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,
/frameworks/rs/rsov/compiler/
Drs2spirv.cpp101 std::vector<char> bitcode = android::spirit::readFile<char>(InputFile); in convertLLVMToSPIRV() local
103 new bcinfo::MetadataExtractor(bitcode.data(), bitcode.size())); in convertLLVMToSPIRV()
/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/libbcc/tests/libbcc/
Dtbaa.ll37 ; The following named metadata would not be present in a bitcode file,
38 ; but instead synthesized by bcc from the bitcode wrapper. However,
Ddebug_info_static_const_fp.ll5 ; the test case as a separate bitcode file, rather than as the ASCII IR in this file.
12 ; 32-bit bitcode compiled from the following (-O0 -g):
Dtbaa-through-alloca.ll57 ; The following named metadata would not be present in a bitcode file,
58 ; but instead synthesized by bcc from the bitcode wrapper. However,
Dgetelementptr.ll64 ; The following named metadata would not be present in a bitcode file,
65 ; but instead synthesized by bcc from the bitcode wrapper. However,
/frameworks/compile/libbcc/bcinfo/include/bcinfo/
DBitcodeTranslator.h40 BitcodeTranslator(const char *bitcode, size_t bitcodeSize,
DBitcodeWrapper.h67 BitcodeWrapper(const char *bitcode, size_t bitcodeSize);
DMetadataExtractor.h145 MetadataExtractor(const char *bitcode, size_t bitcodeSize);
/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/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.cpp349 const char *bitcode = input_data->getBufferStart(); in main() local
355 bitcode, bitcodeSize, in main()
366 bitcode, bitcodeSize); in main()
/frameworks/rs/rsov/driver/
DrsovScript.cpp96 const char *bitcode, size_t bitcodeSize, in compileBitcode() argument
98 rsAssert(bitcode && bitcodeSize); in compileBitcode()
107 writeBytes(bcFileName.c_str(), bitcode, bitcodeSize); in compileBitcode()
762 char const *cacheDir, uint8_t const *bitcode, in rsovScriptInit() argument
767 new bcinfo::MetadataExtractor((const char *)bitcode, bitcodeSize)); in rsovScriptInit()
775 compileBitcode(resName, cacheDir, (const char *)bitcode, bitcodeSize, modifiedBitcode); in rsovScriptInit()
806 script, resName, cacheDir, bitcode, bitcodeSize, flags)); in rsovScriptInit()

12