Skip to content

Commit 3ab9b7e

Browse files
committed
Fix: fix bswap, add changelog, and fix CI arg passing
1 parent 46d5b5e commit 3ab9b7e

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
run: cargo fmt --all -- --check
6868

6969
- name: Build
70-
run: cargo build --workspace ${EXCLUDE_ARGS}
70+
run: eval("cargo build --workspace ${EXCLUDE_ARGS}")
7171

7272
# Don't currently test because many tests rely on the system having a CUDA GPU
7373
# - name: Test
@@ -77,9 +77,9 @@ jobs:
7777
if: contains(matrix.os, 'ubuntu')
7878
env:
7979
RUSTFLAGS: -Dwarnings
80-
run: cargo clippy --workspace ${EXCLUDE_ARGS}
80+
run: eval("cargo clippy --workspace ${EXCLUDE_ARGS}")
8181

8282
- name: Check documentation
8383
env:
8484
RUSTDOCFLAGS: -Dwarnings
85-
run: cargo doc --workspace --all-features --document-private-items --no-deps
85+
run: eval("cargo doc --workspace --all-features --document-private-items --no-deps ${EXCLUDE_ARGS}")
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
Notable changes to this project will be documented in this file.
4+
5+
## Unreleased
6+
7+
## 0.1.1 - 11/26/21
8+
9+
- Fix things using the `bswap` intrinsic panicking.
10+
- (internal) Run clippy and clean things up a bit.

crates/rustc_codegen_nvvm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustc_codegen_nvvm"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["Riccardo D'Ambrosio <[email protected]>", "The Rust Project Developers"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

crates/rustc_codegen_nvvm/src/ctx_intrinsics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
156156
ifn!(map, "llvm.bitreverse.i32", fn(t_i32) -> t_i32);
157157
ifn!(map, "llvm.bitreverse.i64", fn(t_i64) -> t_i64);
158158

159+
ifn!(map, "llvm.bswap.i16", fn(t_i16) -> t_i16);
160+
ifn!(map, "llvm.bswap.i32", fn(t_i32) -> t_i32);
161+
ifn!(map, "llvm.bswap.i64", fn(t_i64) -> t_i64);
162+
159163
ifn!(map, "llvm.ctlz.i8", fn(t_i8, i1) -> t_i8);
160164
ifn!(map, "llvm.ctlz.i16", fn(t_i16, i1) -> t_i16);
161165
ifn!(map, "llvm.ctlz.i32", fn(t_i32, i1) -> t_i32);

0 commit comments

Comments
 (0)