Remove unused generic_args arguments from intrinsic codegen functions
This commit is contained in:
parent
126fd7c31d
commit
f35bd40d18
@ -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,
|
||||||
|
@ -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 {
|
||||||
|
@ -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>,
|
||||||
|
@ -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>,
|
||||||
|
Loading…
Reference in New Issue
Block a user