Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claudes-c-compiler
/ functions
Functions
6,057 in github.com/anthropics/claudes-c-compiler
⨍
Functions
6,057
◇
Types & classes
346
Method
call_abi_config_impl
(&self)
src/backend/i686/codegen/calls.rs:12
Method
cast_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
Method
cast_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
Method
cast_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
Method
classify_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
Method
classify_constraint
(&self, constraint: &str)
src/backend/riscv/codegen/asm_emitter.rs:66
Method
classify_constraint
(&self, constraint: &str)
src/backend/i686/codegen/asm_emitter.rs:26
Method
classify_fetch_op
Classify __atomic_fetch_OP / __sync_fetch_and_OP builtins. Returns (rmw_op, is_sync).
src/ir/lowering/expr_atomics.rs:256
Method
classify_field_type
Recursively classify a field's type into the eightbyte slots it occupies.
src/common/types.rs:752
Function
classify_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
Method
classify_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
Method
classify_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
Method
collect_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
Function
collect_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
Method
collect_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
Method
collect_struct_union_type_specs
Collect all struct/union TypeSpecifiers with inline field definitions from a type.
src/ir/lowering/structs.rs:101
Method
common_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
Method
complex_component_ir_type
Get the IR float type for a complex type's component.
src/ir/lowering/complex.rs:29
Method
complex_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
Method
complex_pair
Create a (real, imag) pair for a complex type.
src/ir/lowering/global_init.rs:877
Method
complex_zero
Get the zero constant for a complex component type.
src/ir/lowering/complex.rs:64
Method
complex_zero_pair
Get the zero pair for a complex type.
src/ir/lowering/global_init.rs:868
Method
compress_executable_sections
Compress eligible 32-bit instructions in executable sections to 16-bit RV64C equivalents.
src/backend/riscv/assembler/elf_writer.rs:1135
Method
compute_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
Method
conditional_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
Method
const_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
Method
const_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
Method
const_as_imm12
Try to extract an immediate value suitable for ARM imm12 encoding.
src/backend/arm/codegen/emit.rs:255
Method
const_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
Method
const_as_imm32
Check if an operand is a constant that fits in an i32 immediate.
src/backend/i686/codegen/emit.rs:480
Method
const_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
Method
constant_f64
(val: f64)
src/frontend/sema/builtins.rs:637
Method
constant_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
Method
constant_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
Function
constraint_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
Function
constraint_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
Method
copy_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
Method
copy_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
Method
copy_line_comment
Copy a line comment verbatim. Uses batch slice copy instead of per-byte push.
src/frontend/preprocessor/macro_defs.rs:615
Method
copy_ppnumber
Copy a pp-number (numeric literal) verbatim. Uses batch slice copy instead of per-byte push.
src/frontend/preprocessor/macro_defs.rs:628
Method
creal_return_type
Determine the return type for creal/crealf/creall/cimag/cimagf/cimagl based on function name.
src/ir/lowering/expr_builtins.rs:28
Method
ctype_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
Method
ctype_innermost_elem_size
Get the innermost element size for a CType::Array chain.
src/ir/lowering/types.rs:885
Method
ctype_to_type_spec
Convert a CType back to a TypeSpecifier (for typeof and __auto_type resolution).
src/ir/lowering/types_ctype.rs:21
Method
ctypes_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
Method
current_return_type
(&self)
src/backend/riscv/codegen/emit.rs:595
Method
current_return_type_impl
(&self)
src/backend/arm/codegen/returns.rs:41
Method
current_return_type_impl
(&self)
src/backend/x86/codegen/returns.rs:60
Function
decode_uleb128
Infrastructure for RISC-V linker relaxation (R_RISCV_SET_ULEB128/R_RISCV_SUB_ULEB128)
src/backend/riscv/linker/relocations.rs:652
Method
default
()
src/frontend/sema/analysis.rs:107
Method
default
()
src/frontend/preprocessor/pipeline.rs:963
Method
default
()
src/frontend/preprocessor/conditionals.rs:87
Method
default
()
src/frontend/preprocessor/macro_defs.rs:1141
Method
default
()
src/backend/arm/codegen/emit.rs:1995
Method
default
()
src/backend/x86/codegen/emit.rs:1459
Method
default
()
src/backend/riscv/codegen/emit.rs:756
Method
default
()
src/ir/module.rs:282
Method
default
()
src/driver/pipeline.rs:1137
Method
default
()
src/common/symbol_table.rs:63
Method
default
()
src/common/error.rs:304
Method
default_code_mode
Default code mode for this architecture (64 for x86-64, 32 for i686).
src/backend/elf_writer_common.rs:85
Method
default_code_mode
()
src/backend/i686/assembler/elf_writer.rs:99
Method
default_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
Method
default_system_include_paths
Get default system include paths (arch-neutral only).
src/frontend/preprocessor/predefined_macros.rs:261
Method
deref
(&self)
src/ir/lowering/definitions.rs:104
Method
deref_mut
(&mut self)
src/ir/lowering/definitions.rs:108
Method
dest_reg_for_type
Get the appropriately-sized destination register name for a type.
src/backend/i686/codegen/asm_emitter.rs:665
Method
div_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
Function
div_by_const_function
Transform division/modulo by constants in a single function.
src/passes/div_by_const.rs:51
Method
double_width_type
Get the double-width integer type for overflow multiply detection.
src/ir/lowering/expr_builtins_overflow.rs:468
Method
drop
(&mut self)
src/common/temp_files.rs:82
Method
dummy
()
src/common/source.rs:14
Method
dynamic_linker
Return the dynamic linker path for this target.
src/backend/mod.rs:142
Function
effective_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
Method
elf_class
()
src/backend/x86/assembler/elf_writer.rs:70
Method
elf_class
()
src/backend/i686/assembler/elf_writer.rs:85
Method
elf_flags
ELF flags (typically 0 for both).
src/backend/elf_writer_common.rs:50
Method
elf_machine
()
src/backend/x86/assembler/elf_writer.rs:69
Method
elf_machine
()
src/backend/i686/assembler/elf_writer.rs:84
Function
elf_machine_name
Map an ELF e_machine value to a human-readable architecture name.
src/backend/common.rs:122
Function
eliminate_push_pop_pairs
(store: &LineStore, infos: &mut [LineInfo])
src/backend/i686/codegen/peephole.rs:1587
Function
eliminate_unused_callee_saves
(store: &LineStore, infos: &mut [LineInfo])
src/backend/i686/codegen/peephole.rs:1520
Method
emit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/arm/codegen/emit.rs:1744
Method
emit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/x86/codegen/emit.rs:1143
Method
emit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/riscv/codegen/emit.rs:490
Method
emit_acc_to_phys_reg
(&mut self, dest: PhysReg)
src/backend/i686/codegen/emit.rs:1267
Method
emit_acc_to_secondary
(&mut self)
src/backend/riscv/codegen/emit.rs:588
Method
emit_acc_to_secondary_impl
(&mut self)
src/backend/x86/codegen/memory.rs:340
Method
emit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/x86/codegen/memory.rs:270
Method
emit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/i686/codegen/memory.rs:428
Method
emit_add_offset_to_addr_reg_impl
(&mut self, offset: i64)
src/backend/i686/codegen/memory.rs:371
Method
emit_add_secondary_to_acc
(&mut self)
src/backend/riscv/codegen/emit.rs:586
Method
emit_add_secondary_to_acc
(&mut self)
src/backend/i686/codegen/emit.rs:1276
Method
emit_add_secondary_to_acc_impl
(&mut self)
src/backend/x86/codegen/memory.rs:239
Method
emit_align_acc_impl
(&mut self, align: usize)
src/backend/arm/codegen/memory.rs:191
Method
emit_align_acc_impl
(&mut self, align: usize)
src/backend/x86/codegen/memory.rs:295
Method
emit_align_acc_impl
(&mut self, align: usize)
src/backend/riscv/codegen/memory.rs:248
Method
emit_align_acc_impl
(&mut self, align: usize)
src/backend/i686/codegen/memory.rs:450
Method
emit_alloca_aligned_addr_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/i686/codegen/memory.rs:457
Method
emit_alloca_aligned_addr_to_acc_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/arm/codegen/memory.rs:228
← previous
next →
4,301–4,400 of 6,057, ranked by callers