MCPcopy Create free account

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

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

↓ 1 callersMethodf128_truncate_to_float_acc
(&mut self, to_ty: IrType)
src/backend/arm/codegen/f128.rs:300
↓ 1 callersMethodf128_zero_extend_acc
(&mut self, from_size: usize)
src/backend/arm/codegen/f128.rs:277
↓ 1 callersFunctionf64_to_x87_bytes
Convert an f64 value to x87 80-bit extended precision encoding (10 bytes, little-endian). x87 format: 1 sign bit, 15 exponent bits (bias 16383), 64 ma
src/ir/constants.rs:103
↓ 1 callersMethodfield_init_has_addr_refs
Check if a single field's initializer contains address references.
src/ir/lowering/global_init.rs:1359
↓ 1 callersMethodfill_array_field
Fill a fixed-size array field. Handles string literals, arrays of composites, multi-dimensional arrays, arrays of scalars with designators, and flat i
src/ir/lowering/global_init_bytes.rs:525
↓ 1 callersMethodfill_array_field_recursive
Recursively fill a (possibly multi-dimensional) array from a braced initializer list. Called by fill_multidim_array_field to handle inner dimensions.
src/ir/lowering/global_init_bytes.rs:693
↓ 1 callersMethodfill_fam_field
Fill a flexible array member (FAM) field.
src/ir/lowering/global_init_bytes.rs:754
↓ 1 callersMethodfill_flat_array_of_complex
Fill flat init of an array of complex elements from consecutive items. Each item initializes one complex element. Returns the new item_idx.
src/ir/lowering/global_init_bytes.rs:918
↓ 1 callersMethodfill_multidim_struct_array_bytes
Fill a multi-dimensional array of structs/unions into a byte buffer. Recursively processes brace-enclosed initializer lists to handle arrays with 3+
src/ir/lowering/global_init_bytes.rs:1001
↓ 1 callersMethodfill_multidim_struct_array_with_ptrs
Recursively fill a multi-dimensional struct array into byte buffer + ptr_ranges. Similar to fill_multidim_struct_array_bytes but with pointer relocati
src/ir/lowering/global_init_compound_ptrs.rs:48
↓ 1 callersMethodfill_nested_designator_array
Process a nested designator into an array field (e.g., .field[idx] = val). Returns the array index that was designated.
src/ir/lowering/global_init_bytes.rs:315
↓ 1 callersMethodfill_nested_struct_brace_elided
Brace-elided initialization of a struct/union field from remaining items. When a scalar expression targets a struct/union field without braces, this d
src/ir/lowering/global_init_compound_ptrs.rs:874
↓ 1 callersMethodfill_nested_struct_with_ptrs_count
Like fill_nested_struct_with_ptrs but returns the number of items consumed. Used for brace-elided initialization where we need to know how many items
src/ir/lowering/global_init_compound_ptrs.rs:912
↓ 1 callersMethodfill_struct_array_sequential
Fill a struct array where items map to array elements. Handles both sequential init and `[N] = {...}` designated index patterns. Each item is either a
src/ir/lowering/global_init_compound_ptrs.rs:343
↓ 1 callersFunctionfilter_symbol_attrs
Phase 6: Filter symbol_attrs to only keep directives for referenced symbols. Visibility directives for unreferenced symbols cause assembler/linker err
src/passes/dead_statics.rs:345
↓ 1 callersMethodfinalize
Finalize the layout: account for trailing bitfield and padding.
src/common/types.rs:493
↓ 1 callersFunctionfinalize_deferred_slots
Assign final offsets for deferred block-local values. All deferred values share a pool starting at `non_local_space`; each value's final slot is compu
src/backend/stack_layout/slot_assignment.rs:783
↓ 1 callersMethodfinalize_function
Finalize a function: add implicit return, build IrFunction, push to module.
src/ir/lowering/func_lowering.rs:479
↓ 1 callersFunctionfinalize_operands_and_build_gcc_map
Phase 1f: Resolve memory operands, handle "+" read-write constraints, build GCC operand numbering, and apply segment prefixes.
src/backend/inline_asm.rs:880
↓ 1 callersFunctionfind_constant_return_functions
Analyze all static (internal-linkage) functions in the module and return a map from function name to constant value for those that always return the s
src/passes/ipcp.rs:123
↓ 1 callersFunctionfind_crt_dir
(arch: &DirectLdArchConfig)
src/backend/common.rs:501
↓ 1 callersFunctionfind_dead_call_functions
Find functions whose calls can be eliminated entirely. A function qualifies if: - It is defined (not a declaration) - It is not weak (could be overri
src/passes/ipcp.rs:288
↓ 1 callersFunctionfind_dead_param_allocas
Find param allocas that can safely skip stack slot allocation. A param alloca is dead when BOTH conditions hold: 1. No instruction references the all
src/backend/stack_layout/analysis.rs:108
↓ 1 callersFunctionfind_derived_exprs
Find derived expressions: %mul = %iv * const_stride (or Shl by const) that are used as offsets in GEPs within the loop.
src/passes/iv_strength_reduce.rs:460
↓ 1 callersFunctionfind_function_pointer_core
Find the start index of the function pointer core in a derived declarator list. The function pointer core is one of: - `[Pointer, FunctionPointer]` —
src/common/type_builder.rs:149
↓ 1 callersFunctionfind_fusion_candidates
Find (pred_idx, succ_idx) pairs where the predecessor can absorb the successor.
src/passes/cfg_simplify.rs:799
↓ 1 callersFunctionfind_gcc_lib_dir
(arch: &DirectLdArchConfig)
src/backend/common.rs:485
↓ 1 callersFunctionfind_globally_conflicting_phis
Determine which phi indices are globally conflicting across all predecessor edges.
src/ir/mem2reg/phi_eliminate.rs:375
↓ 1 callersFunctionfind_hi20_value
Find the hi20 value for a pcrel_lo12 relocation in executable linking. RISC-V uses paired AUIPC+LO12 relocations. A pcrel_lo12 references the AUIPC i
src/backend/riscv/linker/relocations.rs:242
↓ 1 callersFunctionfind_hi20_value_shared
Find the hi20 value for a pcrel_lo12 relocation in shared library linking. Simplified variant without GD->LE relaxation (not valid in shared libs) an
src/backend/riscv/linker/relocations.rs:275
↓ 1 callersFunctionfind_promotable_allocas
Find all allocas that can be promoted to SSA registers. Scans all blocks (entry and non-entry) so that inlined locals are also found. A promotable all
src/ir/mem2reg/promote.rs:181
↓ 1 callersFunctionfind_symbol_diff_minus
Find the position of the '-' operator in a symbol difference expression. Skips over parenthesized sub-expressions.
src/backend/arm/assembler/parser.rs:2605
↓ 1 callersFunctionfind_symbol_diff_minus
Find the position of the '-' operator in a symbol difference expression.
src/backend/riscv/assembler/parser.rs:750
↓ 1 callersFunctionfind_versioned_soname
Find a versioned soname for a library (e.g., "c" -> "libc.so.6"). Returns None if only an unversioned .so is found.
src/backend/riscv/linker/relocations.rs:570
↓ 1 callersMethodfixup_alignment_markers
(&mut self, sec_idx: usize)
src/backend/elf_writer_common.rs:1494
↓ 1 callersMethodflat_init_item_is_string_for_char_array
Check if a flat initializer item is a string literal that initializes a char array field.
src/ir/lowering/const_eval_init_size.rs:267
↓ 1 callersMethodflat_scalar_count_for_type
Compute the flat scalar count for a type - how many scalar initializer items are needed to fully initialize one value of this type. Scalar types = 1,
src/frontend/sema/analysis.rs:672
↓ 1 callersMethodflatten_1d_array
Flatten a 1D array with designated initializer support.
src/ir/lowering/global_init.rs:1576
↓ 1 callersMethodflatten_designated_item
Flatten a designated item in a multi-dimensional array.
src/ir/lowering/global_init.rs:1611
↓ 1 callersMethodflatten_global_init_item
Flatten a single initializer item, recursing into nested lists.
src/ir/lowering/global_init.rs:1901
↓ 1 callersMethodflatten_sequential_item
Flatten a sequential (non-designated) item in a multi-dimensional array.
src/ir/lowering/global_init.rs:1677
↓ 1 callersFunctionfold_binop
Evaluate a binary operation on two constant integers. `ty` is needed for width-sensitive unsigned operations (LShr, UDiv, URem) where operands stored
src/passes/constant_fold.rs:684
↓ 1 callersFunctionfold_cast_i128
Fold a cast involving 128-bit types.
src/passes/constant_fold.rs:644
↓ 1 callersFunctionfold_const_cast
Fold a cast of a constant at compile time. Returns the new constant if the cast can be folded, None otherwise. `from_ty` is needed because IrConst::t
src/passes/simplify.rs:386
↓ 1 callersFunctionfold_constant_cond_branches
Fold `CondBranch` with a known-constant condition into an unconditional `Branch`. After constant folding + copy propagation, a CondBranch may have a
src/passes/cfg_simplify.rs:243
↓ 1 callersFunctionfold_constant_switches
Fold `Switch` with a known-constant value into an unconditional `Branch`. After inlining + constant folding + copy propagation, a Switch may have a c
src/passes/cfg_simplify.rs:340
↓ 1 callersFunctionfold_f128_binop
Fold a binary operation on two F128 (long double) constants. On ARM64/RISC-V (where long double is IEEE binary128), uses full 112-bit mantissa f128 s
src/passes/constant_fold.rs:503
↓ 1 callersFunctionfold_f128_cmp
Compare two F128 (long double) constants using x87 80-bit precision.
src/passes/constant_fold.rs:563
↓ 1 callersFunctionfold_f128_neg
Negate an F128 (long double) constant with full precision by flipping the sign bit.
src/passes/constant_fold.rs:544
↓ 1 callersFunctionfold_i128_cast
Convert an i128 constant to the target type.
src/passes/simplify.rs:414
↓ 1 callersFunctionfold_int_cast
Convert a normalized i64 value to the target type.
src/passes/simplify.rs:448
↓ 1 callersFunctionfold_unaryop
Evaluate a unary operation on a constant integer. Width-sensitive operations (CLZ, CTZ, Popcount, Bswap) use `ty` to determine whether to operate on 3
src/passes/constant_fold.rs:744
↓ 1 callersFunctionfor_each_operand_value
(inst: &Instruction, mut f: impl FnMut(u32))
src/passes/licm.rs:181
↓ 1 callersFunctionfor_each_terminator_value
(term: &Terminator, mut f: impl FnMut(u32))
src/passes/licm.rs:254
↓ 1 callersFunctionformat_rbp_offset
Format a stack slot as an assembly memory operand string.
src/backend/x86/codegen/peephole/passes/memory_fold.rs:21
↓ 1 callersFunctionfunc_has_static_locals_with_label_refs
Check if a function has static local variables whose initializers reference local labels (from `&&label`). Such functions cannot be safely inlined bec
src/passes/inline.rs:962
↓ 1 callersMethodfunction_type_directive
(&self)
src/backend/arm/codegen/emit.rs:1822
↓ 1 callersFunctionfuse_branch_over_branch
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:689
↓ 1 callersFunctionfuse_compare_and_branch
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/compare_branch.rs:14
↓ 1 callersFunctionfuse_compare_and_branch
Fuse `cmpl/testl + setCC %al + movzbl %al, %eax + [store/load] + testl %eax, %eax + jne/je` into a single `jCC`/`j!CC` directly. This enhanced versio
src/backend/i686/codegen/peephole.rs:1210
↓ 1 callersMethodgenerate_assembly_with_opts_and_debug
Generate assembly with full codegen options and optional source manager for debug info. When `source_mgr` is provided and `opts.debug_info` is true, t
src/backend/mod.rs:294
↓ 1 callersFunctiongenerate_copy
Generate a Copy instruction, handling coalesced slots, i128, and wide values.
src/backend/generation.rs:1226
↓ 1 callersFunctiongenerate_function
Generate code for a single function.
src/backend/generation.rs:801
↓ 1 callersFunctiongenerate_instruction
Dispatch a single IR instruction to the appropriate arch method. Register cache management strategy: The cache tracks which IR value is currently in
src/backend/generation.rs:1044
↓ 1 callersFunctiongenerate_load
Generate a Load instruction with segment override, kernel code model, and GEP folding support.
src/backend/generation.rs:1273
↓ 1 callersFunctiongenerate_module
(cg: &mut dyn ArchCodegen, module: &IrModule, source_mgr: Option<&crate::common::source::SourceManager>)
src/backend/generation.rs:498
↓ 1 callersFunctiongenerate_store
Generate a Store instruction with segment override, kernel code model, and GEP folding support.
src/backend/generation.rs:1319
↓ 1 callersFunctiongenerate_terminator
Dispatch a terminator to the appropriate arch method.
src/backend/generation.rs:1356
↓ 1 callersMethodget_array_base_addr
Get the base address for an array expression. For declared arrays, this is the alloca itself. For pointers, this is the loaded pointer value. For nest
src/ir/lowering/lvalue.rs:276
↓ 1 callersMethodget_array_elem_size
Get the element size for array subscript (legacy, for 1D arrays).
src/ir/lowering/lvalue.rs:515
↓ 1 callersMethodget_array_elem_size_for_subscript
Get the element size for an array subscript, accounting for multi-dimensional arrays. For a[i] where a is int[2][3], returns 12 (3*4 = stride of first
src/ir/lowering/lvalue.rs:418
↓ 1 callersMethodget_array_root_name_from_subscript
Helper to get array root name from subscript base/index without needing the full ArraySubscript expression node.
src/ir/lowering/expr_types.rs:535
↓ 1 callersMethodget_binop_ctype
Get the CType of a binary operation expression.
src/ir/lowering/expr_types.rs:855
↓ 1 callersMethodget_binop_type
Get the IR type for a binary operation expression.
src/ir/lowering/expr_types.rs:378
↓ 1 callersMethodget_call_return_type
Get the IR type for a function call's return value. Strips Deref layers since dereferencing function pointers is a no-op in C.
src/ir/lowering/expr_types.rs:546
↓ 1 callersMethodget_content
(&self, file_id: u32)
src/common/source.rs:129
↓ 1 callersMethodget_func_ptr_return_ctype
Extract the return CType from a function pointer expression. Used to detect complex return types for indirect calls.
src/ir/lowering/expr_calls.rs:957
↓ 1 callersMethodget_func_ptr_return_ir_type
Determine the return type of a function pointer expression for indirect calls. Strips Deref layers since dereferencing a function pointer is a no-op i
src/ir/lowering/expr_calls.rs:985
↓ 1 callersMethodget_function_type
Extract the FunctionType from a function pointer or function type. Handles up to two levels of pointer indirection (e.g., Pointer(Pointer(Function)))
src/common/types.rs:1657
↓ 1 callersMethodget_include_chain
Get the include chain for a file, from innermost to outermost. For a file included as: main.c -> header1.h -> header2.h, calling this with "header2.h
src/common/source.rs:468
↓ 1 callersMethodget_jump_target_label
(&self, instr: &Instruction)
src/backend/elf_writer_common.rs:833
↓ 1 callersMethodget_local_alloca
Get the alloca for a local variable by name, if it exists. Returns None for global variables (including global register variables) and for unknown var
src/ir/lowering/stmt_asm.rs:614
↓ 1 callersMethodget_macro_expansion_at
Look up macro expansion info for a given span. Returns the list of macro names if the span falls on a line that had macro expansion, or None if the sp
src/common/source.rs:510
↓ 1 callersMethodget_member_array_elem_size
Get the element size for a struct/union member that is an array or pointer. For s.field where field is `char[8]`, returns 1 (sizeof(char)). For s.arr
src/ir/lowering/lvalue.rs:488
↓ 1 callersFunctionget_neg_def
Look up a NegDef for a Value operand. Returns the source operand of the negation if the operand is defined by UnaryOp::Neg.
src/passes/simplify.rs:1144
↓ 1 callersMethodget_pointee_ir_type
Get the IR type of the pointee for a pointer expression.
src/ir/lowering/expr_atomics.rs:358
↓ 1 callersMethodget_source_line
Get the source line text for a given span (for error snippet display). Returns the full line containing the span start position. Assumes files[0] cont
src/common/source.rs:426
↓ 1 callersMethodget_stmt_expr_ctype
Resolve the type of a statement expression's compound body. Optionally accepts a parent scope from an enclosing statement expression, enabling resolu
src/ir/lowering/expr_types.rs:1333
↓ 1 callersMethodget_struct_layout_for_pointer_param
For a pointer-to-struct parameter type (e.g., `struct TAG *p`), get the pointed-to struct's layout. This enables `p->field` access. Also handles array
src/ir/lowering/pointer_analysis.rs:22
↓ 1 callersMethodget_struct_layout_for_pointer_type
Get struct layout from a type specifier that should be a pointer to struct
src/ir/lowering/structs.rs:838
↓ 1 callersMethodget_struct_layout_of_expr
Get the struct layout for the type of an expression (for member access resolution).
src/ir/lowering/const_eval_global_addr.rs:617
↓ 1 callersMethodget_subscript_type
Get the IR type for an array subscript expression.
src/ir/lowering/expr_types.rs:467
↓ 1 callersFunctionget_successor_labels
Get successor labels from a terminator.
src/ir/mem2reg/promote.rs:723
↓ 1 callersMethodget_vla_sizeof
(&self, arg: &SizeofArg)
src/ir/lowering/expr_access.rs:417
↓ 1 callersMethodget_vla_stride_for_subscript
Get the VLA runtime stride value for a subscript expression, if available. For `m[i]` where m has VLA strides, returns the runtime stride at depth 0.
src/ir/lowering/lvalue.rs:260
↓ 1 callersFunctionglobal_dead_store_elimination
(lines: &[String], kinds: &mut [LineKind], n: usize)
src/backend/arm/codegen/peephole.rs:848
↓ 1 callersFunctionglobal_dead_store_elimination
(lines: &[String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:939
↓ 1 callersFunctionglobal_init_contains_local_label
Check if a GlobalInit contains references to local labels (`.LBBxx`). These are produced by `&&label` (label-as-value) in static local initializers.
src/passes/inline.rs:947
↓ 1 callersFunctionglobal_store_forwarding
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:318
↓ 1 callersFunctionglobal_store_forwarding
(lines: &mut [String], kinds: &mut [LineKind], n: usize)
src/backend/riscv/codegen/peephole.rs:597
← previousnext →2,801–2,900 of 6,057, ranked by callers