aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-08-03 08:05:00 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-08-03 09:37:10 -0700
commit88fb4dab81ab67b66600868f9a72892ed77bbb21 (patch)
tree80a8c9772f26a54509f3b3834f1f21d82f1eb03e /src/zig_llvm.cpp
parent22662773b2cb0942d5036110eb8db34b25c84c40 (diff)
downloadzig-88fb4dab81ab67b66600868f9a72892ed77bbb21.tar.gz
zig-88fb4dab81ab67b66600868f9a72892ed77bbb21.zip
std.target: mark helper functions inline
This was discussed in #16597. It makes sense for most of the functions in this file to be marked inline: many are simple helper functions so inlining is likely a strict win, and having the return values be comptime-known may improve userspace code in some cases by preventing it from unintentionally checking properties of the target at runtime. This changeset is somewhat conservative: the functions marked inline are generally returning booleans or simple integers, and many are simple one-line checks.
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions