MCPcopy Create free account

hub / github.com/anthropics/claudes-c-compiler / functions

Functions6,057 in github.com/anthropics/claudes-c-compiler

Methodcall_abi_config_impl
(&self)
src/backend/i686/codegen/calls.rs:12
Methodcast_float_to_target
Cast a float value (as f64) to the target IR type, producing a new IrConst. For unsigned integer targets, converts via the unsigned type first to get
src/ir/constants.rs:277
Methodcast_i128_to_ir_type
Cast a full 128-bit integer value to an IrType without going through u64 truncation. For targets <= 64 bits, extracts the lower bits. For 128-bit tar
src/ir/lowering/const_eval.rs:487
Methodcast_long_double_to_target
Cast a long double (with f128 bytes) to the target IR type. Uses full precision for integer conversions.
src/ir/constants.rs:299
Methodclassify_constraint
TODO: ARM and RISC-V backends should also support multi-alternative constraint parsing (e.g., "rm", "ri") similar to the x86 implementation below. Cur
src/backend/x86/codegen/asm_emitter.rs:32
Methodclassify_constraint
(&self, constraint: &str)
src/backend/riscv/codegen/asm_emitter.rs:66
Methodclassify_constraint
(&self, constraint: &str)
src/backend/i686/codegen/asm_emitter.rs:26
Methodclassify_fetch_op
Classify __atomic_fetch_OP / __sync_fetch_and_OP builtins. Returns (rmw_op, is_sync).
src/ir/lowering/expr_atomics.rs:256
Methodclassify_field_type
Recursively classify a field's type into the eightbyte slots it occupies.
src/common/types.rs:752
Functionclassify_global
Classify a global variable into the section it should be emitted to. The classification priority matches GCC behavior: 1. Extern symbols get no stora
src/backend/common.rs:1222
Methodclassify_op_fetch
Classify __atomic_OP_fetch / __sync_OP_and_fetch builtins. Returns (rmw_op, bin_op_for_recompute, is_nand, is_sync).
src/ir/lowering/expr_atomics.rs:276
Methodclassify_struct_return
Classify a struct return size into sret (hidden pointer) or two-register return. Returns (sret_size, two_reg_size). On x86-64/arm/riscv (64-bit targe
src/ir/lowering/expr_calls.rs:36
Methodcollect_ctype_array_dims
Collect array dimensions from a CType::Array chain. For CType::Array(CType::Array(Int, Some(3)), Some(2)), returns [2, 3].
src/ir/lowering/types.rs:874
Functioncollect_non_nop_indices
Collect up to N non-NOP line indices following `start_idx` (exclusive). Returns the number of indices collected.
src/backend/i686/codegen/peephole.rs:1188
Methodcollect_riscv_fields
Recursively collect scalar float and int fields from a struct. Returns false if the struct contains unsupported field types (e.g., bitfields, empty ar
src/common/types.rs:912
Methodcollect_struct_union_type_specs
Collect all struct/union TypeSpecifiers with inline field definitions from a type.
src/ir/lowering/structs.rs:101
Methodcommon_type
Determine common type for usual arithmetic conversions. On ILP32 targets, Ptr is equivalent to I32 (4 bytes); on LP64, Ptr maps to I64.
src/ir/lowering/expr.rs:491
Methodcomplex_component_ir_type
Get the IR float type for a complex type's component.
src/ir/lowering/complex.rs:29
Methodcomplex_component_size
Get the component size in bytes for a complex type. On i686, long double is 12 bytes (80-bit x87 padded to 12); on x86-64 it's 16 bytes.
src/ir/lowering/complex.rs:40
Methodcomplex_pair
Create a (real, imag) pair for a complex type.
src/ir/lowering/global_init.rs:877
Methodcomplex_zero
Get the zero constant for a complex component type.
src/ir/lowering/complex.rs:64
Methodcomplex_zero_pair
Get the zero pair for a complex type.
src/ir/lowering/global_init.rs:868
Methodcompress_executable_sections
Compress eligible 32-bit instructions in executable sections to 16-bit RV64C equivalents.
src/backend/riscv/assembler/elf_writer.rs:1135
Methodcompute_strides_from_dims
Compute strides from an array of dimension sizes and a base element size. stride[i] = product(dims[i+1..]) * base_elem_size. E.g., dims=[3,4], base=4
src/ir/lowering/types.rs:519
Methodconditional_composite_type
Compute the composite type for a conditional expression per C11 6.5.15. Rules: - Both arithmetic: usual arithmetic conversions - Both void: void - Bo
src/common/types.rs:1593
Methodconst_as_cmn_imm12
Check if an IrConst is a small negative value that can use `cmn Xn, #imm12` (i.e., the negated value fits in 0..=4095).
src/backend/arm/codegen/emit.rs:513
Methodconst_as_cmp_imm12
Check if an IrConst is a small unsigned immediate that fits in AArch64 `cmp Xn, #imm12` instruction (0..=4095).
src/backend/arm/codegen/emit.rs:493
Methodconst_as_imm12
Try to extract an immediate value suitable for ARM imm12 encoding.
src/backend/arm/codegen/emit.rs:255
Methodconst_as_imm32
Check if an operand is a small constant that fits in a 32-bit immediate. Returns the immediate value if it fits, None otherwise.
src/backend/x86/codegen/emit.rs:577
Methodconst_as_imm32
Check if an operand is a constant that fits in an i32 immediate.
src/backend/i686/codegen/emit.rs:480
Methodconst_as_power_of_2
If `op` is a constant that is a power of two, return its log2 (shift amount).
src/backend/arm/codegen/emit.rs:278
Methodconstant_f64
(val: f64)
src/frontend/sema/builtins.rs:637
Methodconstant_fits_immediate
Override the default (x86) immediate constraint validation with AArch64 semantics. On AArch64: 'K' - logical immediate: a bitmask value encodable in
src/backend/arm/codegen/asm_emitter.rs:389
Methodconstant_fits_immediate
RISC-V-specific immediate constraint ranges. On RISC-V, 'K' means a 5-bit unsigned CSR immediate (0-31), used by csrs/csrc/csrw instructions. This di
src/backend/riscv/codegen/asm_emitter.rs:517
Functionconstraint_to_callee_saved_riscv
Check if a constraint string refers to a specific RISC-V callee-saved register.
src/backend/riscv/codegen/emit.rs:78
Functionconstraint_to_callee_saved_x86
Check if a constraint string refers to a specific x86-64 callee-saved register.
src/backend/x86/codegen/emit.rs:113
Methodcopy_block_comment
Copy a C-style block comment verbatim. Uses batch slice copy instead of per-byte push for the comment body.
src/frontend/preprocessor/macro_defs.rs:596
Methodcopy_blue_painted
Copy a blue-painted identifier verbatim (never re-expanded). Uses batch slice copy for the identifier bytes after the marker.
src/frontend/preprocessor/macro_defs.rs:416
Methodcopy_line_comment
Copy a line comment verbatim. Uses batch slice copy instead of per-byte push.
src/frontend/preprocessor/macro_defs.rs:615
Methodcopy_ppnumber
Copy a pp-number (numeric literal) verbatim. Uses batch slice copy instead of per-byte push.
src/frontend/preprocessor/macro_defs.rs:628
Methodcreal_return_type
Determine the return type for creal/crealf/creall/cimag/cimagf/cimagl based on function name.
src/ir/lowering/expr_builtins.rs:28
Methodctype_from_ir_const
Derive a CType from an IrConst value. This is O(1) and avoids the potentially exponential infer_expr_ctype() when we already have the evaluated consta
src/frontend/sema/const_eval.rs:507
Methodctype_innermost_elem_size
Get the innermost element size for a CType::Array chain.
src/ir/lowering/types.rs:885
Methodctype_to_type_spec
Convert a CType back to a TypeSpecifier (for typeof and __auto_type resolution).
src/ir/lowering/types_ctype.rs:21
Methodctypes_compatible
Check if two CTypes are compatible for __builtin_types_compatible_p purposes. This is structural equality with special handling for: - Arrays: compati
src/ir/lowering/types.rs:149
Methodcurrent_return_type
(&self)
src/backend/riscv/codegen/emit.rs:595
Methodcurrent_return_type_impl
(&self)
src/backend/arm/codegen/returns.rs:41
Methodcurrent_return_type_impl
(&self)
src/backend/x86/codegen/returns.rs:60
Functiondecode_uleb128
Infrastructure for RISC-V linker relaxation (R_RISCV_SET_ULEB128/R_RISCV_SUB_ULEB128)
src/backend/riscv/linker/relocations.rs:652
Methoddefault
()
src/frontend/sema/analysis.rs:107
Methoddefault
()
src/frontend/preprocessor/pipeline.rs:963
Methoddefault
()
src/frontend/preprocessor/conditionals.rs:87
Methoddefault
()
src/frontend/preprocessor/macro_defs.rs:1141
Methoddefault
()
src/backend/arm/codegen/emit.rs:1995
Methoddefault
()
src/backend/x86/codegen/emit.rs:1459
Methoddefault
()
src/backend/riscv/codegen/emit.rs:756
Methoddefault
()
src/ir/module.rs:282
Methoddefault
()
src/driver/pipeline.rs:1137
Methoddefault
()
src/common/symbol_table.rs:63
Methoddefault
()
src/common/error.rs:304
Methoddefault_code_mode
Default code mode for this architecture (64 for x86-64, 32 for i686).
src/backend/elf_writer_common.rs:85
Methoddefault_code_mode
()
src/backend/i686/assembler/elf_writer.rs:99
Methoddefault_modifier_for_type
Determine the default register size modifier based on the operand's IR type. In GCC inline asm, the default register size matches the C type: - 8-bit
src/backend/x86/codegen/inline_asm.rs:93
Methoddefault_system_include_paths
Get default system include paths (arch-neutral only).
src/frontend/preprocessor/predefined_macros.rs:261
Methodderef
(&self)
src/ir/lowering/definitions.rs:104
Methodderef_mut
(&mut self)
src/ir/lowering/definitions.rs:108
Methoddest_reg_for_type
Get the appropriately-sized destination register name for a type.
src/backend/i686/codegen/asm_emitter.rs:665
Methoddiv_big
Divide dividend by divisor, returning the quotient (floor division). The remainder is discarded. Used for dividing by large powers of 10.
src/common/long_double.rs:228
Functiondiv_by_const_function
Transform division/modulo by constants in a single function.
src/passes/div_by_const.rs:51
Methoddouble_width_type
Get the double-width integer type for overflow multiply detection.
src/ir/lowering/expr_builtins_overflow.rs:468
Methoddrop
(&mut self)
src/common/temp_files.rs:82
Methoddummy
()
src/common/source.rs:14
Methoddynamic_linker
Return the dynamic linker path for this target.
src/backend/mod.rs:142
Functioneffective_align
Compute effective alignment for a global, promoting to 16 when size >= 16. This matches GCC/Clang behavior on x86-64 and aarch64, enabling aligned SSE
src/backend/common.rs:1167
Methodelf_class
()
src/backend/x86/assembler/elf_writer.rs:70
Methodelf_class
()
src/backend/i686/assembler/elf_writer.rs:85
Methodelf_flags
ELF flags (typically 0 for both).
src/backend/elf_writer_common.rs:50
Methodelf_machine
()
src/backend/x86/assembler/elf_writer.rs:69
Methodelf_machine
()
src/backend/i686/assembler/elf_writer.rs:84
Functionelf_machine_name
Map an ELF e_machine value to a human-readable architecture name.
src/backend/common.rs:122
Functioneliminate_push_pop_pairs
(store: &LineStore, infos: &mut [LineInfo])
src/backend/i686/codegen/peephole.rs:1587
Functioneliminate_unused_callee_saves
(store: &LineStore, infos: &mut [LineInfo])
src/backend/i686/codegen/peephole.rs:1520
Methodemit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/arm/codegen/emit.rs:1744
Methodemit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/x86/codegen/emit.rs:1143
Methodemit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/riscv/codegen/emit.rs:490
Methodemit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/i686/codegen/emit.rs:1267
Methodemit_acc_to_secondary
(&mut self)
src/backend/riscv/codegen/emit.rs:588
Methodemit_acc_to_secondary_impl
(&mut self)
src/backend/x86/codegen/memory.rs:340
Methodemit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/x86/codegen/memory.rs:270
Methodemit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/i686/codegen/memory.rs:428
Methodemit_add_offset_to_addr_reg_impl
(&mut self, offset: i64)
src/backend/i686/codegen/memory.rs:371
Methodemit_add_secondary_to_acc
(&mut self)
src/backend/riscv/codegen/emit.rs:586
Methodemit_add_secondary_to_acc
(&mut self)
src/backend/i686/codegen/emit.rs:1276
Methodemit_add_secondary_to_acc_impl
(&mut self)
src/backend/x86/codegen/memory.rs:239
Methodemit_align_acc_impl
(&mut self, align: usize)
src/backend/arm/codegen/memory.rs:191
Methodemit_align_acc_impl
(&mut self, align: usize)
src/backend/x86/codegen/memory.rs:295
Methodemit_align_acc_impl
(&mut self, align: usize)
src/backend/riscv/codegen/memory.rs:248
Methodemit_align_acc_impl
(&mut self, align: usize)
src/backend/i686/codegen/memory.rs:450
Methodemit_alloca_aligned_addr_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/i686/codegen/memory.rs:457
Methodemit_alloca_aligned_addr_to_acc_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/arm/codegen/memory.rs:228
← previousnext →4,301–4,400 of 6,057, ranked by callers