| 277 | } |
| 278 | |
| 279 | hiprtcResult hiprtcGetBitcodeSize(hiprtcProgram prog, size_t* bitcode_size) { |
| 280 | HIPRTC_INIT_API(prog, bitcode_size); |
| 281 | |
| 282 | if (bitcode_size == nullptr) { |
| 283 | HIPRTC_RETURN(HIPRTC_ERROR_INVALID_INPUT); |
| 284 | } |
| 285 | |
| 286 | auto* rtcProgram = hiprtc::RTCCompileProgram::as_RTCCompileProgram(prog); |
| 287 | if (!rtcProgram->GetBitcodeSize(bitcode_size)) { |
| 288 | HIPRTC_RETURN(HIPRTC_ERROR_INVALID_PROGRAM); |
| 289 | } |
| 290 | |
| 291 | HIPRTC_RETURN(HIPRTC_SUCCESS); |
| 292 | } |
| 293 | |
| 294 | hiprtcResult hiprtcLinkCreate(unsigned int num_options, hiprtcJIT_option* options_ptr, |
| 295 | void** options_vals_pptr, hiprtcLinkState* hip_link_state_ptr) { |
nothing calls this directly
no test coverage detected