MCPcopy Create free account

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

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

↓ 1 callersMethodpreprocess_assembly
Preprocess an assembly file. Uses the built-in C preprocessor by default. When the `gcc_assembler` feature is enabled, falls back to GCC for preproce
src/driver/pipeline.rs:444
↓ 1 callersMethodpreprocess_assembly_gcc
(&self, input_file: &str)
src/driver/pipeline.rs:493
↓ 1 callersMethodpreprocess_force_include
Process a force-included file (-include flag). This preprocesses the file content as if it were #include'd at the very beginning of the main source fi
src/frontend/preprocessor/pipeline.rs:734
↓ 1 callersMethodprocess_directive
(&mut self, dir: &AsmDirective)
src/backend/arm/assembler/elf_writer.rs:420
↓ 1 callersMethodprocess_directive
(&mut self, directive: &Directive)
src/backend/riscv/assembler/elf_writer.rs:555
↓ 1 callersMethodprocess_enum_variants
(&mut self, variants: &[EnumVariant])
src/frontend/sema/analysis.rs:717
↓ 1 callersMethodprocess_flag
Process a single -W flag argument (the part after -W). Returns true if the flag was recognized, false if unknown (silently ignored).
src/common/error.rs:245
↓ 1 callersMethodprocess_instruction
(&mut self, mnemonic: &str, operands: &[Operand], raw_operands: &str)
src/backend/arm/assembler/elf_writer.rs:614
↓ 1 callersMethodprocess_instruction
(&mut self, mnemonic: &str, operands: &[Operand], raw_operands: &str)
src/backend/riscv/assembler/elf_writer.rs:988
↓ 1 callersMethodprocess_item
(&mut self, item: &AsmItem)
src/backend/elf_writer_common.rs:371
↓ 1 callersFunctionprocess_linker_script
Process a GNU linker script, extracting `.so` references and `-l` library flags.
src/backend/riscv/linker/input.rs:122
↓ 1 callersMethodprocess_org
(&mut self, sym: &str, offset: i64)
src/backend/elf_writer_common.rs:564
↓ 1 callersMethodprocess_statement
(&mut self, stmt: &AsmStatement)
src/backend/arm/assembler/elf_writer.rs:393
↓ 1 callersMethodprocess_statement
(&mut self, stmt: &AsmStatement)
src/backend/riscv/assembler/elf_writer.rs:527
↓ 1 callersMethodprocess_statements
Process all parsed assembly statements.
src/backend/arm/assembler/elf_writer.rs:352
↓ 1 callersMethodprocess_statements
Process all parsed assembly statements.
src/backend/riscv/assembler/elf_writer.rs:491
↓ 1 callersFunctionpromote_allocas_with_params
Promote allocas to SSA form, including parameter allocas. This is the post-inlining mem2reg pass. Parameter allocas can now be promoted because inlini
src/ir/mem2reg/promote.rs:55
↓ 1 callersMethodpromote_for_op
Promote a loaded value to the operation type for compound assignment.
src/ir/lowering/expr_assign.rs:596
↓ 1 callersFunctionpropagate_constant_arguments
Propagate constant arguments into function bodies. For each defined function, collects all call sites across the module. If every call site passes th
src/passes/ipcp.rs:336
↓ 1 callersFunctionpropagate_register_copies
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:753
↓ 1 callersFunctionpropagate_register_copies
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/copy_propagation.rs:110
↓ 1 callersFunctionpropagate_register_copies
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:759
↓ 1 callersFunctionpropagate_wide_values
On 32-bit targets, propagate wide-value status through Copy chains. Copy instructions for 64-bit values (F64, I64, U64) need 8-byte copies (two movl
src/backend/stack_layout/slot_assignment.rs:850
↓ 1 callersMethodptr_size
Pointer size in bytes for this target.
src/backend/mod.rs:227
↓ 1 callersFunctionpush_string_as_elements
Convert a byte buffer to GlobalInit elements for a string literal in a char array. Pushes each character as I8, followed by padding zeros up to `field
src/ir/lowering/global_init_helpers.rs:209
↓ 1 callersFunctionpush_u8_decimal
(buf: &mut String, v: u8)
src/backend/common.rs:1708
↓ 1 callersFunctionread_i32_le
(data: &[u8], off: usize)
src/backend/linker_common/eh_frame.rs:350
↓ 1 callersMethodrecompute_layout_if_vector_fields
Re-compute a struct/union layout if any of its fields use vector typedefs. Updates the existing layout entry in the map using the key from sema.
src/ir/lowering/structs.rs:116
↓ 1 callersMethodrecompute_vector_struct_layouts
Re-compute struct/union layouts that contain vector typedef fields. Sema computed these layouts before vector_size was applied to typedefs, so their f
src/ir/lowering/structs.rs:75
↓ 1 callersMethodreconstruct_decomposed_complex_param
Reconstruct a decomposed complex parameter from its real/imag Phase 1 allocas.
src/ir/lowering/func_lowering.rs:411
↓ 1 callersFunctionrecord_instruction_uses_dense
Record uses of operands in an instruction (dense index version).
src/backend/liveness.rs:815
↓ 1 callersFunctionrecord_terminator_uses_dense
Record uses in a terminator (dense index version).
src/backend/liveness.rs:845
↓ 1 callersFunctionreduce_loop
Try to strength-reduce induction variables in a single loop.
src/passes/iv_strength_reduce.rs:113
↓ 1 callersMethodregister_enum_constants
Register enum constant values from parsed variants into the parser's enum_constants map. This allows later constant expressions (e.g., in __attribute_
src/frontend/parser/types.rs:814
↓ 1 callersMethodregister_local_var
( &mut self, decl: &Declaration, declarator: &InitDeclarator, type_spec: &TypeSpecifier, da: &
src/ir/lowering/stmt.rs:306
↓ 1 callersMethodregister_nested_in_type_spec
Walk a TypeSpecifier and register any struct/union definitions found within it.
src/ir/lowering/structs.rs:194
↓ 1 callersMethodregister_normal_param
Register a normal (non-struct, non-complex) parameter as a local variable.
src/ir/lowering/func_lowering.rs:329
↓ 1 callersFunctionregister_overlaps
Check if two register names overlap (e.g., %eax overlaps with %rax).
src/backend/x86/codegen/peephole/types.rs:1019
↓ 1 callersMethodregister_packed_complex_float_param
Register a packed complex float parameter (x86-64 only) as a local variable.
src/ir/lowering/func_lowering.rs:400
↓ 1 callersMethodregister_struct_or_complex_param
Register a struct/union or non-decomposed complex parameter as a local variable.
src/ir/lowering/func_lowering.rs:385
↓ 1 callersMethodregister_typedefs
Register typedef names from declarators, if parsing_typedef is set.
src/frontend/parser/declarations.rs:1151
↓ 1 callersMethodrelax_jumps
(&mut self)
src/backend/elf_writer_common.rs:1336
↓ 1 callersMethodremaining_scalars_in_current_field
Compute how many scalar slots remain in the current field given a flat position.
src/ir/lowering/const_eval_init_size.rs:295
↓ 1 callersFunctionremap_instruction
Remap all values and block references in an instruction.
src/passes/inline.rs:1502
↓ 1 callersFunctionremap_terminator
Remap block references in a terminator.
src/passes/inline.rs:1702
↓ 1 callersFunctionremap_terminator_targets
Remap terminator targets using a label substitution map. For each target in the terminator, if `remap[target]` exists, replace it.
src/passes/cfg_simplify.rs:144
↓ 1 callersFunctionremove_dead_blocks
Remove blocks that have no predecessors (except the entry block, blocks[0]). Returns the number of blocks removed.
src/passes/cfg_simplify.rs:618
↓ 1 callersFunctionremove_ineligible_operands
Remove values from the eligible set that are used as operands in instructions whose codegen paths use resolve_slot_addr() directly (not register-aware
src/backend/regalloc.rs:421
↓ 1 callersFunctionremove_phi_entries_from_set
Remove phi entries from a block where the source label is in `dead_labels`.
src/passes/cfg_simplify.rs:134
↓ 1 callersFunctionremove_promoted_instructions
Remove promoted alloca, load, and store instructions.
src/ir/mem2reg/promote.rs:748
↓ 1 callersFunctionremove_unreachable
Phase 5: Remove unreachable static functions and globals.
src/passes/dead_statics.rs:316
↓ 1 callersMethodremove_val
(&mut self, val: i32)
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:64
↓ 1 callersFunctionrename_block
Recursive dominator-tree DFS for variable renaming.
src/ir/mem2reg/promote.rs:485
↓ 1 callersFunctionrename_variables
Rename variables to complete SSA construction. This traverses the dominator tree, maintaining stacks of current definitions for each promoted alloca,
src/ir/mem2reg/promote.rs:397
↓ 1 callersMethodrender_include_trace
Render "In file included from X:Y:" traces for errors in included files. GCC emits these traces before the first diagnostic in an included file, show
src/common/error.rs:619
↓ 1 callersMethodrender_macro_expansion_trace
Render "note: in expansion of macro 'X'" traces for diagnostics that occur in lines produced by macro expansion. GCC emits these notes when an error
src/common/error.rs:777
↓ 1 callersMethodrender_snippet
Render a source code snippet with a caret pointing to the error location. Output format: ```text int x = 42 ^~ ``` When color is enabled, the caret
src/common/error.rs:831
↓ 1 callersFunctionreplace_dest_register
Replace the destination register in an instruction.
src/backend/x86/codegen/peephole/types.rs:920
↓ 1 callersFunctionreplace_operands_in_instruction
Replace operands in an instruction that reference copied values. Returns the number of replacements made.
src/passes/copy_prop.rs:193
↓ 1 callersFunctionreplace_operands_in_terminator
Replace operands in a terminator.
src/passes/copy_prop.rs:323
↓ 1 callersFunctionreplace_reg_family_in_source
Replace register family occurrences only in the source operand part (before the last comma). The destination operand is left unchanged.
src/backend/x86/codegen/peephole/passes/helpers.rs:80
↓ 1 callersFunctionreplace_reg_name_exact
Replace all complete occurrences of `old_reg` with `new_reg` in `line`. A "complete" occurrence means `old_reg` is not a prefix of a longer register n
src/backend/x86/codegen/peephole/passes/helpers.rs:53
↓ 1 callersFunctionreplace_whole_word
Replace every whole-word occurrence of `old` with `new` in `text`. A word boundary is a position where the adjacent character is not an identifier ch
src/backend/peephole_common.rs:27
↓ 1 callersFunctionreplace_whole_word
Replace all whole-word occurrences of `word` with `replacement`. A word boundary is any position where the adjacent character is not alphanumeric or u
src/backend/x86/assembler/parser.rs:2077
↓ 1 callersMethodreset_for_function
(&mut self)
src/backend/state.rs:301
↓ 1 callersMethodreset_scratch_state
(&mut self)
src/backend/arm/codegen/asm_emitter.rs:377
↓ 1 callersFunctionresolve_archive_members
Pull in archive members that satisfy undefined symbols, iterating until stable.
src/backend/i686/linker/input.rs:299
↓ 1 callersFunctionresolve_archives
Resolve undefined symbols from `.a` archives using group iteration. Iterates over all archives repeatedly until no new symbols are resolved, handling
src/backend/riscv/linker/input.rs:204
↓ 1 callersMethodresolve_array_subscript_decay
Resolve an array subscript expression that results in array-to-pointer decay. This handles `regs[i]` where `regs` is a multidimensional array, so `reg
src/ir/lowering/const_eval_global_addr.rs:367
↓ 1 callersFunctionresolve_builtin
Look up a function name and return its builtin info, if it's a known builtin.
src/frontend/sema/builtins.rs:647
↓ 1 callersMethodresolve_cast_array_subscript
Resolve an array subscript where the base is a cast of a global address expression. For example: `((const char *)boot_cpu_data.x86_capability)[1]` res
src/ir/lowering/const_eval_global_addr.rs:493
↓ 1 callersFunctionresolve_chain_with_compression
Resolve a copy chain starting at `start` with path compression. Walks the chain to find the ultimate source, then updates all intermediate entries to
src/passes/copy_prop.rs:123
↓ 1 callersFunctionresolve_cond_branch_value
Try to resolve a CondBranch condition value to a constant. Walks through Copy/Phi/Cmp/Select chains in the current block, then up the single-predeces
src/passes/cfg_simplify.rs:295
↓ 1 callersFunctionresolve_copy_aliases
Propagate stack slots from root values to their copy aliases. Each aliased value gets the same StackSlot as its root, eliminating a separate slot allo
src/backend/stack_layout/slot_assignment.rs:816
↓ 1 callersMethodresolve_deferred_byte_diffs
(&mut self)
src/backend/elf_writer_common.rs:899
↓ 1 callersMethodresolve_deferred_exprs
Resolve deferred data expressions now that all labels are known.
src/backend/riscv/assembler/elf_writer.rs:950
↓ 1 callersMethodresolve_deferred_skips
(&mut self)
src/backend/elf_writer_common.rs:848
↓ 1 callersFunctionresolve_dialect_alternatives
Resolve GCC inline asm dialect alternatives in a template string. GCC inline asm supports `{alt0|alt1}` syntax where `alt0` is the AT&T dialect versi
src/backend/x86_common.rs:26
↓ 1 callersFunctionresolve_dynamic_symbols_for_shared
Discover NEEDED shared library dependencies for a shared library build. Scans object file relocations for CALL26/JUMP26 references to undefined symbol
src/backend/arm/linker/link.rs:357
↓ 1 callersFunctionresolve_dynamic_symbols_for_shared
Discover NEEDED shared library dependencies for a shared library build.
src/backend/i686/linker/shared.rs:18
↓ 1 callersMethodresolve_enum
(&self, name: &Option<String>, variants: &Option<Vec<EnumVariant>>, is_packed: bool)
src/frontend/sema/analysis.rs:1963
↓ 1 callersMethodresolve_expr_all_labels
Resolve ALL label names in an expression to their numeric offsets, using the specified section as context. Unlike `resolve_expr_labels`, this also res
src/backend/elf/writer_base.rs:505
↓ 1 callersMethodresolve_expr_cross_section
Resolve label names in an expression to their offsets regardless of section. Unlike `resolve_expr_all_labels` which only resolves labels in the same
src/backend/elf/writer_base.rs:542
↓ 1 callersMethodresolve_field_ctype
Get the CType for a struct field declaration, accounting for derived declarators.
src/frontend/sema/type_checker.rs:760
↓ 1 callersMethodresolve_forward_declared_ctype
Resolve a potentially stale (forward-declared) struct/union CType by looking up the latest complete definition from the ctype_cache. If the struct has
src/ir/lowering/expr_types.rs:950
↓ 1 callersFunctionresolve_forwarding_chains
Resolve transitive forwarding chains. Returns a map: start_block -> (final_target, immediate_pred_of_final).
src/passes/cfg_simplify.rs:445
↓ 1 callersMethodresolve_has_attribute_call_bytes
Parse `(name)` after `__has_attribute` and return "1" or "0" (byte-oriented).
src/frontend/preprocessor/expr_eval.rs:203
↓ 1 callersMethodresolve_has_builtin_call_bytes
Parse `(name)` after `__has_builtin` and return "1" or "0" (byte-oriented).
src/frontend/preprocessor/expr_eval.rs:176
↓ 1 callersFunctionresolve_in_function
(func: &mut IrFunction)
src/passes/resolve_asm.rs:38
↓ 1 callersMethodresolve_include_path_uncached
Uncached include path resolution. Called by `resolve_include_path` on cache miss.
src/frontend/preprocessor/includes.rs:644
↓ 1 callersFunctionresolve_inline_asm_symbols
Resolve InlineAsm input symbols across all functions in the module.
src/passes/resolve_asm.rs:21
↓ 1 callersFunctionresolve_inline_asm_symbols
After inlining, resolve input_symbols for InlineAsm instructions by tracing Value operands back to their definitions. When an always_inline function c
src/passes/inline.rs:589
↓ 1 callersMethodresolve_internal_relocations
(&mut self)
src/backend/elf_writer_common.rs:1619
↓ 1 callersFunctionresolve_lib_prefer_shared
(name: &str, paths: &[String])
src/backend/arm/linker/input.rs:88
↓ 1 callersFunctionresolve_linker_script_syms
Resolve symbols from a GNU linker script (GROUP/INPUT directives).
src/backend/i686/linker/dynsym.rs:204
↓ 1 callersMethodresolve_local_branches
Resolve local branch labels to PC-relative offsets using AArch64 relocation types. For symbols defined in the same section, the PC-relative offset is
src/backend/arm/assembler/elf_writer.rs:674
↓ 1 callersMethodresolve_local_branches
Resolve local branch labels to PC-relative offsets using RISC-V relocation types.
src/backend/riscv/assembler/elf_writer.rs:1236
↓ 1 callersMethodresolve_local_data_relocs
Resolve local label references in data relocations. When a data directive like `.xword .Lstr0` references a local label in a different section, the l
src/backend/elf/writer_base.rs:605
↓ 1 callersMethodresolve_local_type_spec
Resolve typeof/auto_type to a concrete TypeSpecifier, or return the original.
src/ir/lowering/stmt.rs:158
↓ 1 callersMethodresolve_member_access_array_decay
Resolve a member access expression where the field is an array type, implementing array-to-pointer decay for global struct fields. e.g., `global_struc
src/ir/lowering/const_eval_global_addr.rs:585
← previousnext →3,301–3,400 of 6,057, ranked by callers