MCPcopy Create free account

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

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

↓ 1 callersFunctionapply_sub_uleb128
Decode a ULEB128 value from data, subtract, and re-encode.
src/backend/riscv/linker/reloc.rs:503
↓ 1 callersFunctionapply_thread_redirections
Apply collected thread redirections: update terminators and phi nodes.
src/passes/cfg_simplify.rs:523
↓ 1 callersFunctionarm_alu_mnemonic
Map IrBinOp to AArch64 mnemonic for simple ALU ops.
src/backend/arm/codegen/emit.rs:88
↓ 1 callersFunctionarm_invert_cond_code
Return the inverted AArch64 condition code suffix.
src/backend/arm/codegen/emit.rs:117
↓ 1 callersMethodarray_needs_compound_init
Check if an array initializer needs compound (relocation-aware) representation. This is needed when elements contain address expressions, string liter
src/ir/lowering/global_init.rs:612
↓ 1 callersMethodas_bytes
(&self)
src/backend/linker_common/dynstr.rs:36
↓ 1 callersFunctionas_i64_promoted_mapped
Extract a constant integer with proper extension for sub-int types (I8/I16), resolving through the const map. For sub-int constants, we need to deter
src/passes/constant_fold.rs:414
↓ 1 callersMethodasm_state
(&mut self)
src/backend/arm/codegen/asm_emitter.rs:44
↓ 1 callersMethodassemble_source_file_builtin
Only called in standalone (non-gcc) assembler mode
src/driver/external_tools.rs:215
↓ 1 callersMethodassemble_source_file_gcc
(&self, input_file: &str, output_path: &str, custom_command: Option<&str>)
src/driver/external_tools.rs:136
↓ 1 callersFunctionassemble_with_args
Assemble RISC-V assembly text into an ELF object file, with extra args. Supports `-mabi=` to control ELF float ABI flags and ELF class (32/64-bit), a
src/backend/riscv/assembler/mod.rs:26
↓ 1 callersFunctionassemble_with_extra
(config: &AssemblerConfig, asm_text: &str, output_path: &str, extra_dynamic_args: &[String])
src/backend/common.rs:84
↓ 1 callersMethodassign_fresh_vn
Assign a fresh value number to `dest` and record it in the rollback log.
src/passes/gvn.rs:143
↓ 1 callersMethodassign_gen_union_out_minus_kill
Computes: self = gen ∪ (out - kill) in one pass. Returns true if self changed.
src/backend/liveness.rs:96
↓ 1 callersFunctionassign_program_points
Phase 1: Assign sequential program points to all instructions/terminators and build per-block gen/kill bitsets, def/use point arrays, call points, and
src/backend/liveness.rs:270
↓ 1 callersFunctionassign_scratch_registers
Phase 1d: Assign scratch registers to operands that need them, with memory fallback when registers are exhausted.
src/backend/inline_asm.rs:694
↓ 1 callersFunctionassign_symbol_addresses
( global_symbols: &mut HashMap<String, LinkerSymbol>, output_sections: &[OutputSection], got_base:
src/backend/i686/linker/emit.rs:1109
↓ 1 callersFunctionassign_tier2_liveness_packed_slots
Assign stack slots for multi-block values using liveness-based packing. Uses a greedy interval coloring algorithm: sort by start point, greedily assi
src/backend/stack_layout/slot_assignment.rs:672
↓ 1 callersFunctionassign_tier3_block_local_slots
Assign stack slots for block-local values using intra-block greedy reuse. Within a single block, values have short lifetimes. By tracking when each v
src/backend/stack_layout/slot_assignment.rs:483
↓ 1 callersMethodbit_at
Check if bit at position `pos` (0-indexed from LSB) is set.
src/common/long_double.rs:151
↓ 1 callersMethodborrow_struct_layouts_mut
Borrow the struct layouts map mutably. Returns a `RefMut` guard that derefs to `FxHashMap<String, RcLayout>`.
src/frontend/sema/type_context.rs:337
↓ 1 callersFunctionbuild_address_taken
Phase 3: Build address_taken bitvector from GlobalAddr and InlineAsm instructions.
src/passes/dead_statics.rs:271
↓ 1 callersFunctionbuild_and_emit_dwarf_file_table
Build the DWARF file table and emit .file directives when debug info is enabled. Scans all spans in the module, resolves filenames via SourceManager,
src/backend/generation.rs:588
↓ 1 callersFunctionbuild_callee_map
Build a map of function name -> callee data for functions eligible for inlining.
src/passes/inline.rs:974
↓ 1 callersFunctionbuild_copy_alias_map
Build the copy alias map: dest_id -> root_id for Copy instructions where dest and src can share the same stack slot. Safety: only coalesces when the
src/backend/stack_layout/copy_coalescing.rs:29
↓ 1 callersFunctionbuild_copy_map
Build a flat lookup table from Copy destinations to their ultimate sources. Follows chains: if %a = Copy %b and %b = Copy %c, resolves %a -> %c. Retur
src/passes/copy_prop.rs:67
↓ 1 callersFunctionbuild_dense_value_map
Collect all non-alloca value IDs and build a dense remapping: sparse value_id -> dense index in [0..num_values).
src/backend/liveness.rs:227
↓ 1 callersFunctionbuild_edge_copies
Build the ordered copy instructions for a single predecessor edge: Pass 1 (temp saves for conflicting phis), then Pass 2 (direct copies).
src/ir/mem2reg/phi_eliminate.rs:401
↓ 1 callersFunctionbuild_foldable_global_addr_set
Build a set of GlobalAddr value IDs that are "dead" after the fold optimization. A GlobalAddr is dead when ALL of its uses are as `ptr` in Load/Store
src/backend/generation.rs:199
↓ 1 callersFunctionbuild_func_refs
Phase 2a: Build per-function reference lists using symbol IDs.
src/passes/dead_statics.rs:98
↓ 1 callersFunctionbuild_gep_fold_map
Build a map of GEP destinations that can be folded into Load/Store instructions. A GEP is foldable when: 1. Its offset is a compile-time constant (Op
src/backend/generation.rs:52
↓ 1 callersFunctionbuild_global_addr_map
Build a map from Value IDs to global symbol names (with optional offsets). Maps values produced by `GlobalAddr { name }` to `"name"`, and values produ
src/backend/generation.rs:161
↓ 1 callersFunctionbuild_global_addr_ptr_set
Build a set of GlobalAddr value IDs that are used as Load/Store pointers. In kernel code model, GlobalAddr values used only as integer values (e.g., `
src/backend/generation.rs:279
↓ 1 callersFunctionbuild_global_refs
Phase 2b: Build per-global reference lists from initializers.
src/passes/dead_statics.rs:117
↓ 1 callersFunctionbuild_global_value_map
Build a map from Value -> (block_index, instruction_index) for the entire function.
src/passes/cfg_simplify.rs:932
↓ 1 callersFunctionbuild_gnu_hash
Build a proper `.gnu.hash` section for the given dynamic symbol names. Returns `(hash_data, sorted_order)` where `sorted_order[i]` is the original in
src/backend/riscv/linker/relocations.rs:474
↓ 1 callersFunctionbuild_intervals
Phase 5: Build sorted live intervals from def/use point arrays.
src/backend/liveness.rs:572
↓ 1 callersMethodbuild_ir_params
Build the IR parameter list for a function, handling ABI decomposition.
src/ir/lowering/func_lowering.rs:148
↓ 1 callersFunctionbuild_layout_context
Build all the analysis data needed by the three-tier slot allocator. This includes use-block maps, definition tracking, copy coalescing analysis, dead
src/backend/stack_layout/mod.rs:191
↓ 1 callersMethodbuild_line_map
Build a line map from GCC-style line markers in preprocessed output. Scans the stored file content (files[0]) for lines matching `# <number> "<filena
src/common/source.rs:151
↓ 1 callersMethodbuild_linker_args
Build linker args from collected flags, preserving command-line ordering. Order-independent flags (-shared, -static, -nostdlib, -L paths) go first. T
src/driver/external_tools.rs:310
↓ 1 callersFunctionbuild_plt_got_lists
( global_symbols: &mut HashMap<String, LinkerSymbol>, )
src/backend/i686/linker/symbols.rs:299
↓ 1 callersFunctionbuild_plt_stubs
Build PLT header and per-symbol stubs for RISC-V.
src/backend/riscv/linker/emit_exec.rs:1106
↓ 1 callersMethodbuild_return_type
Build the return type from derived declarators. For `int (*func())[3]`, we apply post-Function and pre-Function derivations.
src/frontend/parser/declarations.rs:296
↓ 1 callersFunctionbuild_successor_lists
Phase 2: Build successor lists from block terminators and asm goto labels.
src/backend/liveness.rs:425
↓ 1 callersFunctionbuild_symbol_index
Phase 1: Assign compact integer IDs to all function and global names. Returns (name_to_id, next_id, id_func_idx, id_global_idx, func_id, global_id).
src/passes/dead_statics.rs:49
↓ 1 callersFunctionbuild_value_to_base_alloca
Build a mapping from GEP/Copy result values to their ultimate base alloca. Follows chains like `gep(gep(alloca, off1), off2)` → alloca.
src/passes/licm.rs:348
↓ 1 callersMethodbyte_size
Returns the byte size of this initializer element in a compound context. Used when flattening nested Compound elements into a parent Compound.
src/ir/module.rs:125
↓ 1 callersMethodcallee_pops_bytes_for_sret
Returns the number of bytes the callee pops from the stack on return. On i386 SysV, functions returning via sret do `ret $4` to pop the hidden pointer
src/backend/traits.rs:589
↓ 1 callersMethodcallee_pops_bytes_for_sret
(&self, is_sret: bool)
src/backend/i686/codegen/emit.rs:1460
↓ 1 callersFunctioncan_redirect_instruction
Check if an instruction can have its destination register replaced safely.
src/backend/x86/codegen/peephole/types.rs:909
↓ 1 callersMethodcan_trap
Returns true if this operation can trap at runtime (e.g., divide by zero causes SIGFPE). Such operations must not be speculatively executed by if-conv
src/ir/ops.rs:63
↓ 1 callersFunctioncanonical_order
Canonicalize operand order for commutative operations. Ensures (a + b) and (b + a) hash to the same key.
src/passes/gvn.rs:665
↓ 1 callersMethodcast_bits_to_ir_const
Convert raw bits to an IrConst of the given target type, truncating as needed.
src/ir/lowering/const_eval.rs:297
↓ 1 callersMethodcast_float_to_ctype
Cast a float value to a target CType.
src/frontend/sema/const_eval.rs:592
↓ 1 callersMethodcast_i128_to_ctype
Cast a full 128-bit integer value to a target CType. This handles casts from __int128/unsigned __int128 without going through the u64-based eval_cons
src/frontend/sema/const_eval.rs:690
↓ 1 callersMethodcast_long_double_to_ctype
Cast a long double value (with f128 bytes) to a target CType. Uses full precision for integer conversions.
src/frontend/sema/const_eval.rs:570
↓ 1 callersMethodcheck_pointer_subtraction_compat
Check that pointer subtraction operands have compatible pointee types. C11 6.5.6p3: both operands must point to compatible types. Emits an error if bo
src/frontend/sema/analysis.rs:1632
↓ 1 callersMethodcheck_sizeof_incomplete_type
Check if a sizeof type argument refers to an incomplete struct/union. Reports an error like GCC: "invalid application of 'sizeof' to incomplete type"
src/frontend/sema/analysis.rs:1738
↓ 1 callersFunctioncheck_undefined_symbols
(global_symbols: &HashMap<String, LinkerSymbol>)
src/backend/i686/linker/symbols.rs:281
↓ 1 callersFunctioncheck_undefined_symbols_elf64
Check for undefined symbols in the global symbol table and return an error if any truly undefined symbols are found. Filters out dynamic symbols, wea
src/backend/linker_common/check.rs:17
↓ 1 callersFunctionclassify_all_operands
Phase 1a: Classify all output and input operands, returning the operand vector and the input-tied-to mapping.
src/backend/inline_asm.rs:476
↓ 1 callersFunctionclassify_alloca
Classify a single Alloca instruction into Tier 1 (permanent) or Tier 3 (block-local).
src/backend/stack_layout/slot_assignment.rs:296
↓ 1 callersFunctionclassify_arith_ext
(s: &str, _sb: &[u8], first: u8)
src/backend/x86/codegen/peephole/types.rs:487
↓ 1 callersFunctionclassify_f128_cast_native
Classify F128 casts on targets where F128 is true IEEE binary128 (ARM/RISC-V). These require softfloat library calls for full precision.
src/backend/cast.rs:158
↓ 1 callersFunctionclassify_instructions
Walk all instructions and classify each into Tier 1 (permanent alloca slots), Tier 2 (multi-block, liveness-packed), or Tier 3 (block-local, greedy re
src/backend/stack_layout/slot_assignment.rs:64
↓ 1 callersFunctionclassify_mov_ext
(s: &str, sb: &[u8])
src/backend/x86/codegen/peephole/types.rs:414
↓ 1 callersFunctionclassify_rv_constraint
Classify a RISC-V inline asm constraint string into its kind. TODO: Support multi-alternative constraint parsing (e.g., "rm", "Ir") like x86. Currentl
src/backend/riscv/codegen/inline_asm.rs:26
↓ 1 callersFunctionclassify_sysv_struct
Classify a small struct (<=16 bytes) using SysV AMD64 per-eightbyte rules. Given the eightbyte classes and current register allocation state, determi
src/backend/call_abi.rs:282
↓ 1 callersMethodclear_werror
Demote a specific warning from error (-Wno-error=<name>).
src/common/error.rs:229
↓ 1 callersFunctionclobbers_memory
Check if an instruction may modify memory, invalidating cached load values. This is conservative: any instruction that could write to memory or call e
src/passes/gvn.rs:461
↓ 1 callersFunctioncmp_shifted
Compare remainder >= divisor_limbs << shift
src/common/long_double.rs:271
↓ 1 callersFunctioncoalescable_group
Determine if a non-alloca value can be assigned to a block-local pool slot (Tier 3). Returns `Some(def_block_idx)` if the value is defined and used on
src/backend/stack_layout/slot_assignment.rs:30
↓ 1 callersMethodcoerce_scalar_const
Coerce a scalar constant to the target type, handling bool normalization and long double promotion.
src/ir/lowering/global_init.rs:247
↓ 1 callersFunctioncollect_alloca_set
Collect alloca values (not register-allocatable).
src/backend/liveness.rs:213
↓ 1 callersFunctioncollect_block_phis
Collect PhiInfo from all blocks.
src/ir/mem2reg/phi_eliminate.rs:289
↓ 1 callersMethodcollect_enum_constants
Collect enum constants from a type specifier (file-scope, direct insertion).
src/ir/lowering/lower.rs:1235
↓ 1 callersFunctioncollect_excluded_registers
Phase 1c: Collect registers excluded from scratch allocation (specific-register constraints and clobber registers).
src/backend/inline_asm.rs:631
↓ 1 callersFunctioncollect_gd_tls_relax_info
Collect GD TLS relaxation info for static binaries. Pre-scans relocations to find R_RISCV_TLS_GD_HI20 entries and their associated __tls_get_addr CAL
src/backend/riscv/linker/reloc.rs:539
↓ 1 callersFunctioncollect_global_init_refs_set
Collect symbol references from a global initializer into a HashSet of borrowed strings. This requires an explicit lifetime annotation since the borro
src/passes/dead_statics.rs:419
↓ 1 callersFunctioncollect_global_refs
(init: &GlobalInit, refs: &mut FxHashSet<String>)
src/backend/generation.rs:658
↓ 1 callersFunctioncollect_got_symbols
Scan all relocations to find symbols that need GOT entries. This includes both regular GOT references and TLS IE references (which use GOT entries con
src/backend/arm/linker/reloc.rs:110
↓ 1 callersFunctioncollect_ifunc_symbols
(globals: &HashMap<String, GlobalSymbol>, is_static: bool)
src/backend/x86/linker/plt_got.rs:11
↓ 1 callersFunctioncollect_ifunc_symbols
( global_symbols: &HashMap<String, LinkerSymbol>, is_static: bool, )
src/backend/i686/linker/symbols.rs:345
↓ 1 callersFunctioncollect_initial_symbols
Scan input objects to build initial defined/undefined symbol sets.
src/backend/riscv/linker/input.rs:40
↓ 1 callersFunctioncollect_inline_asm_callee_saved
Scan inline-asm instructions for callee-saved register usage. Iterates over all inline-asm instructions in `func`, checking output/input constraints
src/backend/stack_layout/inline_asm.rs:33
↓ 1 callersFunctioncollect_inline_asm_callee_saved_riscv
Scan inline asm instructions in a function and collect any callee-saved registers that are used via specific constraints or listed in clobbers.
src/backend/riscv/codegen/emit.rs:53
↓ 1 callersFunctioncollect_inline_asm_callee_saved_with_generic
Like `collect_inline_asm_callee_saved`, but with an additional `all_callee_saved` list. When a constraint is a generic GP register class (like "r", "q
src/backend/stack_layout/inline_asm.rs:113
↓ 1 callersFunctioncollect_inline_asm_callee_saved_with_overflow
Like `collect_inline_asm_callee_saved`, but triggers conservative marking of all callee-saved registers when any single inline asm has more generic GP
src/backend/stack_layout/inline_asm.rs:47
↓ 1 callersFunctioncollect_inline_asm_callee_saved_x86
Scan inline asm instructions in a function and collect any callee-saved registers that are used via specific constraints or listed in clobbers. These
src/backend/x86/codegen/emit.rs:95
↓ 1 callersFunctioncollect_input_files
( object_files: &[&str], extra_objects: &[String], crt_before: &[&str], crt_after: &[&str],
src/backend/i686/linker/input.rs:77
↓ 1 callersFunctioncollect_instruction_gen_dense
Collect gen set for a block's instruction (dense bitset version).
src/backend/liveness.rs:867
↓ 1 callersFunctioncollect_instruction_symbol_refs
Extract symbol references from a single instruction into the ID list. Shared by the reference-collection phase to avoid repeating the same `match ins
src/passes/dead_statics.rs:391
↓ 1 callersFunctioncollect_jump_targets
(store: &LineStore, infos: &[LineInfo], len: usize)
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:174
↓ 1 callersFunctioncollect_macro_body
Collect a macro body from lines[i..], tracking nested .macro/.endm depth. Returns the body lines and the index after the closing .endm.
src/backend/arm/assembler/parser.rs:653
↓ 1 callersFunctioncollect_non_gpr_values
Collect values whose types don't fit in a single GPR (floats, i128, and on 32-bit targets: i64/u64). Copy instructions that chain from these values mu
src/backend/regalloc.rs:329
↓ 1 callersFunctioncollect_non_nop_indices
( infos: &[LineInfo], start: usize, limit: usize, out: &mut [usize; N], )
src/backend/x86/codegen/peephole/types.rs:701
↓ 1 callersMethodcollect_referenced_static_functions
Collect all function names that are transitively referenced from root (non-skippable) function bodies and global initializers. Algorithm: 1. Collect
src/ir/lowering/ref_collection.rs:53
↓ 1 callersFunctioncollect_referenced_symbols
Collect the set of symbols actually referenced in this translation unit. We only emit .weak/.hidden directives for referenced symbols, matching GCC be
src/backend/generation.rs:629
↓ 1 callersMethodcollect_refs_from_stmt
Collect function name references from a statement.
src/ir/lowering/ref_collection.rs:143
← previousnext →2,001–2,100 of 6,057, ranked by callers