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

Method expandAddToGEP

lib/Analysis/ScalarEvolutionExpander.cpp:385–578  ·  view source on GitHub ↗

expandAddToGEP - Expand an addition expression with a pointer type into a GEP instead of using ptrtoint+arithmetic+inttoptr. This helps BasicAliasAnalysis and other passes analyze the result. See the rules for getelementptr vs. inttoptr in http://llvm.org/docs/LangRef.html#pointeraliasing for details. Design note: The correctness of using getelementptr here depends on ScalarEvolution not recogniz

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

SplitAddRecsFunction · 0.85
FactorOutConstantFunction · 0.85
SimplifyAddOperandsFunction · 0.85
any_ofFunction · 0.85
getSizeOfExprMethod · 0.80
getStructLayoutMethod · 0.80
getTypeAtIndexMethod · 0.80
getElementOffsetMethod · 0.80
getLoopPreheaderMethod · 0.80
getFunction · 0.50
assertFunction · 0.50

Tested by

no test coverage detected