MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / extractDeviceCode

Method extractDeviceCode

lib/compilers/clang.ts:245–255  ·  view source on GitHub ↗
(result, filters: ParseFiltersAndOutputOptions, compilationInfo: CompilationInfo)

Source from the content-addressed store, hash-verified

243 }
244
245 override async extractDeviceCode(result, filters: ParseFiltersAndOutputOptions, compilationInfo: CompilationInfo) {
246 const split = await this.splitDeviceCode(result.asm);
247 if (!split) return result;
248
249 result.devices = {};
250 for (const key of Object.keys(split)) {
251 if (key.indexOf('host-') === 0) result.asm = split[key];
252 else result.devices[key] = await this.processDeviceAssembly(key, split[key], filters, compilationInfo);
253 }
254 return result;
255 }
256
257 async extractBitcodeFromBundle(bundlefile: string, devicename: string): Promise<string> {
258 const bcfile = path.join(path.dirname(bundlefile), devicename + '.bc');

Callers

nothing calls this directly

Calls 2

splitDeviceCodeMethod · 0.95
processDeviceAssemblyMethod · 0.95

Tested by

no test coverage detected