Remove unused generic_args arguments from intrinsic codegen functions

This commit is contained in:
bjorn3 2024-07-01 15:07:22 +00:00
parent 126fd7c31d
commit f35bd40d18
4 changed files with 2 additions and 21 deletions

View File

@ -390,7 +390,6 @@ pub(crate) fn codegen_terminator_call<'tcx>(
crate::intrinsics::codegen_llvm_intrinsic_call( crate::intrinsics::codegen_llvm_intrinsic_call(
fx, fx,
&fx.tcx.symbol_name(instance).name, &fx.tcx.symbol_name(instance).name,
fn_args,
args, args,
ret_place, ret_place,
target, target,

View File

@ -6,32 +6,16 @@
pub(crate) fn codegen_llvm_intrinsic_call<'tcx>( pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
fx: &mut FunctionCx<'_, '_, 'tcx>, fx: &mut FunctionCx<'_, '_, 'tcx>,
intrinsic: &str, intrinsic: &str,
generic_args: GenericArgsRef<'tcx>,
args: &[Spanned<mir::Operand<'tcx>>], args: &[Spanned<mir::Operand<'tcx>>],
ret: CPlace<'tcx>, ret: CPlace<'tcx>,
target: Option<BasicBlock>, target: Option<BasicBlock>,
span: Span, span: Span,
) { ) {
if intrinsic.starts_with("llvm.aarch64") { if intrinsic.starts_with("llvm.aarch64") {
return llvm_aarch64::codegen_aarch64_llvm_intrinsic_call( return llvm_aarch64::codegen_aarch64_llvm_intrinsic_call(fx, intrinsic, args, ret, target);
fx,
intrinsic,
generic_args,
args,
ret,
target,
);
} }
if intrinsic.starts_with("llvm.x86") { if intrinsic.starts_with("llvm.x86") {
return llvm_x86::codegen_x86_llvm_intrinsic_call( return llvm_x86::codegen_x86_llvm_intrinsic_call(fx, intrinsic, args, ret, target, span);
fx,
intrinsic,
generic_args,
args,
ret,
target,
span,
);
} }
match intrinsic { match intrinsic {

View File

@ -6,7 +6,6 @@
pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>( pub(crate) fn codegen_aarch64_llvm_intrinsic_call<'tcx>(
fx: &mut FunctionCx<'_, '_, 'tcx>, fx: &mut FunctionCx<'_, '_, 'tcx>,
intrinsic: &str, intrinsic: &str,
_args: GenericArgsRef<'tcx>,
args: &[Spanned<mir::Operand<'tcx>>], args: &[Spanned<mir::Operand<'tcx>>],
ret: CPlace<'tcx>, ret: CPlace<'tcx>,
target: Option<BasicBlock>, target: Option<BasicBlock>,

View File

@ -10,7 +10,6 @@
pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>( pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
fx: &mut FunctionCx<'_, '_, 'tcx>, fx: &mut FunctionCx<'_, '_, 'tcx>,
intrinsic: &str, intrinsic: &str,
_args: GenericArgsRef<'tcx>,
args: &[Spanned<mir::Operand<'tcx>>], args: &[Spanned<mir::Operand<'tcx>>],
ret: CPlace<'tcx>, ret: CPlace<'tcx>,
target: Option<BasicBlock>, target: Option<BasicBlock>,