/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_transform/src/ |
H A D | early_otherwise_branch.rs | 70 let discr_type = opt_to_apply.infos[0].second_switch_info.discr_ty; in run_pass() localVariable 72 let second_discriminant_temp = patch.new_temp(discr_type, discr_span); in run_pass() 90 let not_equal_res_type = not_equal.ty(tcx, discr_type, discr_type); in run_pass() 126 switch_ty: discr_type, in run_pass()
|
/dports/devel/gdb/gdb-11.1/gdb/ |
H A D | ada-typeprint.c | 525 struct type *discr_type; in print_variant_clauses() local 528 discr_type = ada_variant_discrim_type (var_type, outer_type); in print_variant_clauses() 544 if (print_choices (var_type, i, stream, discr_type)) in print_variant_clauses() 642 print_choices (struct type *discr_type, const variant &variant, in print_choices() argument 657 ada_print_scalar (discr_type, range.low, stream); in print_choices() 659 ada_print_scalar (discr_type, range.high, stream); in print_choices() 679 struct type *discr_type = nullptr; in print_variant_part() local 686 discr_type = type->field (part.discriminant_index).type (); in print_variant_part() 694 print_choices (discr_type, variant, stream, level + 8); in print_variant_part()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/ |
H A D | adt.rs | 369 let repr_type = self.repr.discr_type(); in eval_explicit_discr() 405 let repr_type = self.repr.discr_type(); in discriminants() 441 .unwrap_or_else(|| self.repr.discr_type().initial_discriminant(tcx)); in discriminant_for_variant()
|
H A D | layout.rs | 1139 let discr_type = def.repr.discr_type(); in layout_of_uncached() localVariable 1140 let bits = Integer::from_attr(self, discr_type).size().bits(); in layout_of_uncached() 1146 if discr_type.is_signed() { in layout_of_uncached() 1220 let typeck_ity = Integer::from_attr(dl, def.repr.discr_type()); in layout_of_uncached()
|
H A D | sty.rs | 2092 ty::Adt(adt, _) if adt.is_enum() => adt.repr.discr_type().to_ty(tcx), in discriminant_ty()
|
H A D | mod.rs | 1670 pub fn discr_type(&self) -> attr::IntType { in discr_type() method
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/ |
H A D | enum_clike.rs | 57 ty = adt.repr.discr_type().to_ty(cx.tcx); in check_item()
|
/dports/devel/avr-gdb/gdb-7.3.1/gdb/ |
H A D | ada-typeprint.c | 498 struct type *discr_type; in print_variant_clauses() local 501 discr_type = ada_variant_discrim_type (var_type, outer_type); in print_variant_clauses() 517 if (print_choices (var_type, i, stream, discr_type)) in print_variant_clauses()
|
/dports/devel/gdb761/gdb-7.6.1/gdb/ |
H A D | ada-typeprint.c | 498 struct type *discr_type; in print_variant_clauses() local 501 discr_type = ada_variant_discrim_type (var_type, outer_type); in print_variant_clauses() 517 if (print_choices (var_type, i, stream, discr_type)) in print_variant_clauses()
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/gdb/ |
H A D | ada-typeprint.c | 522 struct type *discr_type; in print_variant_clauses() local 525 discr_type = ada_variant_discrim_type (var_type, outer_type); in print_variant_clauses() 541 print_choices (var_type, i, stream, discr_type); in print_variant_clauses()
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/gdb/ |
H A D | ada-typeprint.c | 522 struct type *discr_type; in print_variant_clauses() local 525 discr_type = ada_variant_discrim_type (var_type, outer_type); in print_variant_clauses() 541 print_choices (var_type, i, stream, discr_type); in print_variant_clauses()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_codegen_llvm/src/debuginfo/ |
H A D | metadata.rs | 2221 let discr_type = tag.value.to_ty(cx.tcx); in prepare_enum_metadata() localVariable 2222 let (size, align) = cx.size_and_align_of(discr_type); in prepare_enum_metadata() 2224 let discr_metadata = basic_type_metadata(cx, discr_type); in prepare_enum_metadata()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/build/matches/ |
H A D | test.rs | 210 let discr_ty = adt_def.repr.discr_type().to_ty(tcx); in perform_test()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/collect/ |
H A D | type_of.rs | 514 .discr_type() in type_of()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_dataflow/src/ |
H A D | elaborate_drops.rs | 581 let discr_ty = adt.repr.discr_type().to_ty(self.tcx()); in adt_switch_block()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/thir/cx/ |
H A D | expr.rs | 686 let ty = adt_def.repr.discr_type(); in make_mirror_unadjusted()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/ |
H A D | check.rs | 1368 let repr_type_ty = def.repr.discr_type().to_ty(tcx); in check_enum()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/ |
H A D | collect.rs | 913 let repr_type = def.repr.discr_type(); in convert_enum_variant_types()
|
/dports/devel/aarch64-none-elf-gcc/gcc-8.4.0/gcc/ |
H A D | dwarf2out.c | 24674 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24678 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24680 discr_type = debug_type; in get_discr_value() 24683 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24691 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24694 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/lang/gcc12-devel/gcc-12-20211205/gcc/ |
H A D | dwarf2out.c | 25171 tree discr_type = TREE_TYPE (src); in get_discr_value() local 25175 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 25177 discr_type = debug_type; in get_discr_value() 25180 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 25188 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 25191 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/lang/gcc9/gcc-9.4.0/gcc/ |
H A D | dwarf2out.c | 24781 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24785 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24787 discr_type = debug_type; in get_discr_value() 24790 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24798 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24801 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/devel/riscv64-gcc/gcc-8.3.0/gcc/ |
H A D | dwarf2out.c | 24656 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24660 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24662 discr_type = debug_type; in get_discr_value() 24665 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24673 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24676 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/devel/avr-gcc/gcc-10.2.0/gcc/ |
H A D | dwarf2out.c | 24683 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24687 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24689 discr_type = debug_type; in get_discr_value() 24692 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24700 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24703 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/lang/gcc11-devel/gcc-11-20211009/gcc/ |
H A D | dwarf2out.c | 24933 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24937 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24939 discr_type = debug_type; in get_discr_value() 24942 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24950 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24953 src = fold_convert (discr_type, src); in get_discr_value()
|
/dports/lang/gcc10-devel/gcc-10-20211008/gcc/ |
H A D | dwarf2out.c | 24712 tree discr_type = TREE_TYPE (src); in get_discr_value() local 24716 tree debug_type = lang_hooks.types.get_debug_type (discr_type); in get_discr_value() 24718 discr_type = debug_type; in get_discr_value() 24721 if (TREE_CODE (src) != INTEGER_CST || !INTEGRAL_TYPE_P (discr_type)) in get_discr_value() 24729 bool is_debug_unsigned = TYPE_UNSIGNED (discr_type); in get_discr_value() 24732 src = fold_convert (discr_type, src); in get_discr_value()
|