MCPcopy Create free account
hub / github.com/Snapchat/Valdi / compileIRsToC

Function compileIRsToC

compiler/companion/src/native/NativeCompiler.ts:4152–4159  ·  view source on GitHub ↗
(
  ir: NativeCompilerIR.Base[],
  options: NativeCompilerOptions,
)

Source from the content-addressed store, hash-verified

4150}
4151
4152export function compileIRsToC(
4153 ir: NativeCompilerIR.Base[],
4154 options: NativeCompilerOptions,
4155): NativeCompilerEmitterOutput {
4156 const emitter = new CompilerNativeCEmitter(options);
4157 emitterWalk(emitter, ir);
4158 return emitter.finalize();
4159}

Callers 2

compileAsCFunction · 0.90
compileNativeFunction · 0.90

Calls 2

finalizeMethod · 0.95
emitterWalkFunction · 0.90

Tested by 1

compileAsCFunction · 0.72