Skip to content

Commit 4cdb905

Browse files
committed
Add atomic arch instructions
1 parent cbc2027 commit 4cdb905

20 files changed

+779
-1
lines changed

crates/spirv-builder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
200200
format!(" -C target-feature={}", target_features.join(","))
201201
};
202202
let rustflags = format!(
203-
"-Z codegen-backend={} -Z symbol-mangling-version=v0{}",
203+
"-Z codegen-backend={}{}",
204204
rustc_codegen_spirv.display(),
205205
feature_flag,
206206
);

crates/spirv-std/src/arch.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ use crate::{scalar::Scalar, vector::Vector};
99
#[cfg(feature = "const-generics")]
1010
mod arithmetic;
1111
#[cfg(feature = "const-generics")]
12+
mod atomics;
13+
#[cfg(feature = "const-generics")]
1214
mod barrier;
1315
mod derivative;
1416

1517
#[cfg(feature = "const-generics")]
1618
pub use arithmetic::*;
1719
#[cfg(feature = "const-generics")]
20+
pub use atomics::*;
21+
#[cfg(feature = "const-generics")]
1822
pub use barrier::*;
1923
pub use derivative::*;
2024

0 commit comments

Comments
 (0)