Skip to content

Commit

Permalink
rustfmt: fix format issues in recent SIMD changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alastair Reid committed May 18, 2021
1 parent 524380b commit 96a291f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rvt-patch-llvm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,19 @@ fn main() {
if opt.intrinsics {
// intrinsics
fn simd_intrinsic(name: &str) -> bool {
name.starts_with("llvm.x86")
|| name.starts_with("llvm.experimental.vector")
name.starts_with("llvm.x86") || name.starts_with("llvm.experimental.vector")
}
let is = get_function(&module, simd_intrinsic);

// simd_emulation functions
fn simd_emulation(name: &str) -> bool {
name.starts_with("llvm_x86")
|| name.starts_with("llvm_experimental.vector")
name.starts_with("llvm_x86") || name.starts_with("llvm_experimental.vector")
}
let rs = get_function(&module, simd_emulation);
let rs: HashMap<&str, FunctionValue> = rs.iter().filter_map(|f| f.get_name().to_str().ok().map(|nm| (nm, *f))).collect();
let rs: HashMap<&str, FunctionValue> = rs
.iter()
.filter_map(|f| f.get_name().to_str().ok().map(|nm| (nm, *f)))
.collect();

info!("Found simd_emulation functions {:?}", rs.keys());

Expand Down

0 comments on commit 96a291f

Please sign in to comment.