MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / createStackSaveImpl

Method createStackSaveImpl

compiler/intrinsics.go:91–95  ·  view source on GitHub ↗

createStackSaveImpl creates a call to llvm.stacksave.p0 to read the current stack pointer.

()

Source from the content-addressed store, hash-verified

89// createStackSaveImpl creates a call to llvm.stacksave.p0 to read the current
90// stack pointer.
91func (b *builder) createStackSaveImpl() {
92 b.createFunctionStart(true)
93 sp := b.readStackPointer()
94 b.CreateRet(sp)
95}
96
97// Return the llvm.memset.p0.i8 function declaration.
98func (c *compilerContext) getMemsetFunc() llvm.Value {

Callers 1

Calls 2

createFunctionStartMethod · 0.95
readStackPointerMethod · 0.95

Tested by

no test coverage detected