aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-09-20 14:13:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-20 14:24:43 -0700
commitb9d3527e0ed53c4796ab64b4df7daf0909739807 (patch)
tree6cb29ce60e606fc4cfd30dad8b6f88c07a6bf8a7 /src/Module.zig
parent5dc251747b4ea65b1c8d3f2b5af62ca83c6d1196 (diff)
downloadzig-b9d3527e0ed53c4796ab64b4df7daf0909739807.tar.gz
zig-b9d3527e0ed53c4796ab64b4df7daf0909739807.zip
stage2: implement comptime `@atomicRmw`
* introduce float_to_int and int_to_float AIR instructionts and implement for the LLVM backend and C backend. * Sema: implement `zirIntToFloat`. * Sema: implement `@atomicRmw` comptime evaluation - introduce `storePtrVal` for when one needs to store a Value to a pointer which is a Value, and assert it happens at comptime. * Value: introduce new functionality: - intToFloat - numberAddWrap - numberSubWrap - numberMax - numberMin - bitwiseAnd - bitwiseNand (not implemented yet) - bitwiseOr - bitwiseXor * Sema: hook up `zirBitwise` to the new Value bitwise implementations * Type: rename `isFloat` to `isRuntimeFloat` because it returns `false` for `comptime_float`.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions