Sema: allow runtime only instructions to be emitted in outside functions

It is possible to get comptime-known values from runtime-known values
for example the length of array. Allowing runtime only instructions to
be emitted outside function bodies allows these operations to happen.
In places where comptime-known values are required we have other methods
to ensure that and they usually result in more specific compile errors too.

Closes #12240
34e4b07d0cVeikka Tuominen committed on 10/20/2022, 5:11:00 PMparent13897be
10 files changedLine totals unavailable