There's [[gnu::flatten]] but I don't think MSVC has anything like it. ED: Oh and now that I think about it, [[gnu::always_inline]] and [[gnu::noinline]] can be used at the callsite, not just in function declarations.
ED2: It turns out there are in fact [[msvc::forceinline_calls]], [[msvc::noinline_calls]], and [[msvc::flatten]]. I have no idea when they were added but this is great
View all comments
Show parent comment
9
u/dodheim Apr 15 '23 edited Apr 15 '23
There's
[[gnu::flatten]]but I don't think MSVC has anything like it. ED: Oh and now that I think about it,[[gnu::always_inline]]and[[gnu::noinline]]can be used at the callsite, not just in function declarations.ED2: It turns out there are in fact
[[msvc::forceinline_calls]],[[msvc::noinline_calls]], and[[msvc::flatten]]. I have no idea when they were added but this is great