| 4184 | } |
| 4185 | |
| 4186 | void updateInstrCount() noexcept { |
| 4187 | if (LocalInstrCount) { |
| 4188 | auto Store [[maybe_unused]] = Builder.createAtomicRMW( |
| 4189 | LLVMAtomicRMWBinOpAdd, Context.getInstrCount(Builder, ExecCtx), |
| 4190 | Builder.createLoad(Context.Int64Ty, LocalInstrCount), |
| 4191 | LLVMAtomicOrderingMonotonic); |
| 4192 | #if LLVM_VERSION_MAJOR >= 13 |
| 4193 | Store.setAlignment(8); |
| 4194 | #endif |
| 4195 | Builder.createStore(LLContext.getInt64(0), LocalInstrCount); |
| 4196 | } |
| 4197 | } |
| 4198 | |
| 4199 | void updateGas() noexcept { |
| 4200 | if (LocalGas) { |
nothing calls this directly
no test coverage detected