MCPcopy Create free account
hub / github.com/ROCm/clr / GetBitcode

Method GetBitcode

hipamd/src/hiprtc/hiprtcInternal.cpp:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277bool RTCCompileProgram::GetBitcode(char* bitcode) {
278 if (!fgpu_rdc_ || LLVMBitcode_.size() <= 0) {
279 return false;
280 }
281
282 std::copy(LLVMBitcode_.begin(), LLVMBitcode_.end(), bitcode);
283 return true;
284}
285
286bool RTCCompileProgram::GetBitcodeSize(size_t* bitcode_size) {
287 if (!fgpu_rdc_ || LLVMBitcode_.size() <= 0) {

Callers 1

hiprtcGetBitcodeFunction · 0.80

Calls 4

copyFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected