aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/atomic.txt
AgeCommit message (Collapse)Author
2022-06-24compiler: really define runtime/volatile.* functionsAyke van Laethem
This makes them available to deferred calls, among others.
2022-06-24compiler: define atomic intrinsic functions directlyAyke van Laethem
This changes the compiler from treating calls to sync/atomic.* functions as special calls (emitted directly at the call site) to actually defining their declarations when there is no Go SSA implementation. And rely on the inliner to inline these very small functions. This works a bit better in practice. For example, this makes it possible to use these functions in deferred function calls. This commit is a bit large because it also needs to refactor a few things to make it possible to define such intrinsic functions.
2020-05-28compiler: add support for atomic operationsAyke van Laethem
This also implements DisableInterrupts/EnableInterrupts for RISC-V, as those operations were needed to implement a few libcalls.