Lines Matching refs:ValueConversionKind
30 fn convert(self, kind: ValueConversionKind) -> ValueResult<Self>; in convert()
137 pub enum ValueConversionKind { enum
392 fn convert(self, kind: ValueConversionKind) -> ValueResult<Self> { in convert()
394 ValueConversionKind::Exact(ty) => match (self, ty) { in convert()
411 ValueConversionKind::Truncate(ty) => { in convert()
423 ValueConversionKind::ExtractUpper(ty) => { in convert()
438 ValueConversionKind::SignExtend(ty) => match (self, ty) { in convert()
451 ValueConversionKind::ZeroExtend(ty) => match (self, ty) { in convert()
465 ValueConversionKind::RoundNearestEven(ty) => match (self, ty) { in convert()
469 ValueConversionKind::ToBoolean => match self.ty() { in convert()
475 ValueConversionKind::Mask(ty) => { in convert()
739 let amt = other.convert(ValueConversionKind::Exact(types::I32))?; in shl()
744 let amt = other.convert(ValueConversionKind::Exact(types::I32))?; in ushr()
749 let amt = other.convert(ValueConversionKind::Exact(types::I32))?; in sshr()
754 let amt = other.convert(ValueConversionKind::Exact(types::I32))?; in rotl()
759 let amt = other.convert(ValueConversionKind::Exact(types::I32))?; in rotr()