aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-10-05 05:34:52 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-11-10 12:24:02 -0700
commit7b978bf1e05727f15fc83ae7d2455c08833cc439 (patch)
tree61648de296eb45d762d0bc8440d144a32dea896d /src/codegen/llvm.zig
parentb1357091ae0876645d75a608bd1e26f21cec7c13 (diff)
downloadzig-7b978bf1e05727f15fc83ae7d2455c08833cc439.tar.gz
zig-7b978bf1e05727f15fc83ae7d2455c08833cc439.zip
stage2: Rename `Value.compare` to `compareAll`, etc.
These functions have a very error-prone API. They are essentially `all(cmp(op, ...))` but that's not reflected in the name. This renames these functions to `compareAllAgainstZero...` etc. for clarity and fixes >20 locations where the predicate was incorrect. In the future, the scalar `compare` should probably be split off from the vector comparison. Rank-polymorphic programming is great, but a proper implementation in Zig would decouple comparison and reduction, which then needs a way to fuse ops at comptime.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions