Inline is_machine into check_simd
This commit is contained in:
parent
d03683caf6
commit
3d738b0594
2 changed files with 12 additions and 11 deletions
|
@ -1888,14 +1888,6 @@ impl<'tcx> TyS<'tcx> {
|
|||
matches!(self.kind(), Int(ty::IntTy::Isize) | Uint(ty::UintTy::Usize))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_machine(&self) -> bool {
|
||||
// Yes, RawPtr is a "machine" type for these purposes.
|
||||
// LLVM uses a vector-of-pointers model for scatter/gather ops,
|
||||
// which typically use a base pointer and vector of signed integers.
|
||||
matches!(self.kind(), Int(..) | Uint(..) | Float(..) | RawPtr(..))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn has_concrete_skeleton(&self) -> bool {
|
||||
!matches!(self.kind(), Param(_) | Infer(_) | Error(_))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue