MCPcopy Create free account

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

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

↓ 2 callersFunctionparse_single_integer
Parse a single integer value (no arithmetic expressions). Supports decimal, hex (0x/0X), binary (0b/0B), octal (leading 0), and character literals ('c
src/backend/asm_expr.rs:227
↓ 2 callersFunctionparse_single_operand
Parse a single operand. `is_fence`: when true, classify subsets of "iorw" as FenceArg. `force_symbol`: when true, this operand position is known to be
src/backend/riscv/assembler/parser.rs:866
↓ 2 callersFunctionparse_soname
Get the SONAME from a shared library's .dynamic section. Tries section headers first, then falls back to program headers (PT_DYNAMIC) for shared libr
src/backend/linker_common/parse_shared.rs:384
↓ 2 callersFunctionparse_sp_mem_op
Parse `xN/wN, [sp, #off]` and return (reg_id, offset, is_word).
src/backend/arm/codegen/peephole.rs:325
↓ 2 callersFunctionparse_sp_offset
Parse `[sp, #off]` or `[sp]` and return the offset.
src/backend/arm/codegen/peephole.rs:338
↓ 2 callersMethodparse_stmt
(&mut self)
src/frontend/parser/statements.rs:93
↓ 2 callersMethodparse_struct_or_union
Parse a struct or union definition/reference.
src/frontend/parser/types.rs:444
↓ 2 callersFunctionparse_symbol_addend
(s: &str)
src/backend/riscv/assembler/parser.rs:754
↓ 2 callersMethodparse_ternary
(&mut self)
src/frontend/preprocessor/conditionals.rs:481
↓ 2 callersFunctionparse_thin_archive
Parse a GNU thin archive and return all ELF .o members. In thin archives, member data is stored in external files referenced by name.
src/backend/riscv/linker/elf_read.rs:56
↓ 2 callersFunctionparse_u32_from_digits
(bytes: &[u8])
src/common/source.rs:584
↓ 2 callersMethodparse_unary_expr
(&mut self)
src/frontend/parser/expressions.rs:226
↓ 2 callersFunctionparse_vtypei
Parse a vtypei field from operands starting at `start_idx`. The vtypei is specified as a sequence of operands: e.g., e8, m8, ta, ma Returns the encode
src/backend/riscv/assembler/encoder/vector.rs:8
↓ 2 callersMethodparsing_always_inline
(&self)
src/frontend/parser/parse.rs:162
↓ 2 callersMethodparsing_gnu_inline
(&self)
src/frontend/parser/parse.rs:161
↓ 2 callersMethodparsing_noinline
(&self)
src/frontend/parser/parse.rs:163
↓ 2 callersMethodpeek_next
(&self)
src/frontend/lexer/scan.rs:144
↓ 2 callersMethodpeel_pointer_elem_size
Peel `depth` levels of pointer/array indirection from a CType, then return the element size of the resulting pointer or array type. For `char **` at d
src/ir/lowering/lvalue.rs:608
↓ 2 callersMethodpointee_ir_type
Compute the IR type of the pointee for a pointer/array type specifier. Resolves typedef names through CType.
src/ir/lowering/pointer_analysis.rs:43
↓ 2 callersMethodpop_section
Pop the section stack and restore both current and previous sections.
src/backend/elf/writer_base.rs:240
↓ 2 callersFunctionpow10_big
Build a big integer for 10^n
src/common/long_double.rs:337
↓ 2 callersMethodpreferred_alignof_expr
Compute preferred alignment for an expression by inferring its type and returning the type's preferred alignment. This implements GCC's __alignof__(ex
src/ir/lowering/expr_sizeof.rs:456
↓ 2 callersMethodpreferred_alignof_type
Compute preferred (natural) alignment of a type in bytes (__alignof__). On i686: __alignof__(long long) == 8, __alignof__(double) == 8.
src/ir/lowering/types.rs:446
↓ 2 callersMethodpreprocess_source
Unified preprocessing pipeline for both top-level and included sources. When `is_include` is true: - Saves and restores the conditional stack (each f
src/frontend/preprocessor/pipeline.rs:198
↓ 2 callersFunctionpromote_function
Promote allocas in a single function to SSA form. If `promote_params` is true, parameter allocas in the entry block are also eligible for promotion.
src/ir/mem2reg/promote.rs:79
↓ 2 callersFunctionpromote_integer
Promote small integer types to I32, matching C integer promotion rules. I8, U8, I16, U16 all promote to I32. All other types are returned unchanged.
src/ir/lowering/expr_types.rs:25
↓ 2 callersMethodptr_directive
(&self)
src/backend/arm/codegen/emit.rs:1821
↓ 2 callersMethodpush_le_bytes_riscv
Convert to bytes for RISC-V/ARM64 targets, using IEEE 754 binary128 format for long doubles. The f128 bytes are stored directly since they are already
src/ir/constants.rs:425
↓ 2 callersMethodpush_le_bytes_x86
Convert to bytes for x86-64 targets, using x87 80-bit extended precision for long doubles. This ensures correct memory representation when code type-p
src/ir/constants.rs:410
↓ 2 callersMethodpush_section
Push current section onto the stack and switch to a new section. Saves both current_section and previous_section so that .popsection fully restores th
src/backend/elf/writer_base.rs:234
↓ 2 callersFunctionread_i32
(data: &[u8], offset: usize)
src/backend/elf/io.rs:31
↓ 2 callersFunctionread_sleb128
(data: &[u8], mut off: usize)
src/backend/linker_common/eh_frame.rs:381
↓ 2 callersMethodrecord_sym_diff
Record a pending symbol difference for deferred resolution.
src/backend/arm/assembler/elf_writer.rs:595
↓ 2 callersFunctionreg_digit_to_id
(digit: u8)
src/backend/x86/codegen/peephole/types.rs:1104
↓ 2 callersFunctionreg_id_to_name
(id: RegId, size: MoveSize)
src/backend/x86/codegen/peephole/types.rs:1266
↓ 2 callersFunctionreg_id_to_name_q
Convert a register family ID to its 64-bit name with % prefix.
src/backend/x86/codegen/peephole/passes/frame_compact.rs:307
↓ 2 callersFunctionreg_size
Infer operand size from register name for unsuffixed instructions.
src/backend/i686/assembler/encoder/registers.rs:63
↓ 2 callersFunctionreg_to_8h
Convert any x86 register name to its 8-bit high variant. Only the four legacy registers (a/b/c/d) have high-byte forms. Falls back to the low-byte va
src/backend/x86_common.rs:153
↓ 2 callersMethodregister_block_func_meta
Register function metadata for a block-scope function declaration. Must compute the same ABI metadata as `register_function_meta` so that member acces
src/ir/lowering/stmt_init.rs:161
↓ 2 callersMethodregister_nested_struct_types
Recursively register any struct/union types defined inline in field declarations. This handles cases like: struct Outer { struct Inner { int x; } fiel
src/ir/lowering/structs.rs:187
↓ 2 callersFunctionregister_size_suffix
Get the operand-size suffix character for a register name. Returns 'q' for 64-bit, 'l' for 32-bit, 'w' for 16-bit, 'b' for 8-bit.
src/backend/x86/assembler/encoder/registers.rs:139
↓ 2 callersFunctionremap_call_info
Remap all values in a CallInfo (shared between Call and CallIndirect remapping).
src/passes/inline.rs:1483
↓ 2 callersFunctionremove_phi_entries_from
Remove phi entries that reference `source_label` from all phi nodes in `block`.
src/passes/cfg_simplify.rs:125
↓ 2 callersMethodreplace_remaining_idents_with_zero
Replace remaining identifiers (not keywords) with 0 in a #if expression. Per C standard, after macro expansion, undefined identifiers in #if evaluate
src/frontend/preprocessor/expr_eval.rs:16
↓ 2 callersFunctionreplace_source_reg_in_instruction
Replace a register name in the *source* operand positions of an instruction. Given an assembly line like `" add x0, x1, x2"`, this replaces `old_reg
src/backend/peephole_common.rs:78
↓ 2 callersFunctionresolve_abs_g_modifier
Resolve `:abs_g0:`, `:abs_g1:`, etc. modifiers for movz/movk. If the expression is a pure constant, returns Some((imm16, hw)) where imm16 is the relev
src/backend/arm/assembler/encoder/data_processing.rs:183
↓ 2 callersMethodresolve_anon_struct_or_union
Resolve an anonymous struct or union with inline field declarations. Generates a unique key, computes the layout, registers it in TypeContext, and ret
src/frontend/sema/type_checker.rs:704
↓ 2 callersFunctionresolve_archive_members
Iterative archive member resolution (the --start-group algorithm). Given a list of parsed archive member objects, pull in members that define any cur
src/backend/linker_common/archive.rs:42
↓ 2 callersMethodresolve_builtin_choose_expr
Resolve __builtin_choose_expr(const_expr, expr1, expr2) to the selected branch. Returns a reference to args[1] if the condition is nonzero, or args[2]
src/ir/lowering/expr_types.rs:664
↓ 2 callersFunctionresolve_builtin_link_setup
( arch: &DirectLdArchConfig, user_args: &[String], is_nostdlib: bool, is_static: bool, )
src/backend/common.rs:529
↓ 2 callersMethodresolve_chained_array_subscript
Resolve a chained array subscript expression like `arr[i][j][k]` to a global address with computed offset. Walks nested ArraySubscript nodes from oute
src/ir/lowering/const_eval_global_addr.rs:298
↓ 2 callersMethodresolve_chained_member_access
Resolve a chained member access expression like `s.a.b.c` to a global address. Walks the chain from the root identifier, accumulating field offsets. A
src/ir/lowering/const_eval_global_addr.rs:681
↓ 2 callersMethodresolve_field_struct_layout
Shared helper: given a field access (base.field or base->field), resolve the struct layout of the field's type. Used by both get_pointed_struct_layout
src/ir/lowering/structs.rs:943
↓ 2 callersMethodresolve_func_call_struct_layout
Shared helper: resolve struct layout from a function call expression. For get_pointed_struct_layout: the return type is a pointer to struct, resolve i
src/ir/lowering/structs.rs:967
↓ 2 callersMethodresolve_generic_selection_type
Resolve the IrType of a _Generic selection expression.
src/ir/lowering/expr_types.rs:654
↓ 2 callersMethodresolve_global_ty
Determine the IR element type for a global variable's initializer. When struct initializers are emitted as byte arrays (Vec<IrConst::I8>), the global
src/ir/lowering/definitions.rs:293
↓ 2 callersFunctionresolve_got_reloc
Resolve R_386_GOT32 or R_386_GOT32X relocations.
src/backend/i686/linker/reloc.rs:241
↓ 2 callersMethodresolve_has_include_call_bytes
Parse `(<header.h>)` or `("header.h")` after `__has_include` / `__has_include_next` and return "1" or "0" based on whether the header can be found.
src/frontend/preprocessor/expr_eval.rs:231
↓ 2 callersMethodresolve_include_next_path
Resolve an include path using #include_next semantics: search from the next include path after the one containing the current file. `current_file` is
src/frontend/preprocessor/includes.rs:553
↓ 2 callersMethodresolve_init_field_idx
Resolve which field index an initializer targets, given either a field designator or a positional index that skips unnamed bitfield fields. `designat
src/common/types.rs:1016
↓ 2 callersMethodresolve_inner_as_global_addr
Resolve an expression to a global address, handling member access on global structs (e.g., `boot_cpu_data.x86_capability` -> GlobalAddrOffset("boot_cp
src/ir/lowering/const_eval_global_addr.rs:541
↓ 2 callersMethodresolve_label_expr
Substitute all known label names in an expression string with their byte offsets, then evaluate the resulting numeric expression.
src/backend/arm/assembler/elf_writer.rs:333
↓ 2 callersFunctionresolve_lib
Resolve a library name to a path by searching directories. Handles both `-l:filename` (exact match) and `-lfoo` (lib prefix search). When `prefer_sta
src/backend/linker_common/resolve_lib.rs:13
↓ 2 callersMethodresolve_member_access_full
Resolve member access with full bitfield info. Returns (byte_offset, ir_type, Option<(bit_offset, bit_width)>).
src/ir/lowering/structs.rs:638
↓ 2 callersMethodresolve_member_access_full_impl
(&self, base_expr: &Expr, field_name: &str, is_pointer: bool)
src/ir/lowering/structs.rs:647
↓ 2 callersMethodresolve_member_access_impl
(&self, base_expr: &Expr, field_name: &str, is_pointer: bool)
src/ir/lowering/structs.rs:627
↓ 2 callersMethodresolve_member_access_with_ctype_impl
(&self, base_expr: &Expr, field_name: &str, is_pointer: bool)
src/ir/lowering/structs.rs:1017
↓ 2 callersMethodresolve_memory_operand
Resolve memory operand addresses that require indirection (non-alloca pointers). `excluded` contains registers claimed by specific-register constraint
src/backend/inline_asm.rs:148
↓ 2 callersFunctionresolve_numeric_refs_in_expr
Resolve numeric label references (e.g., `1b`, `2f`) within an expression string. Replaces each occurrence with the resolved unique label name (e.g., `
src/backend/arm/assembler/mod.rs:274
↓ 2 callersMethodresolve_packed_enum_type
Build an EnumType for a packed enum from its variants or type context.
src/frontend/sema/const_eval.rs:753
↓ 2 callersMethodresolve_pointer_member_access_full
Resolve pointer member access with full bitfield info.
src/ir/lowering/structs.rs:643
↓ 2 callersMethodresolve_struct_from_pointer_ctype
Given a CType that should be a Pointer to a struct, resolve the struct layout. Handles self-referential structs by looking up the cache when fields ar
src/ir/lowering/structs.rs:1044
↓ 2 callersMethodresolve_struct_init_field_idx
Resolve which struct field a positional or designated initializer targets.
src/ir/lowering/global_init_compound.rs:282
↓ 2 callersMethodresolve_struct_or_union
( &self, name: &Option<String>, fields: &Option<Vec<StructFieldDecl>>, is_unio
src/frontend/sema/analysis.rs:1908
↓ 2 callersFunctionresolve_sym
( obj_idx: usize, sym: &Symbol, globals: &HashMap<String, GlobalSymbol>, section_map: &HashMap<(usize,
src/backend/x86/linker/emit_exec.rs:1223
↓ 2 callersFunctionresolve_symbol_value
Resolve a symbol to its virtual address, handling section symbols, globals, and locals.
src/backend/riscv/linker/relocations.rs:191
↓ 2 callersFunctionresolve_symbols
( inputs: &[InputObject], _output_sections: &[OutputSection], section_map: &SectionMap, dynlib
src/backend/i686/linker/symbols.rs:12
↓ 2 callersFunctionresolve_tls_gotie
Resolve R_386_TLS_GOTIE relocation.
src/backend/i686/linker/reloc.rs:290
↓ 2 callersFunctionresolve_tls_ie
Resolve R_386_TLS_IE relocation.
src/backend/i686/linker/reloc.rs:275
↓ 2 callersMethodresolve_va_arg_type
(&self, type_spec: &TypeSpecifier)
src/ir/lowering/expr_access.rs:1431
↓ 2 callersFunctionresolve_value_globally
Resolve a Value to a constant by following its definition chain across blocks. This handles chains like: Phi → Copy → Cmp(Ne, Cast(Phi), 0) where the
src/passes/cfg_simplify.rs:958
↓ 2 callersFunctionresolve_via_section_map
Resolve a symbol address through the section map + symbol value.
src/backend/i686/linker/reloc.rs:225
↓ 2 callersMethodrestore_previous_section
Restore the previous section (for `.previous` directive). Swaps current and previous sections, so repeated `.previous` toggles between two sections.
src/backend/elf/writer_base.rs:225
↓ 2 callersMethodrhs_is_small_vector_call
Check if an expression is a function call that returns a small vector in a register.
src/ir/lowering/expr_assign.rs:723
↓ 2 callersFunctionriscv_reg_to_callee_saved
Map a RISC-V register name to its PhysReg index, if it is callee-saved.
src/backend/riscv/codegen/emit.rs:60
↓ 2 callersFunctionround_to_nearest_even_113
Apply IEEE 754 round-to-nearest-even to a BigUint value, extracting a 113-bit mantissa. Returns (mantissa113, binary_exp) after rounding, or None if z
src/common/long_double.rs:426
↓ 2 callersFunctionrun_gvn_with_analysis
Run GVN using pre-computed CFG analysis (avoids redundant analysis when called from a pipeline that shares analysis across GVN, LICM, IVSR).
src/passes/gvn.rs:397
↓ 2 callersFunctionsame_value_operands
Check if two operands refer to the same value.
src/passes/simplify.rs:1155
↓ 2 callersFunctionsection_index
Map a symbol's section name to its index in the section header table. Handles special pseudo-sections used during assembly: - `*COM*` → `SHN_COMMON`
src/backend/elf/linker_symbols.rs:118
↓ 2 callersFunctionsection_order
Canonical output section ordering for layout.
src/backend/riscv/linker/relocations.rs:632
↓ 2 callersFunctionseg_reg_num
Get segment register number (es=0, cs=1, ss=2, ds=3, fs=4, gs=5).
src/backend/i686/assembler/encoder/registers.rs:19
↓ 2 callersMethodset_asm_mode
Enable assembly preprocessing mode. In this mode, '$' is not treated as an identifier character during macro expansion, so that AT&T assembly immediat
src/frontend/preprocessor/pipeline.rs:609
↓ 2 callersMethodset_call_ret_eightbyte_classes
Stash the SysV eightbyte classification for the call's return struct. x86-64 overrides this to store the classes for use in emit_call_store_result. Ot
src/backend/traits.rs:594
↓ 2 callersMethodset_diagnostics
Set a pre-configured diagnostic engine on the parser. Called by the driver after setting up the source manager on the engine.
src/frontend/parser/parse.rs:310
↓ 2 callersMethodset_elf_flags
Set the ELF e_flags (e.g., to change float ABI from the default double-float).
src/backend/riscv/assembler/elf_writer.rs:441
↓ 2 callersMethodset_global
Record .globl for a symbol.
src/backend/elf/writer_base.rs:374
↓ 2 callersMethodset_naked
(&mut self, v: bool)
src/frontend/parser/parse.rs:190
↓ 2 callersMethodset_noreturn
(&mut self, v: bool)
src/frontend/parser/parse.rs:186
↓ 2 callersMethodset_pic
Enable position-independent code generation (-fPIC/-fpie).
src/backend/arm/codegen/emit.rs:201
↓ 2 callersMethodset_subsection
Switch to a numbered subsection within the current section. `.subsection N` creates an internal section `PARENT.__subsection.N` that gets merged back
src/backend/elf/writer_base.rs:252
← previousnext →1,801–1,900 of 6,057, ranked by callers