MCPcopy Create free account
hub / github.com/GoSSIP-SJTU/Armariris / getOrInsertFunction

Method getOrInsertFunction

lib/IR/Module.cpp:121–142  ·  view source on GitHub ↗

getOrInsertFunction - Look up the specified function in the module symbol table. If it does not exist, add a prototype for the function and return it. This is nice because it allows most passes to get away with not handling the symbol table directly for this common task.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

EmitCfiSlowPathCheckMethod · 0.45
CleanupAndPrepareModulesFunction · 0.45
mainFunction · 0.45
insertUseHolderAfterFunction · 0.45
emitCallocFunction · 0.45
optimizeExp2Method · 0.45
insertSinCosCallFunction · 0.45
optimizePrintFMethod · 0.45
optimizeSPrintFMethod · 0.45
optimizeFPrintFMethod · 0.45

Calls 6

AttributeSetClass · 0.50
getFunction · 0.50
isIntrinsicMethod · 0.45
setAttributesMethod · 0.45
push_backMethod · 0.45
getTypeMethod · 0.45

Tested by 7

insertUseHolderAfterFunction · 0.36
TESTFunction · 0.36
getFunctionMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36