MCPcopy Create free account
hub / github.com/google/gapid / Inline

Method Inline

core/codegen/function.go:47–52  ·  view source on GitHub ↗

Inline makes this function prefer inlining

()

Source from the content-addressed store, hash-verified

45
46// Inline makes this function prefer inlining
47func (f *Function) Inline() *Function {
48 kind := llvm.AttributeKindID("alwaysinline")
49 attr := f.m.ctx.CreateEnumAttribute(kind, 0)
50 f.llvm.AddFunctionAttr(attr)
51 return f
52}
53
54// LinkOnceODR sets this function's linkage to "linkonce_odr". This lets the
55// function be merged with other global symbols with the same name, with the

Callers 5

defineMapTypesMethod · 0.80
buildTypesMethod · 0.80
declareMethod · 0.80
declareBufferFuncsMethod · 0.80
declareClonesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected