// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // DO NOT EDIT: autogenerated by etc/platform-intrinsics/generator.py // ignore-tidy-linelength #![allow(unused_imports)] use {Intrinsic, Type}; use IntrinsicDef::Named; // The default inlining settings trigger a pathological behaviour in // LLVM, which causes makes compilation very slow. See #28273. #[inline(never)] pub fn find(name: &str) -> Option { if !name.starts_with("powerpc") { return None } Some(match &name["powerpc".len()..] { "_vec_perm" => Intrinsic { inputs: { static INPUTS: [&'static Type; 3] = [&::I32x4, &::I32x4, &::I8x16]; &INPUTS }, output: &::I32x4, definition: Named("llvm.ppc.altivec.vperm") }, "_vec_mradds" => Intrinsic { inputs: { static INPUTS: [&'static Type; 3] = [&::I16x8, &::I16x8, &::I16x8]; &INPUTS }, output: &::I16x8, definition: Named("llvm.ppc.altivec.vmhraddshs") }, "_vec_cmpb" => Intrinsic { inputs: { static INPUTS: [&'static Type; 2] = [&::F32x4, &::F32x4]; &INPUTS }, output: &::I32x4, definition: Named("llvm.ppc.altivec.vcmpbfp") }, "_vec_cmpeqb" => Intrinsic { inputs: { static INPUTS: [&'static Type; 2] = [&::I8x16, &::I8x16]; &INPUTS }, output: &::I8x16, definition: Named("llvm.ppc.altivec.vcmpequb") }, "_vec_cmpeqh" => Intrinsic { inputs: { static INPUTS: [&'static Type; 2] = [&::I16x8, &::I16x8]; &INPUTS }, output: &::I16x8, definition: Named("llvm.ppc.altivec.vcmpequh") }, "_vec_cmpeqw" => Intrinsic { inputs: { static INPUTS: [&'static Type; 2] = [&::I32x4, &::I32x4]; &INPUTS }, output: &::I32x4, definition: Named("llvm.ppc.altivec.vcmpequw") }, _ => return None, }) }