MCPcopy Create free account

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

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

↓ 1 callersFunctioncollect_symbol_sets
Build the sets of locally-defined, thread-local, and weak extern symbols. Local symbols (static or hidden/internal/protected visibility) don't need GO
src/backend/generation.rs:551
↓ 1 callersFunctioncollect_terminator_gen_dense
Collect gen set for a terminator (dense bitset version).
src/backend/liveness.rs:896
↓ 1 callersFunctioncollect_thread_redirections
Collect edge redirections for jump chain threading. Returns: Vec<(block_idx, Vec<(old_target, new_target, phi_lookup_block)>)>
src/passes/cfg_simplify.rs:468
↓ 1 callersMethodcollect_trailing_specifiers
Collect additional type specifier tokens that follow the initial base type. E.g., "short" can be followed by "unsigned int", "double" by "long", "floa
src/frontend/parser/types.rs:314
↓ 1 callersFunctioncollect_unmergeable_targets
Precompute sets of blocks that cannot be merged because they are referenced by LabelAddr instructions or InlineAsm goto_labels across the function. C
src/passes/cfg_simplify.rs:778
↓ 1 callersFunctioncollect_used_values
Collect all Value IDs referenced as operands anywhere in the function body.
src/backend/stack_layout/analysis.rs:81
↓ 1 callersMethodcollect_vector_scalars_from_expr
Extract scalar values from a vector expression (compound literal or cast-wrapped).
src/ir/lowering/global_init.rs:916
↓ 1 callersMethodcollect_vla_dims
Collect VLA dimension information from a pointer-to-array type.
src/ir/lowering/func_lowering.rs:688
↓ 1 callersMethodcombine_declarator_parts
Combine declarator parts using C's inside-out rule. For `int (*fp)(int)`: outer_pointers: [] inner_derived: [Pointer] outer_suffixes: [Function([int]
src/frontend/parser/declarators.rs:161
↓ 1 callersFunctioncompact_frame
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/frame_compact.rs:29
↓ 1 callersMethodcomplex_component_ir_type
Get the IR component type if this is a complex or array-of-complex type. Complex arrays are stored as flat scalar pairs (real, imag), so the fallback
src/ir/lowering/definitions.rs:341
↓ 1 callersMethodcompound_assign_op
(&self)
src/frontend/parser/parse.rs:618
↓ 1 callersMethodcompound_literal_elem_size
Get the element size for a compound literal type. For arrays, returns the element size; for scalars/structs, returns the full size.
src/ir/lowering/expr_sizeof.rs:492
↓ 1 callersFunctioncompress_section
Compress instructions in a section's data buffer. Takes the section data (which contains 32-bit instructions) and produces a compressed version where
src/backend/riscv/assembler/compress.rs:638
↓ 1 callersFunctioncompute_coalescable_allocas
Compute which allocas can be coalesced (either block-locally or via liveness packing). An alloca is coalescable if its address never "escapes" (store
src/backend/stack_layout/alloca_coalescing.rs:236
↓ 1 callersFunctioncompute_comdat_skip
(inputs: &[InputObject])
src/backend/i686/linker/sections.rs:82
↓ 1 callersMethodcompute_decl_info
Compute allocation info for a declaration. Returns (alloc_size, elem_size, is_array, is_pointer, array_dim_strides). For multi-dimensional arrays like
src/ir/lowering/types.rs:588
↓ 1 callersMethodcompute_explicit_alignment
(&self, decl: &Declaration, type_spec: &TypeSpecifier)
src/ir/lowering/stmt.rs:266
↓ 1 callersMethodcompute_field_alignment
Compute the effective alignment and size for a field.
src/common/types.rs:336
↓ 1 callersMethodcompute_function_return_type
Compute the IR return type for a function, applying ABI overrides.
src/ir/lowering/func_lowering.rs:107
↓ 1 callersMethodcompute_global_alignment
(&self, decl: &Declaration, da: &DeclAnalysis)
src/ir/lowering/global_decl.rs:310
↓ 1 callersFunctioncompute_immediately_consumed
Identify values that can skip stack slot allocation because they are produced and consumed in adjacent instructions within the same block. A value V
src/backend/stack_layout/copy_coalescing.rs:152
↓ 1 callersMethodcompute_init_list_array_size_for_char_array
Compute the effective array size from an initializer list with potential designators. Returns the minimum array size needed to hold all designated (an
src/ir/lowering/const_eval_init_size.rs:23
↓ 1 callersFunctioncompute_line_offsets
(content: &str)
src/common/source.rs:554
↓ 1 callersFunctioncompute_loop_body
Compute the body of a natural loop given a back edge (tail -> header). Uses a reverse walk from the tail, adding all blocks that can reach the tail wi
src/passes/loop_analysis.rs:83
↓ 1 callersFunctioncompute_loop_depth
Compute the loop nesting depth for each block in the CFG. Uses DFS-based back-edge detection: an edge src -> dst where dst is an ancestor in the DFS
src/backend/liveness.rs:1044
↓ 1 callersMethodcompute_num_elems
Compute the number of elements in the array.
src/ir/lowering/global_init.rs:559
↓ 1 callersMethodcompute_pointee_type
Compute the pointee type for a declaration, considering both the base type specifier and derived declarators (pointer/array). For `char *s` (type_spec
src/ir/lowering/pointer_analysis.rs:66
↓ 1 callersMethodcompute_ptr_array_strides
For a pointer-to-array parameter type (e.g., Pointer(Array(Array(Int, 4), 3))), compute the array dimension strides for multi-dimensional subscript ac
src/ir/lowering/types.rs:533
↓ 1 callersFunctioncompute_reachability
Phase 4: Compute reachability from roots via BFS. Roots include: non-static functions, non-static globals, aliases, constructors, destructors, toplev
src/passes/dead_statics.rs:152
↓ 1 callersFunctioncompute_reverse_postorder
Compute reverse postorder traversal of the CFG.
src/ir/analysis.rs:192
↓ 1 callersFunctioncompute_stack_push_bytes
Compute the raw bytes that will be pushed onto the stack for stack arguments. Unlike `compute_stack_arg_space`, this does NOT apply final 16-byte alig
src/backend/call_abi.rs:862
↓ 1 callersMethodcompute_struct_array_init_count
Compute the number of struct elements in a flat initializer list for an unsized array of structs. Handles both braced (each item is one struct) and fl
src/ir/lowering/const_eval_init_size.rs:150
↓ 1 callersFunctioncompute_trim_offset
(b: &[u8])
src/backend/x86/codegen/peephole/types.rs:520
↓ 1 callersFunctioncompute_value_use_blocks
Compute the "use-block map" for all values in the function. For each value, records the set of block indices where that value is referenced. Phi node
src/backend/stack_layout/analysis.rs:28
↓ 1 callersMethodcompute_vla_local_strides
Compute VLA strides for a local VLA variable declaration. For `double a[n][m]`, we need strides: stride[0] = m * sizeof(double) (stride for first d
src/ir/lowering/stmt.rs:1219
↓ 1 callersMethodcompute_vla_param_strides
For pointer-to-array function parameters with VLA (runtime) dimensions, compute strides at runtime and store them in the LocalInfo.
src/ir/lowering/func_lowering.rs:599
↓ 1 callersMethodcompute_vla_size_from_type_spec
Compute VLA size from a typedef'd array type (e.g., typedef char buf[n]).
src/ir/lowering/stmt.rs:1355
↓ 1 callersMethodcompute_vla_sizeof_for_type
Compute the runtime sizeof for a type that may contain VLA dimensions. Handles both typedef names that are VLA types and direct Array types with non-c
src/ir/lowering/expr_access.rs:436
↓ 1 callersFunctioncond_branch_parts
Extract the condition code and target from a conditional branch. `b.eq .label` → Some(("eq", ".label"))
src/backend/arm/codegen/peephole.rs:368
↓ 1 callersMethodconstant_fits_immediate
Check whether a constant value fits the immediate constraint range for a given constraint string. Backends can override this to provide architecture-s
src/backend/inline_asm.rs:178
↓ 1 callersFunctionconstant_fits_immediate_constraint
Check whether a constant value fits the immediate constraint range for a given multi-alternative constraint string. For example, x86 "Ir" with value 6
src/backend/inline_asm.rs:222
↓ 1 callersFunctionconstraint_has_immediate_alt
Check whether a constraint string contains an immediate alternative character. Used by both IR lowering (to decide whether to try constant evaluation)
src/backend/inline_asm.rs:195
↓ 1 callersFunctionconstraint_has_memory_alt
Check whether a constraint string contains a memory alternative character. Handles both single-character ("m") and multi-character constraints ("rm",
src/backend/inline_asm.rs:252
↓ 1 callersFunctionconsts_equal_for_phi
Compare two IR constants for phi simplification. Integer constants of different widths but same numeric value are considered equal (e.g., I32(0) == I6
src/passes/cfg_simplify.rs:1093
↓ 1 callersMethodconsume_struct_field_qualifiers
Consume qualifiers that may appear between type specifier and declarator in struct field declarations. Handles _Alignas, const, volatile, etc.
src/frontend/parser/types.rs:717
↓ 1 callersMethodconsume_trailing_qualifiers
Consume trailing qualifiers and _Complex that may follow a resolved base type. C allows "int static x;" and "double _Complex".
src/frontend/parser/types.rs:550
↓ 1 callersFunctioncontains_comment_marker
Quick check for presence of comment markers (`/*` or `//`) in source bytes. Scans for `/` bytes first, then checks the following byte. Since `/` is re
src/frontend/preprocessor/text_processing.rs:41
↓ 1 callersFunctioncontains_standalone_ident
Check if a string contains a given identifier as a standalone token (not part of a larger identifier). Used to detect whether a function-like macro na
src/frontend/preprocessor/macro_defs.rs:1203
↓ 1 callersFunctionconvert_call_to_jmp
Convert a `call TARGET` instruction text into `jmp TARGET`. Returns None if the call format is not recognized.
src/backend/x86/codegen/peephole/passes/tail_call.rs:220
↓ 1 callersMethodconvert_compound_to_bytes_and_ptrs
Convert compound elements to byte+pointer representation for targets where pointer size < element size.
src/ir/lowering/global_init.rs:794
↓ 1 callersMethodconvert_struct_fields
(&self, fields: &[StructFieldDecl])
src/frontend/sema/analysis.rs:1781
↓ 1 callersFunctioncopy_literal_bytes_raw
Copy a string or character literal from a byte slice into a byte buffer result. Returns the position after the closing quote. Handles backslash escape
src/frontend/preprocessor/utils.rs:64
↓ 1 callersFunctioncount_dynamic_entries
( needed_libs: &[String], init_vaddr: u32, init_size: u32, fini_vaddr: u32, fini_size: u32, in
src/backend/i686/linker/emit.rs:1086
↓ 1 callersFunctioncount_dynsyms_from_gnu_hash
Count the total number of dynamic symbols from a .gnu.hash section. The .gnu.hash header contains symoffset (first hashed symbol index). We scan the
src/backend/linker_common/parse_shared.rs:348
↓ 1 callersMethodcount_fastcall_reg_params
Count how many leading params are passed in registers for fastcall (max 2).
src/backend/i686/codegen/emit.rs:465
↓ 1 callersMethodcount_initializer_elements
Count the number of array elements from an initializer. Used to resolve incomplete array types (e.g., `int arr[] = {1,2,3}`) so that sizeof(arr) works
src/frontend/sema/analysis.rs:548
↓ 1 callersFunctioncount_value_uses
Returns the number of times each IR Value is used as an operand in instructions or terminators. Indexed by Value ID; used to identify single-use value
src/backend/generation.rs:404
↓ 1 callersFunctioncreate_plt_got
( objects: &[ElfObject], globals: &mut HashMap<String, GlobalSymbol>, )
src/backend/arm/linker/plt_got.rs:13
↓ 1 callersFunctioncreate_plt_got
( objects: &[ElfObject], globals: &mut HashMap<String, GlobalSymbol>, )
src/backend/x86/linker/plt_got.rs:21
↓ 1 callersFunctionctype_from_type_spec_with_derived
Convert a TypeSpecifier with derived declarators to CType.
src/frontend/sema/const_eval.rs:1193
↓ 1 callersMethodctype_matches_generic
Check if two CTypes match for _Generic selection purposes. Uses compatible-type rules: ignores qualifiers, matches arrays with pointers.
src/frontend/sema/type_checker.rs:532
↓ 1 callersMethodctypes_compatible
Check if two CTypes are compatible (for __builtin_types_compatible_p).
src/frontend/sema/const_eval.rs:486
↓ 1 callersMethodcurrent_return_type
(&self)
src/backend/i686/codegen/emit.rs:1280
↓ 1 callersFunctiondeactivate_entry
(entry: &mut SlotEntry, reg_offsets: &mut [SmallVec; 16])
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:131
↓ 1 callersFunctiondecimal_to_float_bigint_f128
Shared decimal-to-float bigint conversion for f128 (113-bit mantissa).
src/common/long_double.rs:461
↓ 1 callersMethoddeclare_implicit_functions
Pre-declare common implicit functions that C programs expect.
src/frontend/sema/analysis.rs:1849
↓ 1 callersFunctiondecode_eh_pointer
Decode an eh_frame pointer value based on its encoding.
src/backend/linker_common/eh_frame.rs:271
↓ 1 callersMethoddecompose_complex_call_args
Decompose complex arguments at a call site for ABI compliance. Replaces complex double/float pointer arguments with (real, imag) pairs. ABI convention
src/ir/lowering/complex.rs:821
↓ 1 callersFunctiondefault_section_flags
Return default ELF section flags based on section name conventions. These are the standard mappings: `.text.*` → alloc+exec, `.data.*` → alloc+write,
src/backend/elf/linker_symbols.rs:134
↓ 1 callersFunctiondefine_builtin_macros
Define all built-in macros that substitute for system header content.
src/frontend/preprocessor/builtin_macros.rs:22
↓ 1 callersFunctiondefine_float_macros
<float.h> macros
src/frontend/preprocessor/builtin_macros.rs:244
↓ 1 callersFunctiondefine_inttypes_macros
<inttypes.h> format macros
src/frontend/preprocessor/builtin_macros.rs:286
↓ 1 callersFunctiondefine_limits_macros
<limits.h> macros for LP64 (x86-64 Linux)
src/frontend/preprocessor/builtin_macros.rs:37
↓ 1 callersMethoddefine_predefined_macros
Define standard predefined macros. Object-like macros are defined via a static table to keep this compact. Function-like macros (with parameters) are
src/frontend/preprocessor/predefined_macros.rs:17
↓ 1 callersFunctiondefine_stdatomic_macros
<stdatomic.h> macros
src/frontend/preprocessor/builtin_macros.rs:226
↓ 1 callersFunctiondefine_stdbool_macros
<stdbool.h> macros - in C11, bool/true/false are only defined by <stdbool.h>. We no longer predefine `bool` as a builtin macro because it breaks code
src/frontend/preprocessor/builtin_macros.rs:213
↓ 1 callersFunctiondefine_stdbool_true_false
Define all stdbool.h macros (called on #include <stdbool.h>).
src/frontend/preprocessor/builtin_macros.rs:218
↓ 1 callersFunctiondefine_stddef_macros
<stddef.h> macros
src/frontend/preprocessor/builtin_macros.rs:195
↓ 1 callersFunctiondefine_stdint_macros
<stdint.h> macros
src/frontend/preprocessor/builtin_macros.rs:71
↓ 1 callersFunctiondefine_type_traits_macros
Type-related GCC built-in macros
src/frontend/preprocessor/builtin_macros.rs:359
↓ 1 callersMethoddest_reg
Get the physical register assigned to a destination value.
src/backend/arm/codegen/emit.rs:228
↓ 1 callersFunctiondetect_cmp_branch_fusion
Detect if a block's last instruction is a Cmp whose result is only used by the block's CondBranch terminator. Returns the index of the Cmp if fusion i
src/backend/generation.rs:440
↓ 1 callersMethoddetect_complex_array_elem
(&self, type_spec: &TypeSpecifier, da: &DeclAnalysis)
src/ir/lowering/stmt.rs:252
↓ 1 callersFunctiondetect_diamond
Detect a diamond pattern starting from a block with a CondBranch terminator.
src/passes/if_convert.rs:249
↓ 1 callersFunctiondetect_triangle
Detect a triangle pattern: pred branches to arm and merge directly. pred: CondBranch(cond, arm, merge) -- or (cond, merge, arm) arm: side-effect-f
src/passes/if_convert.rs:410
↓ 1 callersFunctiondfs
(node: usize, succs: &FlatAdj, visited: &mut Vec<bool>, postorder: &mut Vec<usize>)
src/ir/analysis.rs:196
↓ 1 callersMethoddisable
Disable a specific warning (-Wno-<name>).
src/common/error.rs:202
↓ 1 callersFunctiondiscover_shared_lib_symbols
Discover symbols exported by shared libraries referenced via `-l` flags. For each needed library, tries to find `.so` files in the search paths and r
src/backend/riscv/linker/input.rs:70
↓ 1 callersMethoddispatch_gcc_attribute
Dispatch a single GCC attribute by name.
src/frontend/parser/parse.rs:703
↓ 1 callersFunctiondiv_256_by_128
Divide a 256-bit number (hi:lo) by a 128-bit divisor. Returns (quotient, remainder) both as u128. The quotient must fit in u128 (caller ensures this b
src/common/long_double.rs:2369
↓ 1 callersMethoddump_defines
Dump all macro definitions in GCC `-dM` format. Returns a string with one `#define` per line for every currently-defined macro, sorted alphabetically
src/frontend/preprocessor/pipeline.rs:668
↓ 1 callersFunctioneh_pointer_size
Return the byte size of an encoded pointer.
src/backend/linker_common/eh_frame.rs:334
↓ 1 callersFunctionelf_flags_for_abi
Map an ABI name to ELF e_flags, with optional RVC flag.
src/backend/riscv/assembler/mod.rs:77
↓ 1 callersFunctioneliminate_binop_push_pop_pattern
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/push_pop.rs:110
↓ 1 callersFunctioneliminate_dead_code_simple
Simple fixpoint DCE for very small functions (avoids overhead of def-map + worklist).
src/passes/dce.rs:173
↓ 1 callersFunctioneliminate_dead_static_functions
Remove internal-linkage (static) functions and globals that are unreachable. Uses reachability analysis from roots (non-static symbols) to find all l
src/passes/dead_statics.rs:18
↓ 1 callersMethodeliminate_dead_stores_before_inline_asm
Remove stores to write-only inline asm output allocas when the inline asm doesn't read from those allocas (input was promoted to constant/immediate).
src/ir/lowering/stmt_asm.rs:316
↓ 1 callersFunctioneliminate_loop_trampolines
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/loop_trampoline.rs:104
↓ 1 callersFunctioneliminate_never_read_stores
(store: &LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/dead_code.rs:252
← previousnext →2,101–2,200 of 6,057, ranked by callers