MCPcopy Create free account

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

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

↓ 2 callersMethodis_x86
Returns true if the target is x86 (either x86-64 or i686). Used to select x87 80-bit extended precision format for long double memory layout.
src/ir/lowering/lower.rs:237
↓ 2 callersFunctionis_zero_expr
Check if an AST expression is a zero literal (0 or cast of 0). Used for offsetof pattern detection: `&((type*)0)->member`.
src/common/const_arith.rs:448
↓ 2 callersFunctionivsr_with_analysis
Run IVSR using pre-computed CFG analysis (avoids redundant analysis when called from a pipeline that shares analysis across GVN, LICM, IVSR).
src/passes/iv_strength_reduce.rs:85
↓ 2 callersMethodjump_mnemonic
(&self)
src/backend/arm/codegen/emit.rs:1749
↓ 2 callersFunctionlabel_name
Extract label name from a label line (strip trailing `:`)
src/backend/arm/codegen/peephole.rs:400
↓ 2 callersFunctionlayout_tls
( section_name_to_idx: &HashMap<String, usize>, output_sections: &mut [OutputSection], file_offset
src/backend/i686/linker/emit.rs:1040
↓ 2 callersMethodleaf_elem_size
Get the leaf (innermost non-array) element size for a possibly nested array type.
src/ir/lowering/global_init_bytes.rs:728
↓ 2 callersMethodlex_string
(&mut self, start: usize)
src/frontend/lexer/scan.rs:572
↓ 2 callersMethodlex_unicode_escape
Parse a universal character name (\uNNNN or \UNNNNNNNN). `num_digits` is 4 for \u or 8 for \U. Returns the Unicode code point as a Rust char. TODO: C1
src/frontend/lexer/scan.rs:877
↓ 2 callersFunctionline_info_ext
(kind: LineKind, ext: ExtKind, ts: u16)
src/backend/x86/codegen/peephole/types.rs:196
↓ 2 callersMethodlink_with_args
Link object files with additional user-provided linker args. By default, uses the built-in native linker for all architectures. When the `gcc_linker`
src/backend/mod.rs:384
↓ 2 callersMethodlinker_config
Get the linker config for this target.
src/backend/mod.rs:256
↓ 2 callersMethodload_global_var
(&mut self, global_name: String, ginfo: &GlobalInfo)
src/ir/lowering/expr.rs:249
↓ 2 callersMethodload_input_to_reg
(&mut self, op: &AsmOperand, val: &Operand, _constraint: &str)
src/backend/arm/codegen/asm_emitter.rs:195
↓ 2 callersFunctionload_shared_library_elf64
Load a shared library file and match its exports against undefined globals. Handles linker script indirection (e.g., libc.so may be a text file point
src/backend/linker_common/dynamic.rs:81
↓ 2 callersFunctionlookup_got_entry
Look up a GOT entry address for the given symbol.
src/backend/riscv/linker/reloc.rs:146
↓ 2 callersMethodlower_1d_array_init
1D array initialization with designator and string literal support.
src/ir/lowering/stmt_init.rs:994
↓ 2 callersMethodlower_array_init_list
Lower a multi-dimensional array initializer list. Handles nested braces like `{{1,2,3},{4,5,6}}` for `int a[2][3]`.
src/ir/lowering/stmt.rs:920
↓ 2 callersMethodlower_char16_array_init_expr
char16_t array from u"..." string literal: `char16_t s[] = u"hello"`
src/ir/lowering/stmt_init.rs:456
↓ 2 callersMethodlower_char_array_init_expr
Char array from string literal: `char s[] = "hello"`
src/ir/lowering/stmt_init.rs:421
↓ 2 callersMethodlower_complex_add
Lower complex addition: (a+bi) + (c+di) = (a+c) + (b+d)i
src/ir/lowering/complex.rs:229
↓ 2 callersMethodlower_complex_componentwise_binop
Lower a componentwise complex binary operation (add or sub). Both real and imaginary parts use the same `op`: add: (a+bi) + (c+di) = (a+c) + (b+d)i su
src/ir/lowering/complex.rs:212
↓ 2 callersMethodlower_complex_conj
Lower complex conjugate: conj(a+bi) = a + (-b)i
src/ir/lowering/complex.rs:346
↓ 2 callersMethodlower_complex_div
Lower complex division: (a+bi)/(c+di) = ((ac+bd) + (bc-ad)i) / (c²+d²)
src/ir/lowering/complex.rs:296
↓ 2 callersMethodlower_complex_imag_part
Lower __imag__ expr - extract imaginary part of a complex expression.
src/ir/lowering/complex.rs:187
↓ 2 callersMethodlower_complex_lvalue
Get the lvalue (address) of a complex expression for assignment purposes.
src/ir/lowering/complex.rs:599
↓ 2 callersMethodlower_complex_mul
Lower complex multiplication: (a+bi)(c+di) = (ac-bd) + (ad+bc)i
src/ir/lowering/complex.rs:268
↓ 2 callersMethodlower_complex_part
Lower creal/cimag builtins. `is_real` selects real vs imaginary part.
src/ir/lowering/expr_builtins.rs:602
↓ 2 callersMethodlower_complex_real_part
Lower __real__ expr - extract real part of a complex expression.
src/ir/lowering/complex.rs:174
↓ 2 callersMethodlower_complex_sub
Lower complex subtraction: (a+bi) - (c+di) = (a-c) + (b-d)i
src/ir/lowering/complex.rs:234
↓ 2 callersMethodlower_compound_stmt
(&mut self, compound: &CompoundStmt)
src/ir/lowering/stmt.rs:30
↓ 2 callersMethodlower_imaginary_literal
Lower an imaginary literal to a complex value on the stack. Creates {0.0, val} and returns a pointer to it.
src/ir/lowering/complex.rs:147
↓ 2 callersMethodlower_inc_dec_impl
(&mut self, inner: &Expr, is_inc: bool, return_new: bool)
src/ir/lowering/expr_ops.rs:777
↓ 2 callersMethodlower_member_access_impl
(&mut self, base_expr: &Expr, field_name: &str, is_pointer: bool)
src/ir/lowering/expr_access.rs:901
↓ 2 callersMethodlower_scalar_braced_init
Scalar with braces: `int x = { 1 };` or `int x = {{{1}}};`
src/ir/lowering/stmt_init.rs:1098
↓ 2 callersMethodlower_scalar_init_expr
Scalar variable initialization with implicit casts and const tracking.
src/ir/lowering/stmt_init.rs:509
↓ 2 callersMethodlower_short_circuit
(&mut self, lhs: &Expr, rhs: &Expr, is_and: bool)
src/ir/lowering/expr_ops.rs:674
↓ 2 callersMethodlower_struct_array_with_ptrs
Lower an array of structs where some fields are pointers. Uses byte-level serialization but with Compound for address elements. Each struct element is
src/ir/lowering/global_init_compound_ptrs.rs:124
↓ 2 callersMethodlower_struct_global_init_compound
Lower a struct global init that contains address expressions. Emits field-by-field using Compound, with padding bytes between fields. Handles flat ini
src/ir/lowering/global_init_compound_struct.rs:28
↓ 2 callersMethodlower_vector_binary_op
Lower vector binary operation (a + b, a - b, etc.): element-wise, returns new alloca. Per GCC vector extensions, if one operand is a scalar and the ot
src/ir/lowering/expr_assign.rs:823
↓ 2 callersMethodlower_wchar_array_init_expr
wchar_t/int array from wide string: `wchar_t s[] = L"hello"`
src/ir/lowering/stmt_init.rs:442
↓ 2 callersMethodlvalue_addr_space
Get the address space from an LValue.
src/ir/lowering/lvalue.rs:169
↓ 2 callersFunctionmake_loop_func
Helper to create a simple loop: preheader -> header -> body -> header, header -> exit
src/passes/licm.rs:911
↓ 2 callersMethodmark_transparent_union
Mark a transparent_union attribute on the union's StructLayout. Resolves the union layout key either from the type specifier directly or by searching
src/ir/lowering/structs.rs:250
↓ 2 callersMethodmask_float_sign_for_truthiness
Mask off the sign bit of a float value for truthiness testing. This ensures -0.0 is treated as falsy (same as +0.0) while NaN remains truthy. For F128
src/ir/lowering/expr.rs:34
↓ 2 callersFunctionmatch_shared_library_dynsyms
Match dynamic symbols from a shared library against undefined globals. For each undefined, non-dynamic global that matches a library export: 1. Repla
src/backend/linker_common/dynamic.rs:33
↓ 2 callersMethodmaterialize_compound_literals_in_expr
Recursively walk an expression tree and materialize any compound literals found within arithmetic/cast contexts as anonymous globals. This is needed s
src/ir/lowering/global_init.rs:192
↓ 2 callersMethodmaybe_narrow
(&mut self, val: Value, ty: IrType)
src/ir/lowering/expr.rs:375
↓ 2 callersFunctionmemchr_newline
(haystack: &[u8])
src/common/source.rs:578
↓ 2 callersFunctionmerge_loops_by_header
Merge natural loops that share the same header block. Multiple back edges targeting the same header produce separate NaturalLoop entries, each with a
src/passes/loop_analysis.rs:65
↓ 2 callersFunctionmerge_sections
Merge sections from all input objects into output sections. Groups input sections by their canonical output name (e.g., `.text.foo` → `.text`), conca
src/backend/riscv/linker/sections.rs:16
↓ 2 callersFunctionmerge_sections
( inputs: &[InputObject], )
src/backend/i686/linker/sections.rs:11
↓ 2 callersFunctionmerge_sections_elf64
Merge input sections from all objects into output sections. Groups input sections by mapped name (e.g., `.text.foo` -> `.text`), computes output offs
src/backend/linker_common/merge.rs:24
↓ 2 callersMethodmerge_subsections
Merge all subsections back into their parent sections. After all statements are processed, subsections like `.text.__subsection.1` are appended to th
src/backend/elf/writer_base.rs:290
↓ 2 callersMethodmul_u32
(&mut self, factor: u32)
src/common/long_double.rs:95
↓ 2 callersFunctionnegate_const
Negate a constant value (unary `-`). Sub-int types are promoted to i32 per C integer promotion rules. Uses wrapping negation to handle MIN values (e.g
src/common/const_arith.rs:413
↓ 2 callersMethodnext_token
(&mut self)
src/frontend/lexer/scan.rs:41
↓ 2 callersFunctionnormalize_atomic_size_suffix
Normalize size-suffixed __atomic_* builtins to their canonical form. GCC provides size-suffixed variants (e.g., __atomic_load_4, __atomic_store_2) as
src/frontend/sema/builtins.rs:734
↓ 2 callersFunctionnormalize_include_path
Normalize a macro-expanded include path by removing spaces inserted during expansion. During macro expansion, the preprocessor may insert spaces betw
src/frontend/preprocessor/includes.rs:294
↓ 2 callersFunctionoperand_is_boolean
Check whether an operand is known to be boolean (0 or 1).
src/passes/simplify.rs:178
↓ 2 callersFunctionoperand_narrow_type
Determine the narrow type of an operand (from loads, widen_map, or narrowed_map). Returns None for constants or if the operand's narrow type can't be
src/passes/narrow.rs:526
↓ 2 callersFunctionoperands_equal
Compare two operands for structural equality.
src/passes/cfg_simplify.rs:1082
↓ 2 callersMethodoutput_for_input
Determine the output path for a given input file and mode.
src/driver/pipeline.rs:721
↓ 2 callersFunctionoutput_section_name
Determine the output section name for an input section. Returns `None` for sections that should not be included in the output (metadata sections, non
src/backend/i686/linker/types.rs:253
↓ 2 callersMethodoverride_ldbl_binary128
Override long double macros from x87 80-bit extended to IEEE 754 binary128. Called by set_target() for aarch64 and riscv64 which use quad precision.
src/frontend/preprocessor/predefined_macros.rs:668
↓ 2 callersFunctionpack_values_into_slots
Pack values with known live intervals into shared stack slots using a min-heap. O(N log S) where N = values and S = slots.
src/backend/stack_layout/slot_assignment.rs:733
↓ 2 callersMethodparse_and
(&mut self)
src/frontend/preprocessor/conditionals.rs:507
↓ 2 callersFunctionparse_asm
(text: &str)
src/backend/arm/assembler/parser.rs:1029
↓ 2 callersFunctionparse_asm
Parse assembly text into a list of AsmItems.
src/backend/x86/assembler/parser.rs:297
↓ 2 callersMethodparse_asm_operands
(&mut self)
src/frontend/parser/statements.rs:360
↓ 2 callersMethodparse_bitand
(&mut self)
src/frontend/preprocessor/conditionals.rs:539
↓ 2 callersMethodparse_bitor
(&mut self)
src/frontend/preprocessor/conditionals.rs:517
↓ 2 callersMethodparse_bitxor
(&mut self)
src/frontend/preprocessor/conditionals.rs:528
↓ 2 callersFunctionparse_condjmp
Extract condition code and target from a conditional jump.
src/backend/i686/codegen/peephole.rs:554
↓ 2 callersFunctionparse_dest_reg
Parse the destination register of a generic instruction. For two-operand instructions (AT&T syntax), the destination is the last operand.
src/backend/i686/codegen/peephole.rs:278
↓ 2 callersFunctionparse_dest_reg_fast
(s: &str)
src/backend/x86/codegen/peephole/types.rs:532
↓ 2 callersMethodparse_equality
(&mut self)
src/frontend/preprocessor/conditionals.rs:550
↓ 2 callersMethodparse_expr_and
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:999
↓ 2 callersMethodparse_expr_cmp
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:1010
↓ 2 callersMethodparse_expr_or
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:977
↓ 2 callersMethodparse_expr_unary
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:1053
↓ 2 callersMethodparse_expr_xor
(&self, tokens: &[ExprToken], pos: &mut usize)
src/backend/elf_writer_common.rs:988
↓ 2 callersFunctionparse_fence_bits
Parse a fence ordering string (e.g., "iorw") into a 4-bit mask.
src/backend/riscv/assembler/encoder/mod.rs:419
↓ 2 callersFunctionparse_generic_sysreg
Parse generic system register name like `s3_0_c1_c0_1` into encoding bits. Also handles numbered register families like `dbgbcr15_el1`.
src/backend/arm/assembler/encoder/system.rs:241
↓ 2 callersFunctionparse_instruction
Parse an instruction line.
src/backend/x86/assembler/parser.rs:875
↓ 2 callersFunctionparse_linker_args
Parse user linker arguments into a structured `LinkerArgs`. Handles `-L`, `-l`, `-Wl,` (with nested flags like `--defsym`, `--export-dynamic`, `-rpat
src/backend/linker_common/args.rs:39
↓ 2 callersMethodparse_next_tighter
Parse the next tighter precedence level.
src/frontend/parser/expressions.rs:165
↓ 2 callersFunctionparse_offset
Parse integer offset from string.
src/backend/i686/codegen/peephole.rs:236
↓ 2 callersMethodparse_postfix_expr
(&mut self)
src/frontend/parser/expressions.rs:379
↓ 2 callersMethodparse_postfix_ops
Parse postfix operators ([], ., ->, ++, --, function call) applied to an initial expression.
src/frontend/parser/expressions.rs:385
↓ 2 callersFunctionparse_reg_num_simple
(reg: &str)
src/backend/arm/assembler/parser.rs:2075
↓ 2 callersFunctionparse_reg_to_reg_movq
Parse a movq %src, %dst instruction. Returns (src_family, dst_family) if valid.
src/backend/x86/codegen/peephole/passes/helpers.rs:132
↓ 2 callersFunctionparse_s0_offset
Parse `offset(s0)` and return the offset if it references s0.
src/backend/riscv/codegen/peephole.rs:298
↓ 2 callersFunctionparse_section_args
Parse `.section name, "flags", @type` arguments.
src/backend/riscv/assembler/parser.rs:533
↓ 2 callersFunctionparse_section_directive
Parse a `.section name,"flags",@type` directive.
src/backend/arm/assembler/parser.rs:2302
↓ 2 callersFunctionparse_section_directive
Parse `.section name,"flags",@type` directive.
src/backend/x86/assembler/parser.rs:711
↓ 2 callersFunctionparse_setcc
Parse a setCC instruction and return the condition code string.
src/backend/x86/codegen/peephole/types.rs:981
↓ 2 callersFunctionparse_setcc
Parse setCC instruction → condition code.
src/backend/i686/codegen/peephole.rs:563
↓ 2 callersFunctionparse_shared_library_symbols
(data: &[u8], lib_name: &str)
src/backend/x86/linker/elf.rs:78
↓ 2 callersFunctionparse_shared_library_symbols
Extract dynamic symbols from a shared library (.so) file. Reads the .dynsym section to find exported symbols. Used by x86 and RISC-V linkers for dyna
src/backend/linker_common/parse_shared.rs:21
← previousnext →1,701–1,800 of 6,057, ranked by callers