MCPcopy Create free account

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

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

↓ 2 callersMethodbuild_function_pointer_ctype_from_typedef
Build a CType::Pointer(CType::Function(...)) from a function pointer typedef.
src/ir/lowering/types_ctype.rs:219
↓ 2 callersFunctionbuild_global_symbols
Build the global symbol table from all input objects. For each non-local symbol, creates or updates a `GlobalSym` entry. Handles SHN_UNDEF (undefined
src/backend/riscv/linker/symbols.rs:20
↓ 2 callersFunctionbuild_gnu_hash_32
Build a .gnu.hash section for ELF32. `hashed_names`: names of symbols that go into the hash (at indices >= symoffset) `symoffset`: first hashed symbo
src/backend/i686/linker/gnu_hash.rs:15
↓ 2 callersFunctionbuild_label_to_idx
(func: &IrFunction)
src/passes/cfg_simplify.rs:87
↓ 2 callersFunctionbuild_local_sym_vaddrs
Build local symbol virtual address table for relocation resolution.
src/backend/riscv/linker/symbols.rs:212
↓ 2 callersFunctionbuild_plt
( num_plt: usize, plt_vaddr: u32, plt_header_size: u32, plt_entry_size: u32, gotplt_vaddr: u32, gotplt
src/backend/i686/linker/emit.rs:1196
↓ 2 callersFunctionbuild_pred_info
Build predecessor count for each block. Counts edges from terminators and from InlineAsm goto_labels (which are implicit control flow edges). Also re
src/passes/cfg_simplify.rs:96
↓ 2 callersMethodbuild_result
Build the final output string, skipping lines where `skip(i)` returns true.
src/backend/peephole_common.rs:206
↓ 2 callersMethodcall_abi_config_impl
(&self)
src/backend/arm/codegen/calls.rs:9
↓ 2 callersMethodcall_abi_config_impl
(&self)
src/backend/x86/codegen/calls.rs:10
↓ 2 callersMethodcall_abi_config_impl
(&self)
src/backend/riscv/codegen/calls.rs:10
↓ 2 callersFunctioncallee_saved_name_32
(reg: PhysReg)
src/backend/arm/codegen/emit.rs:61
↓ 2 callersFunctionchar_escape_value
Shared assembly expression evaluator for all assembler backends (x86, i686, ARM, RISC-V). Supports arithmetic expressions with proper operator preced
src/backend/asm_expr.rs:17
↓ 2 callersMethodcheck_member_exists
Check that a struct/union member access refers to an existing field. Emits an error if the base type is a known struct/union with a complete layout an
src/frontend/sema/analysis.rs:1564
↓ 2 callersFunctioncheck_undefined_symbols
Check for truly undefined symbols (not dynamic, not weak, not linker-defined).
src/backend/riscv/linker/symbols.rs:245
↓ 2 callersFunctionclassify_args_core
Core ABI classification algorithm shared by both caller and callee paths. Walks the argument list and assigns each to a register or stack class based
src/backend/call_abi.rs:384
↓ 2 callersFunctionclassify_call_args
Classify all arguments for a function call, returning a `CallArgClass` per argument. This is the caller-side entry point. It extracts `ArgInfo` from
src/backend/call_abi.rs:567
↓ 2 callersFunctionclassify_cast_with_f128
Classify a cast between two IR types. This captures the shared decision logic that all four backends use identically. Backends then match on the retur
src/backend/cast.rs:67
↓ 2 callersFunctionclassify_ctype
Classify a CType according to GCC's __builtin_classify_type conventions. Returns the GCC type class integer: 0 = no_type_class (void) 1 = integer_type
src/ir/lowering/expr_builtins.rs:871
↓ 2 callersFunctionclassify_float_binop
Classify a binary operation on floats. Returns None if the operation is not meaningful on floats (e.g., bitwise And, Or, Xor, shifts, integer remainde
src/backend/cast.rs:208
↓ 2 callersFunctionclassify_line
Classify a single assembly line into a LineKind.
src/backend/arm/codegen/peephole.rs:147
↓ 2 callersFunctionclassify_line
Classify a single assembly line into a LineKind.
src/backend/riscv/codegen/peephole.rs:151
↓ 2 callersFunctionclassify_line
(raw: &str)
src/backend/i686/codegen/peephole.rs:398
↓ 2 callersFunctionclassify_value
Classify a non-alloca value into Tier 2 (multi-block) or Tier 3 (block-local).
src/backend/stack_layout/slot_assignment.rs:365
↓ 2 callersFunctionclean_path
Clean a path by resolving `.` and `..` components without following symlinks.
src/frontend/preprocessor/includes.rs:259
↓ 2 callersFunctionclobber_to_phys
(name: &str)
src/backend/x86/codegen/emit.rs:96
↓ 2 callersMethodcoerce_to_with_src
Coerce this constant to match a target IrType, with optional source type for signedness.
src/ir/constants.rs:484
↓ 2 callersMethodcollect_all_scope_cleanup_vars
Collect all cleanup variables from all active scopes (for return statements). Returns cleanup vars from innermost scope to outermost scope, each scope
src/ir/lowering/lower.rs:405
↓ 2 callersFunctioncollect_block_body
Collect the body lines of a `.rept`/`.irp` block, handling nesting. Returns the body lines and advances `i` past the closing `.endr`.
src/backend/asm_preprocess.rs:212
↓ 2 callersMethodcollect_derived_array_dims
Collect array dimensions from derived declarators. Returns None for unsized dimensions (e.g., `int arr[]`).
src/ir/lowering/types.rs:506
↓ 2 callersMethodcollect_enum_constants_from_type_spec
Recursively collect enum constants from a type specifier, walking into struct/union field types. This ensures that inline enum definitions within stru
src/frontend/sema/analysis.rs:752
↓ 2 callersMethodcollect_enum_constants_impl
Collect enum constants from a type specifier.
src/ir/lowering/lower.rs:1187
↓ 2 callersFunctioncollect_got_entries
Identify GOT entries needed by scanning for GOT_HI20 and TLS GOT relocations. Returns the ordered list of GOT symbol keys, the set of TLS GOT symbols
src/backend/riscv/linker/symbols.rs:171
↓ 2 callersFunctioncollect_inline_asm_callee_saved_inner
( func: &IrFunction, used: &mut Vec<PhysReg>, constraint_to_phys: impl Fn(&str) -> Option<PhysReg>
src/backend/stack_layout/inline_asm.rs:147
↓ 2 callersMethodcollect_type_array_dims
For Array(Array(Int, 3), 2), returns [2, 3] (but we skip the outermost since that comes from the derived declarator).
src/ir/lowering/types.rs:847
↓ 2 callersMethodcollect_vector_scalars_from_items
Collect scalar values from initializer items into a vector slot.
src/ir/lowering/global_init.rs:936
↓ 2 callersFunctioncombined_local_pass
Combined local pass: scan once, apply multiple patterns.
src/backend/i686/codegen/peephole.rs:634
↓ 2 callersMethodcompound_literal_size
Compute the byte size of a compound literal, handling incomplete array types. For incomplete arrays (e.g., `(int[]){1,2,3}`), sizeof_type returns 0, s
src/ir/lowering/expr_access.rs:205
↓ 2 callersFunctioncompute_dominance_frontiers
Compute dominance frontiers for each block. DF(b) = set of blocks where b's dominance ends (join points).
src/ir/analysis.rs:302
↓ 2 callersMethodcompute_fam_extra_size
Compute extra bytes needed for a flexible array member (FAM).
src/ir/lowering/global_init.rs:1235
↓ 2 callersMethodcompute_flat_index_from_designators
Compute a flat index from multi-dimensional designator indices.
src/ir/lowering/global_init.rs:1743
↓ 2 callersFunctioncompute_stack_arg_padding
Compute per-stack-arg alignment padding needed in the forward layout. Returns a Vec with one entry per `arg_classes` element. Non-stack args get 0. F1
src/backend/call_abi.rs:843
↓ 2 callersFunctioncompute_stack_arg_space
Compute the total stack space needed for stack-overflow arguments. Returns the total bytes needed, 16-byte aligned. Use this for ARM and RISC-V which
src/backend/call_abi.rs:828
↓ 2 callersMethodcompute_vla_runtime_size
Compute the runtime sizeof for a VLA local variable. Returns Some(Value) if any array dimension is a non-constant expression. The Value holds the tota
src/ir/lowering/stmt.rs:1125
↓ 2 callersFunctionconst_equal
Compare two IR constants for equality using hash keys (consistent with GVN).
src/passes/ipcp.rs:273
↓ 2 callersFunctionconst_for_asm_operand
Convert an IR constant to a 64-bit value appropriate for an inline asm operand. On AArch64, 32-bit values in X registers must have upper 32 bits zeroe
src/backend/arm/codegen/asm_emitter.rs:29
↓ 2 callersFunctionconst_natural_type
Get the natural IR type of a constant, falling back to `default_ty` for types that don't have a narrower representation (I64, I128, etc.).
src/backend/common.rs:1535
↓ 2 callersFunctionconstraint_needs_address
Check whether a constraint requires an address (lvalue) rather than a value (rvalue). This covers both memory-only constraints (m, o, V, Q) and addres
src/backend/inline_asm.rs:308
↓ 2 callersMethodconsume_post_type_qualifiers
Consume post-type storage class specifiers and qualifiers. C allows "struct { int i; } typedef name;" and "char _Alignas(16) x;". This is shared betwe
src/frontend/parser/declarations.rs:1120
↓ 2 callersFunctioncontrol_reg_num
(name: &str)
src/backend/x86/assembler/encoder/registers.rs:42
↓ 2 callersFunctioncontrol_reg_num
Get control register number.
src/backend/i686/assembler/encoder/registers.rs:42
↓ 2 callersFunctioncopy_literal_bytes_to_string
Copy a string or character literal from a byte slice into a String result. Returns the position after the closing quote. Handles backslash escapes. Co
src/frontend/preprocessor/utils.rs:88
↓ 2 callersMethodcopy_metadata_from
Copy register assignment and addressing metadata from another operand. Used for tied operands and "+" read-write propagation.
src/backend/inline_asm.rs:91
↓ 2 callersFunctionctype_from_type_spec
Convert a TypeSpecifier to CType using the TypeContext for typedef/struct resolution. This is a standalone function that doesn't need the full TypeCon
src/frontend/sema/const_eval.rs:1100
↓ 2 callersMethodctype_matches_generic
(&self, controlling: &CType, assoc: &CType)
src/ir/lowering/expr_access.rs:563
↓ 2 callersFunctiondebug_reg_num
(name: &str)
src/backend/x86/assembler/encoder/registers.rs:58
↓ 2 callersFunctiondedup_macro_names
Deduplicate a list of macro names, preserving order (first occurrence wins). Used to remove duplicate names from nested macro expansions.
src/frontend/preprocessor/pipeline.rs:20
↓ 2 callersMethoddest_reg
Get the callee-saved register assigned to a destination value, if any.
src/backend/x86/codegen/emit.rs:280
↓ 2 callersMethoddest_reg
(&self, dest: &Value)
src/backend/i686/codegen/emit.rs:197
↓ 2 callersFunctiondetect_include_guard
Detect if a source file has a classic include guard pattern. The pattern we detect is: - First non-blank, non-comment directive is `#ifndef GUARD_MAC
src/frontend/preprocessor/includes.rs:31
↓ 2 callersFunctiondump_function_ir
Debug: dump function IR in a readable text format.
src/passes/inline.rs:1726
↓ 2 callersMethodeax_for_type
Return the register name for eax sub-register based on type size.
src/backend/i686/codegen/emit.rs:449
↓ 2 callersFunctioneliminate_adjacent_store_load
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:475
↓ 2 callersFunctioneliminate_adjacent_store_load
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:416
↓ 2 callersFunctioneliminate_dead_reg_moves
(lines: &[String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:832
↓ 2 callersFunctioneliminate_dead_reg_moves
Remove register moves where the destination is overwritten before being read.
src/backend/i686/codegen/peephole.rs:1106
↓ 2 callersFunctioneliminate_dead_stores
Remove stores to stack slots that are immediately overwritten.
src/backend/i686/codegen/peephole.rs:1035
↓ 2 callersFunctioneliminate_li_mv_chain
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:538
↓ 2 callersFunctioneliminate_move_chains
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:575
↓ 2 callersFunctioneliminate_redundant_branches
(lines: &[String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:526
↓ 2 callersFunctioneliminate_redundant_jumps
(lines: &[String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:453
↓ 2 callersFunctioneliminate_redundant_mv_chain
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:503
↓ 2 callersFunctioneliminate_self_moves
(kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:554
↓ 2 callersFunctioneliminate_self_moves
(kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:482
↓ 2 callersMethodemit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/arm/codegen/memory.rs:163
↓ 2 callersMethodemit_add_imm_to_acc_impl
(&mut self, imm: i64)
src/backend/riscv/codegen/memory.rs:152
↓ 2 callersMethodemit_align_with_reloc
Emit alignment padding with an R_RISCV_ALIGN relocation in executable sections (when relaxation is enabled). The linker needs these to know where alig
src/backend/riscv/assembler/elf_writer.rs:466
↓ 2 callersMethodemit_alloca_aligned_addr_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/arm/codegen/memory.rs:218
↓ 2 callersMethodemit_alloca_aligned_addr_impl
(&mut self, slot: StackSlot, val_id: u32)
src/backend/riscv/codegen/memory.rs:163
↓ 2 callersMethodemit_branch
Emit an unconditional branch.
src/backend/traits.rs:1048
↓ 2 callersMethodemit_branch
(&mut self, label: &str)
src/backend/riscv/codegen/emit.rs:498
↓ 2 callersMethodemit_call
(&mut self, target: &str)
src/backend/common.rs:968
↓ 2 callersMethodemit_call_f128_pre_convert
Pre-convert F128 variable arguments that need __extenddftf2/__trunctfdf2. Returns the temp stack space allocated for converted results.
src/backend/traits.rs:558
↓ 2 callersMethodemit_call_move_f32_to_acc
(&mut self)
src/backend/arm/codegen/emit.rs:1838
↓ 2 callersMethodemit_call_spill_fptr
(&mut self, func_ptr: &Operand)
src/backend/arm/codegen/emit.rs:1833
↓ 2 callersMethodemit_call_store_f128_result
(&mut self, _dest: &Value)
src/backend/x86/codegen/emit.rs:1242
↓ 2 callersMethodemit_call_store_i128_result
(&mut self, _dest: &Value)
src/backend/riscv/codegen/emit.rs:591
↓ 2 callersMethodemit_callee_saved_clobber_annotations
Emit comment annotations for callee-saved registers listed in inline asm clobber lists. The peephole pass's `eliminate_unused_callee_saves` scans func
src/backend/x86/codegen/emit.rs:895
↓ 2 callersMethodemit_char16_string_to_alloca
Emit a char16_t string (u"...") to a local alloca. Each character is stored as U16.
src/ir/lowering/lower.rs:1355
↓ 2 callersMethodemit_cmp_operand_load
Load comparison operands into t1 and t2, then sign/zero-extend sub-64-bit types. Shared by emit_cmp and emit_fused_cmp_branch.
src/backend/riscv/codegen/emit.rs:167
↓ 2 callersMethodemit_cmpxchg_with_writeback
Emit a compare-exchange with writeback to expected_ptr and equality comparison.
src/ir/lowering/expr_atomics.rs:323
↓ 2 callersMethodemit_comm
Emit a .comm symbol (COMMON block).
src/backend/elf/writer_base.rs:410
↓ 2 callersMethodemit_data_value
Emit a typed data value for .long (size=4) or .quad (size=8). Note: `SymbolDiff` sym_a/sym_b may contain embedded addends (e.g. `"cgroup_bpf_enabled_
src/backend/riscv/assembler/elf_writer.rs:887
↓ 2 callersMethodemit_epilogue_arm
Emit function epilogue: restore fp/lr and deallocate stack.
src/backend/arm/codegen/emit.rs:981
↓ 2 callersMethodemit_epilogue_riscv
Emit epilogue: restore ra/s0 and deallocate stack.
src/backend/riscv/codegen/prologue.rs:649
↓ 2 callersMethodemit_f128_fldt
Emit `fldt` from a resolved address (loading x87 80-bit to ST0).
src/backend/x86/codegen/f128.rs:39
↓ 2 callersMethodemit_f128_fstpt
Emit `fstpt` to a resolved address (storing x87 ST0 as 80-bit).
src/backend/x86/codegen/f128.rs:47
↓ 2 callersMethodemit_f128_load_finish
Complete an F128 load after fldt has placed the value in x87 ST0. Stores full 80-bit precision to dest's slot (if available) and puts a truncated f64
src/backend/x86/codegen/f128.rs:140
↓ 2 callersMethodemit_f128_neg
Negate an F128 (long double) value with full precision. This method must handle loading, negation, and storing the result (including emit_store_result
src/backend/traits.rs:1017
↓ 2 callersMethodemit_f128_operand_to_q0_full
Load an F128 operand into Q0 with full precision.
src/backend/arm/codegen/f128.rs:321
← previousnext →1,301–1,400 of 6,057, ranked by callers