MCPcopy Create free account
hub / github.com/chigraph/chigraph / addForwardDeclarations

Method addForwardDeclarations

libchigraph/src/GraphModule.cpp:586–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586Result GraphModule::addForwardDeclarations(llvm::Module& module) const {
587 // create prototypes
588 for (auto& graph : mFunctions) {
589 module.getOrInsertFunction(mangleFunctionName(fullName(), graph->name()),
590 graph->functionType());
591 }
592
593 return {};
594}
595
596Result GraphModule::generateModule(llvm::Module& module) {
597 Result res = {};

Callers

nothing calls this directly

Calls 3

mangleFunctionNameFunction · 0.85
functionTypeMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected