From 5c1c0e4b1eab06e56ecc08f3a43be4cdbb075aff Mon Sep 17 00:00:00 2001 From: Devin Jean Date: Thu, 11 May 2023 00:20:45 -0500 Subject: [PATCH 1/2] more llvm intrinsics --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 36eb167..92f5086 100644 --- a/src/main.rs +++ b/src/main.rs @@ -670,7 +670,12 @@ fn run() -> anyhow::Result { || func.starts_with("llvm.umul.with.overflow.") || func.starts_with("llvm.usub.sat.") || func.starts_with("llvm.usub.with.overflow.") + || func.starts_with("llvm.fshl.") + || func.starts_with("llvm.fshr.") + || func.starts_with("llvm.load.relative.") || func.starts_with("llvm.vector.reduce.") + || func.starts_with("llvm.bitreverse.") + || func.starts_with("llvm.fptoui.sat.") || func.starts_with("llvm.x86.sse2.pmovmskb.") || *func == "llvm.x86.sse2.pause" { From 1615367a044421a63202209bb4a44985f2fe582c Mon Sep 17 00:00:00 2001 From: Devin Jean Date: Tue, 12 Mar 2024 07:40:33 -0500 Subject: [PATCH 2/2] more llvm stuff --- src/ir.rs | 2 +- src/main.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ir.rs b/src/ir.rs index 1ac705f..f458c68 100644 --- a/src/ir.rs +++ b/src/ir.rs @@ -20,7 +20,7 @@ mod ty; use crate::ir::ty::type_; pub use crate::ir::{ define::Stmt, - item::{Declare, Item}, + item::Item, ty::Type, }; diff --git a/src/main.rs b/src/main.rs index 92f5086..9a3767e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -670,8 +670,10 @@ fn run() -> anyhow::Result { || func.starts_with("llvm.umul.with.overflow.") || func.starts_with("llvm.usub.sat.") || func.starts_with("llvm.usub.with.overflow.") + || func.starts_with("llvm.ctpop.") || func.starts_with("llvm.fshl.") || func.starts_with("llvm.fshr.") + || func.starts_with("llvm.fabs.") || func.starts_with("llvm.load.relative.") || func.starts_with("llvm.vector.reduce.") || func.starts_with("llvm.bitreverse.")