MCPcopy Create free account

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

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

↓ 3 callersFunctionparse_data_values
Parse comma-separated data values that may be integers, symbols, or symbol expressions.
src/backend/arm/assembler/parser.rs:2394
↓ 3 callersMethodparse_declarator
(&mut self)
src/frontend/parser/declarators.rs:36
↓ 3 callersFunctionparse_displacement
Parse a displacement: integer, symbol, symbol+offset, or symbol@modifier.
src/backend/x86/assembler/parser.rs:1206
↓ 3 callersFunctionparse_elf32
Parse an ELF32 relocatable object file.
src/backend/i686/linker/parse.rs:12
↓ 3 callersMethodparse_expr_add
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:1030
↓ 3 callersMethodparse_expr_mul
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:1042
↓ 3 callersFunctionparse_jmp_target
Extract the jump target from a jmp instruction.
src/backend/i686/codegen/peephole.rs:578
↓ 3 callersFunctionparse_label_number
(label_with_colon: &str)
src/backend/x86/codegen/peephole/passes/helpers.rs:177
↓ 3 callersMethodparse_local_declaration
(&mut self)
src/frontend/parser/declarations.rs:647
↓ 3 callersMethodparse_macro_args
Parse function-like macro arguments from bytes starting at the opening paren. Returns (args, position after closing paren). Optimized to track byte s
src/frontend/preprocessor/macro_defs.rs:656
↓ 3 callersFunctionparse_modifier
(s: &str)
src/backend/arm/assembler/parser.rs:2215
↓ 3 callersMethodparse_multiplicative
(&mut self)
src/frontend/preprocessor/conditionals.rs:682
↓ 3 callersFunctionparse_rbp_offset
Pre-parse an `Other` line for a %rbp offset reference. Looks for patterns like `N(%rbp)` and returns the offset N. Returns `RBP_OFFSET_NONE` if no rbp
src/backend/x86/codegen/peephole/types.rs:804
↓ 3 callersMethodparse_relational
(&mut self)
src/frontend/preprocessor/conditionals.rs:580
↓ 3 callersFunctionparse_single_operand
(s: &str)
src/backend/arm/assembler/parser.rs:1829
↓ 3 callersFunctionparse_soname
(data: &[u8])
src/backend/x86/linker/elf.rs:82
↓ 3 callersMethodparse_static_assert
Parse and evaluate `_Static_assert(constant-expr, "message")` or the C23 single-argument form `_Static_assert(constant-expr)`. If the constant expres
src/frontend/parser/declarations.rs:1216
↓ 3 callersFunctionparse_thin_archive_members
Parse a GNU thin archive (.a file with `!<thin>\n` magic), returning member filenames (relative to the archive directory). In thin archives, member da
src/backend/elf/archive.rs:16
↓ 3 callersMethodparse_va_arg_type
Parse a type-name for __builtin_va_arg: type-specifier + abstract declarator.
src/frontend/parser/types.rs:840
↓ 3 callersMethodparsing_inline
(&self)
src/frontend/parser/parse.rs:154
↓ 3 callersMethodparsing_naked
(&self)
src/frontend/parser/parse.rs:168
↓ 3 callersMethodparsing_transparent_union
(&self)
src/frontend/parser/parse.rs:166
↓ 3 callersFunctionpatch_u_type
Patch a U-type instruction (LUI/AUIPC) with a 20-bit immediate.
src/backend/riscv/linker/relocations.rs:65
↓ 3 callersMethodpreprocess_included
Process source code from an included file. Same pipeline as preprocess() but saves/restores the conditional stack and skips pending_injections.
src/frontend/preprocessor/pipeline.rs:188
↓ 3 callersFunctionprocess_block
Process a single basic block for GVN. Returns the number of instructions eliminated. Load CSE entries are stored separately in `state.load_expr_to_va
src/passes/gvn.rs:505
↓ 3 callersMethodprocess_section_directive
Process a .section directive with parsed fields. `sec_name`: section name, `flags_str`: flag characters ("awx" etc.), `flags_explicit`: whether flags
src/backend/elf/writer_base.rs:179
↓ 3 callersMethodpush_const_as_bytes
Push a constant value as individual bytes into a compound init element list.
src/ir/lowering/global_init_bytes.rs:1231
↓ 3 callersMethodpush_if
Push a new #if/#ifdef/#ifndef.
src/frontend/preprocessor/conditionals.rs:43
↓ 3 callersFunctionranges_overlap
(a_off: i32, a_size: i32, b_off: i32, b_size: i32)
src/backend/i686/codegen/peephole.rs:93
↓ 3 callersFunctionread_dynsyms_with_search
Read dynamic symbol info, with library search paths for resolving linker script entries.
src/backend/i686/linker/dynsym.rs:14
↓ 3 callersMethodread_global_register
Emit an inline asm to read a global register variable (e.g., `register long x asm("rsp")`). Creates a temporary alloca, uses the inline asm output con
src/ir/lowering/expr.rs:228
↓ 3 callersFunctionread_shared_lib_symbols
Read dynamic symbols from a shared library file path. Convenience wrapper that reads the file and delegates to `parse_shared_library_symbols`.
src/backend/riscv/linker/elf_read.rs:86
↓ 3 callersFunctionreg32_name
Get the 32-bit register name for a family ID.
src/backend/i686/codegen/peephole.rs:140
↓ 3 callersFunctionreg_name
(id: u8)
src/backend/riscv/codegen/peephole.rs:134
↓ 3 callersMethodregister_function_meta
Register function metadata (return type, param types, variadic, sret) for a function name. This shared helper eliminates the triplicated pattern in `l
src/ir/lowering/lower.rs:761
↓ 3 callersFunctionregister_obj_symbols
Register an object's symbols in the defined/undefined sets.
src/backend/riscv/linker/input.rs:323
↓ 3 callersMethodresolve_bitfield_lvalue
Resolve a bitfield member access expression, returning the field's address and bitfield metadata. Returns None if the expression is not a bitfield acc
src/ir/lowering/expr_assign.rs:115
↓ 3 callersFunctionresolve_dynamic_symbols_elf64
Resolve remaining undefined symbols by searching default system libraries. After all explicit -l libraries have been loaded, this function searches t
src/backend/linker_common/dynamic.rs:151
↓ 3 callersMethodresolve_expr_labels
Resolve label names in an expression to their numeric offsets. This handles `.Ldot_N` synthetic labels (current position) and any section-local labels
src/backend/elf/writer_base.rs:463
↓ 3 callersMethodresolve_generic_selection
Resolve a _Generic selection to the matching association expression. Used by both lower_generic_selection (rvalue) and lower_lvalue (lvalue context).
src/ir/lowering/expr_access.rs:493
↓ 3 callersMethodresolve_include_path
Resolve an include path to an actual file path. For "file.h": search current dir, then -I paths, then system paths. For <file.h>: search -I paths, the
src/frontend/preprocessor/includes.rs:623
↓ 3 callersMethodresolve_local_label
Resolve a label name through the local label scope stack. Returns a scope-qualified name if the label is declared via __label__, or the original name
src/ir/lowering/lower.rs:1286
↓ 3 callersFunctionresolve_numeric_data_values
Resolve numeric label references in data values.
src/backend/arm/assembler/mod.rs:347
↓ 3 callersFunctionresolve_operand_globally
Resolve an operand to an i64 constant using global cross-block resolution.
src/passes/cfg_simplify.rs:1016
↓ 3 callersFunctionresolve_operand_to_i64_in_block
Resolve an operand to an i64 constant within a single block.
src/passes/cfg_simplify.rs:1074
↓ 3 callersFunctionresolve_sym
Resolve a symbol's final address given the global symbol table and section map. Linker-defined symbols (__bss_start, _edata, _end, __end, etc.) are r
src/backend/arm/linker/reloc.rs:61
↓ 3 callersFunctionrewrite_symbol_name
Rewrite a symbol name that may be a numeric label ref or `.` (current position). If it's `.`, a synthetic label is generated and `needs_dot_label` is
src/backend/riscv/assembler/elf_writer.rs:235
↓ 3 callersMethodscalar_to_complex
Create a complex value from a scalar given its IR type (real part = scalar, imag = 0). This is preferred over real_to_complex when the CType may be in
src/ir/lowering/complex.rs:377
↓ 3 callersMethodset_alias
Record a .set/.equ alias.
src/backend/elf/writer_base.rs:423
↓ 3 callersMethodshadow_local_for_scope
Remove a local variable, tracking the removal in the current scope frame.
src/ir/lowering/lower.rs:425
↓ 3 callersFunctionshift_mnemonic
Map a shift op to its x86 32-bit and 64-bit mnemonic.
src/backend/x86/codegen/emit.rs:149
↓ 3 callersMethodsib
Encode SIB byte.
src/backend/x86/assembler/encoder/core.rs:22
↓ 3 callersMethodskip_array_dimensions
(&mut self)
src/frontend/parser/parse.rs:608
↓ 3 callersMethodskip_asm_and_attributes
Skip __asm__("..."), __attribute__(...), and __extension__ after declarators. Returns (mode_kind, aligned_value, asm_register).
src/frontend/parser/parse.rs:898
↓ 3 callersFunctionsplit_macro_args
Split macro invocation arguments, separating on commas (preferred) or whitespace. If the argument string contains commas, only commas are used as sepa
src/backend/arm/assembler/parser.rs:453
↓ 3 callersMethodstore_t0_t1_to
Store t0 (low) : t1 (high) to a 128-bit value's stack slot.
src/backend/riscv/codegen/emit.rs:425
↓ 3 callersMethodstore_through_ptr
Store a value through a pointer operand.
src/ir/lowering/expr_atomics.rs:352
↓ 3 callersFunctionstrip_c_comments
Strip C-style `/* ... */` comments from assembly text, handling multi-line spans. Preserves newlines inside comments so line numbers remain correct fo
src/backend/asm_preprocess.rs:37
↓ 3 callersFunctionstrip_sym_parens
Strip parentheses from a symbol name: "(9997f)" => "9997f", "(__label)" => "__label"
src/backend/arm/assembler/parser.rs:2470
↓ 3 callersFunctionstrip_sync_size_suffix
Strip size suffix (_1, _2, _4, _8, _16) from GCC __sync_* builtin names. E.g., "__sync_fetch_and_add_8" -> "__sync_fetch_and_add". Returns the name un
src/frontend/sema/builtins.rs:715
↓ 3 callersMethodstruct_field_ctype
Get the CType for a struct field declaration, accounting for derived declarators. For simple fields (derived is empty), just converts type_spec. For c
src/ir/lowering/types_ctype.rs:374
↓ 3 callersMethodstruct_union_layout
Get the struct/union layout for a resolved TypeSpecifier. Handles both inline field definitions and tag-only forward references. Returns an Rc<StructL
src/ir/lowering/types.rs:289
↓ 3 callersFunctionsubstitute_x86_asm_operands
Substitute `%0`, `%1`, `%[name]`, `%k0`, `%b1`, `%w2`, `%q3`, `%h4`, `%c0`, `%P0`, `%a0`, `%n0`, `%l[name]` etc. in an x86 asm template line. This is
src/backend/x86_common.rs:170
↓ 3 callersMethodsupports_global_addr_fold
(&self)
src/backend/x86/codegen/emit.rs:1241
↓ 3 callersMethodtls_reloc_type
Map TLS modifier string to relocation type.
src/backend/i686/assembler/encoder/x87.rs:213
↓ 3 callersMethodto_unsigned
Get the unsigned counterpart of this type.
src/common/types.rs:1810
↓ 3 callersMethodtrack_f128_load
(&mut self, dest_id: u32, source_id: u32, offset: i64)
src/backend/state.rs:363
↓ 3 callersMethodtruncate_to_bitfield_value
Truncate a value to bit_width bits and sign-extend if the bitfield is signed.
src/ir/lowering/expr_assign.rs:148
↓ 3 callersFunctiontry_narrow_const_operand
Check if an operand is a constant that can be narrowed to target_ty.
src/passes/narrow.rs:557
↓ 3 callersFunctiontry_reassociate_bitwise
Try reassociating bitwise operations: (x & C1) & C2 => x & (C1 & C2) Works for And, Or, and Xor (all associative and commutative).
src/passes/simplify.rs:1366
↓ 3 callersFunctionu64_to_f128_bytes_with_sign
(val: u64, negative: bool)
src/common/long_double.rs:966
↓ 3 callersFunctionunsigned_op
(l: i64, r: i64, is_32bit: bool, op: fn(u64, u64) -> u64)
src/common/const_arith.rs:27
↓ 3 callersMethodvalue_reg_name
Get the register name for a Value if it has a register assignment. Returns (64-bit name, 32-bit name) pair.
src/backend/arm/codegen/emit.rs:531
↓ 3 callersMethodwith_fix_hint
Add a fix-it hint suggestion. Rendered below the source snippet, e.g., "fix-it hint: insert ';' after expression".
src/common/error.rs:418
↓ 3 callersFunctionx87_add
Add two x87 80-bit extended precision values with full precision.
src/common/long_double.rs:1169
↓ 3 callersFunctionx87_mul_soft
Software multiply for x87 80-bit extended precision values. Produces bit-identical results to the x87 FPU fmulp instruction. x87 extended format: 1 s
src/common/long_double.rs:1193
↓ 3 callersFunctionx87_rem
Compute the remainder of two x87 80-bit extended precision values (fprem semantics).
src/common/long_double.rs:1857
↓ 2 callersFunction_mm_set_pi16
include/mmintrin.h:58
↓ 2 callersFunction_mm_set_pi32
include/mmintrin.h:50
↓ 2 callersMethodadd_define
Add a -D define from command line.
src/driver/cli.rs:700
↓ 2 callersMethodadd_relocation_with_diff
(&mut self, symbol: &str, reloc_type: u32, addend: i64, diff_sym: &str)
src/backend/i686/assembler/encoder/core.rs:171
↓ 2 callersMethodalign_to
Align the current section's data to the specified byte boundary. Code sections are NOP-padded using the architecture's NOP instruction; data sections
src/backend/elf/writer_base.rs:142
↓ 2 callersMethodalloc_and_init_compound_literal
( &mut self, type_spec: &TypeSpecifier, init: &Initializer, ty: IrType, size: usize, )
src/ir/lowering/expr_access.rs:627
↓ 2 callersMethodanalyze_initializer
(&mut self, init: &Initializer)
src/frontend/sema/analysis.rs:1723
↓ 2 callersFunctionapply_relocations
Apply all relocations for all input objects to the merged section data.
src/backend/riscv/linker/reloc.rs:60
↓ 2 callersFunctionarm_int_cond_code
Map an IrCmpOp to its AArch64 integer condition code suffix.
src/backend/arm/codegen/emit.rs:101
↓ 2 callersMethodas_refs
(&self)
src/backend/common.rs:667
↓ 2 callersMethodasm_operand_ir_type
Map a CType to an IrType for inline asm operand sizing. Unlike `IrType::from_ctype()` which maps aggregate types (vectors, structs) to `Ptr` (8 bytes
src/ir/lowering/stmt_asm.rs:640
↓ 2 callersMethodassemble_source_file
Assemble a .s or .S file to an object file. When the `gcc_assembler` Cargo feature is enabled, uses GCC for assembling (with a warning). When disable
src/driver/external_tools.rs:113
↓ 2 callersFunctionassign_one_scratch
Helper: assign a scratch register to a single operand at index `i`.
src/backend/inline_asm.rs:786
↓ 2 callersMethodassign_scratch_reg
(&mut self, kind: &AsmOperandKind, excluded: &[String])
src/backend/x86/codegen/asm_emitter.rs:209
↓ 2 callersMethodassign_scratch_reg
(&mut self, kind: &AsmOperandKind, excluded: &[String])
src/backend/i686/codegen/asm_emitter.rs:154
↓ 2 callersFunctionbitfield_promoted_type
Apply C11 6.3.1.1p2 integer promotion for bitfield types. "If an int can represent all values of the original type (as restricted by the width, for a
src/ir/lowering/expr_types.rs:41
↓ 2 callersFunctionbitnot_const
Bitwise NOT of a constant value (unary `~`). Sub-int types are promoted to i32 per C integer promotion rules.
src/common/const_arith.rs:435
↓ 2 callersMethodbits_to_irconst
Convert raw bits to an IrConst based on target CType. For unsigned sub-int types (UChar, UShort, Bool), we store the value as IrConst::I32 with zero-
src/frontend/sema/const_eval.rs:618
↓ 2 callersFunctionbranch_target
Extract branch target from `b .label` or `b label`.
src/backend/arm/codegen/peephole.rs:353
↓ 2 callersMethodbuild
Build the ELF object file from parsed assembly items.
src/backend/elf_writer_common.rs:331
↓ 2 callersFunctionbuild_dom_tree_children
Build dominator tree children lists from idom array. children[b] lists block indices whose immediate dominator is b.
src/ir/analysis.rs:332
↓ 2 callersFunctionbuild_elf_symbol_table
Build a symbol table from labels, aliases, and relocation references. Returns a list of `ObjSymbol` entries ready for `write_relocatable_object`. Han
src/backend/elf/symbol_table.rs:52
↓ 2 callersFunctionbuild_full_ctype
Build a full CType from a TypeSpecifier and DerivedDeclarator chain. The derived list is produced by the parser's declarator handling, which stores d
src/common/type_builder.rs:200
← previousnext →1,201–1,300 of 6,057, ranked by callers