Inline makes this function prefer inlining
()
| 45 | |
| 46 | // Inline makes this function prefer inlining |
| 47 | func (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 |
no outgoing calls
no test coverage detected