/external/llvm-project/llvm/utils/ |
D | shuffle_select_fuzz_tester.py | 114 def __init__(self, name, ty, value = None): argument 115 self.ty = ty # Type 122 def __init__(self, name, ty, op0, op1, mask): argument 123 Value.__init__(self, name, ty) 138 def __init__(self, name, ty, op0, op1, mask): argument 139 Instruction.__init__(self, '%shuf' + name, ty, op0, op1, mask) 144 return self.shuf_template.format(name = self.name, ty = self.ty.dump(), op0 = self.op0.name, 145 op1 = self.op1.name, num = self.ty.elt_num, mask = str_mask) 156 if index < self.ty.elt_num and index >= 0: 158 elif index >= self.ty.elt_num: [all …]
|
/external/rust/crates/serde_derive/src/internals/ |
D | receiver.rs | 44 ty: Box::new(Type::Path(self.self_ty(span))), in self_to_qself() 75 fn visit_type_mut(&mut self, ty: &mut Type) { in visit_type_mut() 76 let span = if let Type::Path(node) = ty { in visit_type_mut() 84 self.visit_type_mut_impl(ty); in visit_type_mut() 87 *ty = self.self_ty(span).into(); in visit_type_mut() 91 fn visit_type_path_mut(&mut self, ty: &mut TypePath) { in visit_type_path_mut() 92 if ty.qself.is_none() { in visit_type_path_mut() 93 self.self_to_qself(&mut ty.qself, &mut ty.path); in visit_type_path_mut() 95 self.visit_type_path_mut_impl(ty); in visit_type_path_mut() 108 fn visit_type_mut_impl(&mut self, ty: &mut Type) { in visit_type_mut_impl() [all …]
|
/external/rust/crates/structopt-derive/src/ |
D | ty.rs | 21 pub fn from_syn_ty(ty: &syn::Type) -> Sp<Self> { in from_syn_ty() 23 let t = |kind| Sp::new(kind, ty.span()); in from_syn_ty() 25 if is_simple_ty(ty, "bool") { in from_syn_ty() 27 } else if is_generic_ty(ty, "Vec") { in from_syn_ty() 29 } else if let Some(subty) = subty_if_name(ty, "Option") { in from_syn_ty() 43 pub fn sub_type(ty: &syn::Type) -> Option<&syn::Type> { in sub_type() 44 subty_if(ty, |_| true) in sub_type() 47 fn only_last_segment(ty: &syn::Type) -> Option<&PathSegment> { in only_last_segment() 48 match ty { in only_last_segment() 62 fn subty_if<F>(ty: &syn::Type, f: F) -> Option<&syn::Type> in subty_if() [all …]
|
D | lib.rs | 24 mod ty; module 29 ty::{is_simple_ty, sub_type, subty_if_name, Ty}, 77 if let Kind::Subcommand(ty) = &*kind { in gen_augmentation() 78 let subcmd_type = match (**ty, sub_type(&field.ty)) { in gen_augmentation() 80 _ => &field.ty, in gen_augmentation() 82 let required = if **ty == Ty::Option { in gen_augmentation() 128 let ty = &field.ty; in gen_augmentation() localVariable 130 let #app_var = <#ty as ::structopt::StructOptInternal>::augment_clap(#app_var); in gen_augmentation() 131 let #app_var = if <#ty as ::structopt::StructOptInternal>::is_subcommand() { in gen_augmentation() 138 Kind::Arg(ty) => { in gen_augmentation() [all …]
|
/external/rust/crates/rand/src/distributions/ |
D | utils.rs | 21 ($ty:ty, $wide:ty, $shift:expr) => { 22 impl WideningMultiply for $ty { 23 type Output = ($ty, $ty); 26 fn wmul(self, x: $ty) -> Self::Output { 28 ((tmp >> $shift) as $ty, tmp as $ty) 34 ($(($ty:ident, $wide:ident),)+, $shift:expr) => { 36 impl WideningMultiply for $ty { 37 type Output = ($ty, $ty); 40 fn wmul(self, x: $ty) -> Self::Output { 48 let hi: $ty = (tmp >> $shift).cast(); [all …]
|
D | float.rs | 93 ($ty:ident, $uty:ident, $f_scalar:ident, $u_scalar:ty, 96 type F = $ty; 98 fn into_float_with_exponent(self, exponent: i32) -> $ty { 102 $ty::from_bits(self | exponent_bits) 106 impl Distribution<$ty> for Standard { 107 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $ty { 117 scale * $ty::cast_from_int(value) 121 impl Distribution<$ty> for OpenClosed01 { 122 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $ty { 133 scale * $ty::cast_from_int(value + 1) [all …]
|
/external/rust/crates/syn/tests/ |
D | test_path.rs | 57 let mut ty: TypePath = parse_quote!(<Self as A>::Q); in print_incomplete_qpath() localVariable 58 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 61 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 62 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 65 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 66 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 69 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath() 72 let mut ty: TypePath = parse_quote!(<Self>::A::B); in print_incomplete_qpath() localVariable 73 snapshot!(ty.to_token_stream(), @r###" in print_incomplete_qpath() 76 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() [all …]
|
/external/turbine/java/com/google/turbine/types/ |
D | Erasure.java | 36 public static Type erase(Type ty, Function<TyVarSymbol, SourceTypeBoundClass.TyVarInfo> tenv) { in erase() argument 37 switch (ty.tyKind()) { in erase() 39 return eraseClassTy((Type.ClassTy) ty); in erase() 41 return eraseArrayTy((Type.ArrayTy) ty, tenv); in erase() 43 return eraseTyVar((TyVar) ty, tenv); in erase() 45 return eraseIntersectionTy((Type.IntersectionTy) ty, tenv); in erase() 47 return eraseWildTy((Type.WildTy) ty, tenv); in erase() 49 return erasureMethodTy((Type.MethodTy) ty, tenv); in erase() 54 return ty; in erase() 56 throw new AssertionError(ty.tyKind()); in erase() [all …]
|
/external/rust/cxx/syntax/ |
D | check.rs | 29 for ty in cx.types { in do_typecheck() 30 match ty { in do_typecheck() 33 Type::RustVec(ty) => check_type_rust_vec(cx, ty), in do_typecheck() 38 Type::Ref(ty) => check_type_ref(cx, ty), in do_typecheck() 39 Type::Ptr(ty) => check_type_ptr(cx, ty), in do_typecheck() 41 Type::Fn(ty) => check_type_fn(cx, ty), in do_typecheck() 42 Type::SliceRef(ty) => check_type_slice_ref(cx, ty), in do_typecheck() 97 fn check_type_rust_vec(cx: &mut Check, ty: &Ty1) { in check_type_rust_vec() 98 match &ty.inner { in check_type_rust_vec() 105 cx.error(ty, "Rust Vec containing C++ type is not supported yet"); in check_type_rust_vec() [all …]
|
D | instantiate.rs | 27 if let Type::RustBox(ty) = self { in impl_key() 28 if let Type::Ident(ident) = &ty.inner { in impl_key() 29 return Some(ImplKey::RustBox(NamedImplKey::new(ty, ident))); in impl_key() 31 } else if let Type::RustVec(ty) = self { in impl_key() 32 if let Type::Ident(ident) = &ty.inner { in impl_key() 33 return Some(ImplKey::RustVec(NamedImplKey::new(ty, ident))); in impl_key() 35 } else if let Type::UniquePtr(ty) = self { in impl_key() 36 if let Type::Ident(ident) = &ty.inner { in impl_key() 37 return Some(ImplKey::UniquePtr(NamedImplKey::new(ty, ident))); in impl_key() 39 } else if let Type::SharedPtr(ty) = self { in impl_key() [all …]
|
D | visit.rs | 4 fn visit_type(&mut self, ty: &'a Type) { in visit_type() 5 visit_type(self, ty); in visit_type() 9 pub fn visit_type<'a, V>(visitor: &mut V, ty: &'a Type) in visit_type() 13 match ty { in visit_type() 15 Type::RustBox(ty) in visit_type() 16 | Type::UniquePtr(ty) in visit_type() 17 | Type::SharedPtr(ty) in visit_type() 18 | Type::WeakPtr(ty) in visit_type() 19 | Type::CxxVector(ty) in visit_type() 20 | Type::RustVec(ty) => visitor.visit_type(&ty.inner), in visit_type() [all …]
|
/external/crosvm/devices/src/usb/xhci/ |
D | xhci_regs.rs | 156 ty: u8, in init_xhci_mmio_space_and_regs() 164 ty: u16, in init_xhci_mmio_space_and_regs() 172 ty: u32, in init_xhci_mmio_space_and_regs() 181 ty: u32, in init_xhci_mmio_space_and_regs() 192 ty: u32, in init_xhci_mmio_space_and_regs() 206 ty: u32, in init_xhci_mmio_space_and_regs() 217 ty: u32, in init_xhci_mmio_space_and_regs() 226 ty: u32, in init_xhci_mmio_space_and_regs() 235 ty: u32, in init_xhci_mmio_space_and_regs() 245 ty: u32, in init_xhci_mmio_space_and_regs() [all …]
|
/external/python/cpython2/Modules/_ctypes/libffi/src/aarch64/ |
D | ffi.c | 245 get_homogeneous_type (ffi_type *ty) in get_homogeneous_type() argument 247 if (ty->type == FFI_TYPE_STRUCT && ty->elements) in get_homogeneous_type() 251 = get_homogeneous_type (ty->elements[0]); in get_homogeneous_type() 252 for (i =1; ty->elements[i]; i++) in get_homogeneous_type() 258 if (ty->elements[i]->type == FFI_TYPE_STRUCT in get_homogeneous_type() 259 && ty->elements[i]->elements) in get_homogeneous_type() 261 iteration_type = get_homogeneous_type (ty->elements[i]); in get_homogeneous_type() 265 iteration_type = ty->elements[i]->type; in get_homogeneous_type() 277 return ty->type; in get_homogeneous_type() 287 element_count (ffi_type *ty) in element_count() argument [all …]
|
/external/rust/crates/nix/src/sys/ioctl/ |
D | mod.rs | 371 ($(#[$attr:meta])* $name:ident, $ioty:expr, $nr:expr, $ty:ty) => ( 374 data: *mut $ty) 376 …ate::libc::ioctl(fd, request_code_read!($ioty, $nr, ::std::mem::size_of::<$ty>()) as $crate::sys::… 407 ($(#[$attr:meta])* $name:ident, $nr:expr, $ty:ty) => ( 410 data: *mut $ty) 444 ($(#[$attr:meta])* $name:ident, $ioty:expr, $nr:expr, $ty:ty) => ( 447 data: *const $ty) 449 …te::libc::ioctl(fd, request_code_write!($ioty, $nr, ::std::mem::size_of::<$ty>()) as $crate::sys::… 480 ($(#[$attr:meta])* $name:ident, $nr:expr, $ty:ty) => ( 483 data: *const $ty) [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | constants.h | 138 Constant(const Type* ty) : type_(ty) {} in Constant() argument 167 ScalarConstant(const Type* ty, const std::vector<uint32_t>& w) in ScalarConstant() argument 168 : Constant(ty), words_(w) {} in ScalarConstant() 169 ScalarConstant(const Type* ty, std::vector<uint32_t>&& w) in ScalarConstant() argument 170 : Constant(ty), words_(std::move(w)) {} in ScalarConstant() 177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() argument 178 : ScalarConstant(ty, w) {} in IntConstant() 179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() argument 180 : ScalarConstant(ty, std::move(w)) {} in IntConstant() 227 FloatConstant(const Float* ty, const std::vector<uint32_t>& w) in FloatConstant() argument [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.h | 138 Constant(const Type* ty) : type_(ty) {} in Constant() argument 167 ScalarConstant(const Type* ty, const std::vector<uint32_t>& w) in ScalarConstant() argument 168 : Constant(ty), words_(w) {} in ScalarConstant() 169 ScalarConstant(const Type* ty, std::vector<uint32_t>&& w) in ScalarConstant() argument 170 : Constant(ty), words_(std::move(w)) {} in ScalarConstant() 177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() argument 178 : ScalarConstant(ty, w) {} in IntConstant() 179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() argument 180 : ScalarConstant(ty, std::move(w)) {} in IntConstant() 227 FloatConstant(const Float* ty, const std::vector<uint32_t>& w) in FloatConstant() argument [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.h | 138 Constant(const Type* ty) : type_(ty) {} in Constant() argument 167 ScalarConstant(const Type* ty, const std::vector<uint32_t>& w) in ScalarConstant() argument 168 : Constant(ty), words_(w) {} in ScalarConstant() 169 ScalarConstant(const Type* ty, std::vector<uint32_t>&& w) in ScalarConstant() argument 170 : Constant(ty), words_(std::move(w)) {} in ScalarConstant() 177 IntConstant(const Integer* ty, const std::vector<uint32_t>& w) in IntConstant() argument 178 : ScalarConstant(ty, w) {} in IntConstant() 179 IntConstant(const Integer* ty, std::vector<uint32_t>&& w) in IntConstant() argument 180 : ScalarConstant(ty, std::move(w)) {} in IntConstant() 227 FloatConstant(const Float* ty, const std::vector<uint32_t>& w) in FloatConstant() argument [all …]
|
/external/crosvm/sys_util/src/ |
D | ioctl.rs | 17 ($dir:expr, $ty:expr, $nr:expr, $size:expr) => { 19 | ($ty << $crate::ioctl::_IOC_TYPESHIFT) 28 ($name:ident, $dir:expr, $ty:expr, $nr:expr, $size:expr) => { 31 $crate::ioctl_expr!($dir, $ty, $nr, $size) 34 ($name:ident, $dir:expr, $ty:expr, $nr:expr, $size:expr, $($v:ident),+) => { 37 $crate::ioctl_expr!($dir, $ty, $nr, $size) 45 ($name:ident, $ty:expr, $nr:expr) => { 46 $crate::ioctl_ioc_nr!($name, $crate::ioctl::_IOC_NONE, $ty, $nr, 0); 48 ($name:ident, $ty:expr, $nr:expr, $($v:ident),+) => { 49 $crate::ioctl_ioc_nr!($name, $crate::ioctl::_IOC_NONE, $ty, $nr, 0, $($v),+); [all …]
|
/external/rust/crates/num-traits/src/ |
D | macros.rs | 6 ($( Self :: $method:ident ( self $( , $arg:ident : $ty:ty )* ) -> $ret:ty ; )*) 9 fn $method(self $( , $arg : $ty )* ) -> $ret { 13 ($( $base:ident :: $method:ident ( self $( , $arg:ident : $ty:ty )* ) -> $ret:ty ; )*) 16 fn $method(self $( , $arg : $ty )* ) -> $ret { 20 ($( $base:ident :: $method:ident ( $( $arg:ident : $ty:ty ),* ) -> $ret:ty ; )*) 23 fn $method( $( $arg : $ty ),* ) -> $ret {
|
/external/rust/cxx/src/symbols/ |
D | rust_vec.rs | 9 ($segment:expr, $ty:ty) => { 10 const_assert_eq!(mem::size_of::<[usize; 3]>(), mem::size_of::<Vec<$ty>>()); 11 const_assert_eq!(mem::align_of::<usize>(), mem::align_of::<Vec<$ty>>()); 16 unsafe extern "C" fn __new(this: *mut RustVec<$ty>) { 22 unsafe extern "C" fn __drop(this: *mut RustVec<$ty>) { 28 unsafe extern "C" fn __len(this: *const RustVec<$ty>) -> usize { 34 unsafe extern "C" fn __capacity(this: *const RustVec<$ty>) -> usize { 40 unsafe extern "C" fn __data(this: *const RustVec<$ty>) -> *const $ty { 46 unsafe extern "C" fn __reserve_total(this: *mut RustVec<$ty>, cap: usize) { 52 unsafe extern "C" fn __set_len(this: *mut RustVec<$ty>, len: usize) { [all …]
|
/external/rust/crates/libc/src/ |
D | macros.rs | 188 $($arg:ident: $argty:ty),* 189 ) -> $ret:ty { 204 $($arg:ident: $argty:ty),* 205 ) -> $ret:ty { 220 $($arg:ident: $argty:ty),* 221 ) -> $ret:ty { 237 $($arg:ident: $argty:ty),* 238 ) -> $ret:ty { 253 $($arg:ident: $argty:ty),* 254 ) -> $ret:ty { [all …]
|
/external/rust/crates/serde_derive/src/ |
D | bound.rs | 117 if let syn::Type::Path(ty) = ungroup(&field.ty) { in with_bound() 118 if let Some(Pair::Punctuated(t, _)) = ty.path.segments.pairs().next() { in with_bound() 120 self.associated_type_usage.push(ty); in with_bound() 124 self.visit_type(&field.ty); in with_bound() 148 fn visit_type(&mut self, ty: &'ast syn::Type) { in with_bound() 149 match ty { in with_bound() 150 syn::Type::Array(ty) => self.visit_type(&ty.elem), in with_bound() 151 syn::Type::BareFn(ty) => { in with_bound() 152 for arg in &ty.inputs { in with_bound() 153 self.visit_type(&arg.ty); in with_bound() [all …]
|
/external/rust/crates/bindgen/src/ir/ |
D | ty.rs | 520 let ty = Type::new(Some("foo".into()), None, TypeKind::TypeParam, false); in is_invalid_type_param_valid() localVariable 521 assert!(!ty.is_invalid_type_param()) in is_invalid_type_param_valid() 526 let ty = Type::new( in is_invalid_type_param_valid_underscore_and_numbers() localVariable 532 assert!(!ty.is_invalid_type_param()) in is_invalid_type_param_valid_underscore_and_numbers() 537 let ty = Type::new(Some("foo".into()), None, TypeKind::Void, false); in is_invalid_type_param_valid_unnamed_kind() localVariable 538 assert!(!ty.is_invalid_type_param()) in is_invalid_type_param_valid_unnamed_kind() 543 let ty = Type::new(Some("1foo".into()), None, TypeKind::TypeParam, false); in is_invalid_type_param_invalid_start() localVariable 544 assert!(ty.is_invalid_type_param()) in is_invalid_type_param_invalid_start() 549 let ty = Type::new(Some("foo-".into()), None, TypeKind::TypeParam, false); in is_invalid_type_param_invalid_remaing() localVariable 550 assert!(ty.is_invalid_type_param()) in is_invalid_type_param_invalid_remaing() [all …]
|
/external/rust/crates/walkdir/src/ |
D | dent.rs | 42 ty: FileType, field 101 self.ty.is_symlink() || self.follow_link in path_is_symlink() 159 self.ty in file_type() 193 self.ty.is_dir() in is_dir() 202 let ty = ent in from_entry() localVariable 210 ty: ty, in from_entry() 224 let ty = ent in from_entry() localVariable 229 ty: ty, in from_entry() 241 let ty = ent in from_entry() localVariable 246 ty: ty, in from_entry() [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | CBindingWrapping.h | 19 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ argument 20 inline ty *unwrap(ref P) { \ 21 return reinterpret_cast<ty*>(P); \ 24 inline ref wrap(const ty *P) { \ 25 return reinterpret_cast<ref>(const_cast<ty*>(P)); \ 28 #define DEFINE_ISA_CONVERSION_FUNCTIONS(ty, ref) \ argument 29 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ 36 #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \ argument 37 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
|