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

Function CloneAliasScopeMetadata

lib/Transforms/Utils/InlineFunction.cpp:726–826  ·  view source on GitHub ↗

When inlining a function that contains noalias scope metadata, this metadata needs to be cloned so that the inlined blocks have different "unqiue scopes" at every call site. Were this not done, then aliasing scopes from a function inlined into a caller multiple times could not be differentiated (and this would lead to miscompiles because the non-aliasing property communicated by the metadata could

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

InlineFunctionMethod · 0.85

Calls 15

setMetadataMethod · 0.80
mayReadOrWriteMemoryMethod · 0.80
getFunction · 0.50
assertFunction · 0.50
getCalledFunctionMethod · 0.45
getMetadataMethod · 0.45
insertMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pop_back_valMethod · 0.45
getNumOperandsMethod · 0.45

Tested by

no test coverage detected