MCPcopy Create free account

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

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

↓ 1 callersMethodlower_global_init_list
Lower an initializer list. Dispatches to specialized handlers based on the target type: brace-wrapped strings, complex arrays, struct arrays, pointer
src/ir/lowering/global_init.rs:391
↓ 1 callersMethodlower_gnu_conditional
Lower GNU conditional expression: `cond ? : else_expr` The "then" value is the condition value itself (evaluated once).
src/ir/lowering/expr_ops.rs:570
↓ 1 callersMethodlower_goto_indirect_stmt
(&mut self, expr: &Expr)
src/ir/lowering/stmt_control_flow.rs:262
↓ 1 callersMethodlower_goto_stmt
(&mut self, label: &str)
src/ir/lowering/stmt_control_flow.rs:215
↓ 1 callersMethodlower_identifier
(&mut self, name: &str)
src/ir/lowering/expr.rs:270
↓ 1 callersMethodlower_if_stmt
(&mut self, cond: &Expr, then_stmt: &Stmt, else_stmt: Option<&Stmt>)
src/ir/lowering/stmt_control_flow.rs:13
↓ 1 callersMethodlower_imaginary_literal_ld
Lower a long double imaginary literal, preserving full x87 precision bytes.
src/ir/lowering/complex.rs:165
↓ 1 callersMethodlower_inline_asm_stmt
( &mut self, template: &str, outputs: &[AsmOperand], inputs: &[AsmOperand],
src/ir/lowering/stmt_asm.rs:25
↓ 1 callersMethodlower_label_stmt
(&mut self, name: &str, stmt: &Stmt)
src/ir/lowering/stmt_control_flow.rs:278
↓ 1 callersMethodlower_local_init_expr
Lower an `Initializer::Expr` for a local variable declaration. Handles char arrays from string literals, struct copy-init, complex init, and scalar in
src/ir/lowering/stmt_init.rs:374
↓ 1 callersMethodlower_local_init_list
Lower `Initializer::List` for a local variable declaration. Dispatches to complex, struct, array, or scalar-with-braces handlers.
src/ir/lowering/stmt_init.rs:551
↓ 1 callersMethodlower_local_static_decl
Handle static local variable declarations: emit as globals with mangled names. Static locals are initialized once at program start (via .data/.bss), n
src/ir/lowering/stmt.rs:387
↓ 1 callersMethodlower_local_typedef
(&mut self, decl: &Declaration, type_spec: &TypeSpecifier)
src/ir/lowering/stmt.rs:193
↓ 1 callersMethodlower_local_var_init
( &mut self, init: &Initializer, decl: &Declaration, declarator: &InitDeclarator, da: &DeclAna
src/ir/lowering/stmt.rs:360
↓ 1 callersMethodlower_member_access
(&mut self, base_expr: &Expr, field_name: &str)
src/ir/lowering/expr_access.rs:955
↓ 1 callersMethodlower_parity_intrinsic
Lower __builtin_parity{,l,ll} - implemented as popcount & 1.
src/ir/lowering/expr_builtins_intrin.rs:123
↓ 1 callersMethodlower_pointer_array_init
Lower a pointer array or array with address relocations. Each element becomes a separate GlobalInit in a Compound representation.
src/ir/lowering/global_init.rs:659
↓ 1 callersMethodlower_pointer_member_access
(&mut self, base_expr: &Expr, field_name: &str)
src/ir/lowering/expr_access.rs:959
↓ 1 callersMethodlower_post_inc_dec
(&mut self, inner: &Expr, op: PostfixOp)
src/ir/lowering/expr_ops.rs:772
↓ 1 callersMethodlower_pre_inc_dec
(&mut self, inner: &Expr, op: UnaryOp)
src/ir/lowering/expr_ops.rs:767
↓ 1 callersMethodlower_real_minus_complex
Lower real - complex: real - (c+di) = (real-c) + (-d)i Uses negation for the imaginary part instead of 0.0-d to preserve IEEE 754 negative zero: -(+0.
src/ir/lowering/complex.rs:241
↓ 1 callersMethodlower_return_expr
Lower a return statement's expression to an operand. Handles all return conventions: sret, two-register, complex decomposition, and scalar returns wit
src/ir/lowering/stmt_return.rs:33
↓ 1 callersMethodlower_scalar_array_init
Lower a plain scalar array (1D or multi-dimensional).
src/ir/lowering/global_init.rs:956
↓ 1 callersMethodlower_scalar_compound_assign
Standard scalar compound assignment.
src/ir/lowering/expr_assign.rs:527
↓ 1 callersMethodlower_scalar_compound_assign_complex_rhs
Scalar compound assignment with complex RHS: extract real part from RHS.
src/ir/lowering/expr_assign.rs:495
↓ 1 callersMethodlower_scalar_with_braces
Lower a scalar value wrapped in braces: `int x = { 1 };` or `int x = {{{1}}}`.
src/ir/lowering/global_init.rs:479
↓ 1 callersMethodlower_sizeof
(&mut self, arg: &SizeofArg)
src/ir/lowering/expr_access.rs:400
↓ 1 callersMethodlower_stmt_expr
(&mut self, compound: &CompoundStmt)
src/ir/lowering/expr_access.rs:976
↓ 1 callersMethodlower_string_literal_init
Lower a string literal expression to GlobalInit. Handles all three string literal kinds (narrow, wide, char16) in a single path. Returns None if the
src/ir/lowering/global_init.rs:289
↓ 1 callersMethodlower_struct_array_field_designated_expr
Handle field-designated expression init for a struct array element: `[idx].field = expr`
src/ir/lowering/stmt_init.rs:891
↓ 1 callersMethodlower_struct_array_field_designated_list
Handle field-designated list init for a struct array element: `[idx].field = { ... }`
src/ir/lowering/stmt_init.rs:832
↓ 1 callersMethodlower_struct_array_init
Lower a struct array initializer. Uses byte-serialization for structs without pointer fields, and compound representation for structs with pointers.
src/ir/lowering/global_init.rs:581
↓ 1 callersMethodlower_struct_array_init_recursive
Recursively initialize a (possibly multi-dimensional) array of structs. `dim_strides` contains the byte strides for each remaining dimension. For `st
src/ir/lowering/stmt_init.rs:739
↓ 1 callersMethodlower_struct_array_with_ptrs_multidim
Lower a (possibly multi-dimensional) array of structs where some fields are pointers. Handles multi-dimensional arrays by recursing through dimension
src/ir/lowering/global_init_compound_ptrs.rs:27
↓ 1 callersMethodlower_struct_assign
Lower struct/union assignment using memcpy.
src/ir/lowering/expr_assign.rs:84
↓ 1 callersMethodlower_struct_copy_init
Struct copy-initialization: `struct Point b = a;`
src/ir/lowering/stmt_init.rs:480
↓ 1 callersMethodlower_struct_field_init_list
Initialize a struct field from a nested initializer list. Handles sub-struct fields and array fields.
src/ir/lowering/stmt.rs:831
↓ 1 callersMethodlower_struct_global_init
( &mut self, items: &[InitializerItem], layout: &StructLayout, )
src/ir/lowering/global_init.rs:1217
↓ 1 callersMethodlower_struct_init_list
Struct initializer list with designated initializer support.
src/ir/lowering/stmt_init.rs:613
↓ 1 callersMethodlower_switch_stmt
(&mut self, expr: &Expr, body: &Stmt)
src/ir/lowering/stmt_switch.rs:23
↓ 1 callersMethodlower_typedef
(&mut self, decl: &Declaration)
src/ir/lowering/global_decl.rs:87
↓ 1 callersMethodlower_unary_op
(&mut self, op: UnaryOp, inner: &Expr)
src/ir/lowering/expr_ops.rs:326
↓ 1 callersMethodlower_va_arg
(&mut self, ap_expr: &Expr, type_spec: &TypeSpecifier)
src/ir/lowering/expr_access.rs:1058
↓ 1 callersMethodlower_va_arg_complex
Lower va_arg for complex types by decomposing into component va_arg calls. Complex float (_Complex float) is special: on x86-64 and RISC-V it's passe
src/ir/lowering/expr_access.rs:1311
↓ 1 callersMethodlower_va_arg_struct
Lower va_arg for struct/union types. Struct variadic arguments are passed by value: their bytes are stored inline on the va_list (or in registers, fo
src/ir/lowering/expr_access.rs:1131
↓ 1 callersMethodlower_vector_array_init
Lower a vector array: `SV arr[] = { (SV){1,2,3,4}, (SV){5,6,7,8} }`.
src/ir/lowering/global_init.rs:886
↓ 1 callersMethodlower_vector_assign
Lower vector assignment (a = b): memcpy the whole vector. When the RHS is a function call returning a small vector (<=8 bytes), the return value is pa
src/ir/lowering/expr_assign.rs:694
↓ 1 callersMethodlower_vector_compound_assign
Lower vector compound assignment (a += b, a -= b, etc.): element-wise operation. The RHS may be a scalar, which is broadcast to all vector elements.
src/ir/lowering/expr_assign.rs:756
↓ 1 callersMethodlower_vector_init
Lower a plain vector init list: `__attribute__((vector_size(N))) v = { 1, 2, 3, 4 }`.
src/ir/lowering/global_init.rs:1039
↓ 1 callersMethodlower_while_stmt
(&mut self, cond: &Expr, body: &Stmt)
src/ir/lowering/stmt_control_flow.rs:39
↓ 1 callersMethodlower_x86_intrinsic
Lower an X86 SSE/AES/CRC intrinsic to IR. Classifies the intrinsic into one of four emission patterns: - Fence: no args, no dest (lfence, mfence, sfe
src/ir/lowering/expr_builtins.rs:700
↓ 1 callersMethodmake_expr_key
Try to create an ExprKey for an instruction (for value numbering). Returns the expression key and the destination value, or None if the instruction is
src/passes/gvn.rs:184
↓ 1 callersMethodmake_float_token
Construct a float/imaginary token from parsed components.
src/frontend/lexer/scan.rs:418
↓ 1 callersMethodmake_int_token
Create the appropriate token kind based on integer value, suffix, and base info. For hex/octal literals, C promotes: int -> unsigned int -> long -> un
src/frontend/lexer/scan.rs:494
↓ 1 callersFunctionmake_simple_func
()
src/passes/dce.rs:304
↓ 1 callersFunctionmake_simple_function
Helper to build a simple function with one local variable. int f() { int x = 42; return x; }
src/ir/mem2reg/promote.rs:831
↓ 1 callersFunctionmake_temp_path
Generate a unique temp file path with the given prefix and extension. The path includes the PID and an atomic counter to avoid collisions in parallel
src/common/temp_files.rs:26
↓ 1 callersFunctionmap_section_name
Input-to-output section name mapping. Maps input section names like `.text.foo` to their standard output section names like `.text`. Used by all link
src/backend/linker_common/section_map.rs:11
↓ 1 callersFunctionmarch_has_c_extension
Check if a -march= string includes the 'c' (compressed) extension. Handles both shorthand (rv64gc) and explicit (rv64imafdc_zicsr) formats.
src/backend/riscv/assembler/mod.rs:90
↓ 1 callersFunctionmark_plt_and_copy_symbols
Mark symbols that need PLT entries (undefined functions found in shared libs) and collect symbols that need COPY relocations (undefined data objects).
src/backend/riscv/linker/symbols.rs:143
↓ 1 callersFunctionmark_plt_got_needs
( inputs: &[InputObject], global_symbols: &mut HashMap<String, LinkerSymbol>, _is_static: bool, )
src/backend/i686/linker/symbols.rs:241
↓ 1 callersMethodmaybe_narrow_binop_result
(&mut self, dest: Value, op: &BinOp, common_ty: IrType)
src/ir/lowering/expr_ops.rs:308
↓ 1 callersMethodmaybe_narrow_call_result
Narrow call result if return type is smaller than the widened operation type. 128-bit return values are already correctly handled.
src/ir/lowering/expr_calls.rs:932
↓ 1 callersFunctionmember_resolves_undefined_generic
Check if an archive member defines any currently-undefined, non-dynamic symbol.
src/backend/linker_common/archive.rs:24
↓ 1 callersFunctionmemrchr
(needle: u8, haystack: &[u8])
src/backend/x86/codegen/peephole/types.rs:577
↓ 1 callersFunctionmerge_expression_tokens
Merge tokens that form arithmetic/bitwise expressions. When tokens are: `[889f, -, 888f]`, merge to `[889f-888f]`. When tokens are: `[889f, +, 888f]`
src/backend/asm_preprocess.rs:698
↓ 1 callersFunctionmerge_single_pred_blocks
Merge single-predecessor blocks into their predecessor. When block A ends with `Branch(B)` and B has exactly one predecessor (A), the two blocks can
src/passes/cfg_simplify.rs:745
↓ 1 callersFunctionmul_big
Multiply two big integers.
src/common/long_double.rs:502
↓ 1 callersFunctionmul_u128
Multiply two u128 values, returning (hi, lo) of the 256-bit result.
src/common/long_double.rs:2273
↓ 1 callersFunctionnarrow_binops_with_cast
Phase 4: Narrow BinOps that have an explicit narrowing Cast consumer. Finds `Cast(BinOp(widen(x), widen(y), I64), I64->T)` and replaces with `BinOp(x,
src/passes/narrow.rs:166
↓ 1 callersFunctionnarrow_binops_without_cast
Phase 5: Narrow I64 BinOps whose operands are all sub-64-bit values, even without an explicit narrowing Cast. Only safe for bitwise ops (And/Or/Xor) a
src/passes/narrow.rs:264
↓ 1 callersFunctionnarrow_cmps
Phase 6: Narrow Cmp instructions where both operands are widened from the same type. Only safe when the extension kind matches the comparison kind (si
src/passes/narrow.rs:372
↓ 1 callersMethodnarrow_from_op
Narrow a result from operation type back to the target type.
src/ir/lowering/expr_assign.rs:647
↓ 1 callersMethodnarrowed_to
Narrow a constant to match a target IR type. If the constant is wider than needed (e.g., I64 for an I32 slot), truncate it to the correct width. This
src/ir/constants.rs:579
↓ 1 callersMethodneeds_got_aarch64
Returns true if a symbol needs GOT indirection on AArch64. In PIC mode (-fPIC/-fpic/-shared), external symbols that may bind externally must use GOT-
src/backend/state.rs:423
↓ 1 callersMethodneeds_register_pair
Returns true if the given type requires a register pair for GP register constraints. On i686, 64-bit types (I64/U64) need two 32-bit registers to repr
src/backend/inline_asm.rs:166
↓ 1 callersMethodnested_designator_has_addr_fields
Check multi-level designated initializer for address fields.
src/ir/lowering/global_init.rs:1422
↓ 1 callersFunctionnext_non_nop
Find the next non-nop line after index `start`.
src/backend/i686/codegen/peephole.rs:1660
↓ 1 callersMethodoperand_reg
Get the physical register assigned to an operand (if it's a Value with a register).
src/backend/arm/codegen/emit.rs:220
↓ 1 callersFunctionoperands_equal
Check if two operands are structurally equal.
src/passes/constant_fold.rs:376
↓ 1 callersFunctionoptimize_tail_calls
Scan the assembly for tail call opportunities and convert them. Returns true if any changes were made.
src/backend/x86/codegen/peephole/passes/tail_call.rs:32
↓ 1 callersFunctionoutput_section_name
Map an input section name to its output section name. Returns None for sections that should be skipped (non-alloc, group sections). Handles RISC-V-sp
src/backend/riscv/linker/relocations.rs:418
↓ 1 callersMethodoverflow_result_type
Determine the result IrType and signedness for an overflow builtin.
src/ir/lowering/expr_builtins_overflow.rs:326
↓ 1 callersMethodpacks_complex_float_variadic
Returns true if the target packs _Complex float into a single 8-byte value for variadic function calls. On RISC-V, variadic float args go through GP r
src/ir/lowering/lower.rs:278
↓ 1 callersMethodparam_ctype
Build the CType for a function parameter, correctly handling function pointer parameters (both explicit syntax and typedef'd). For explicit function
src/ir/lowering/types_ctype.rs:130
↓ 1 callersMethodparse_address_space_attr
Parse address_space(__seg_gs|__seg_fs) attribute.
src/frontend/parser/parse.rs:885
↓ 1 callersMethodparse_alignment_expr
Parse the parenthesized argument of `aligned(expr)` in __attribute__. Expects the opening `(` to be the current token (not yet consumed). Parses and e
src/frontend/parser/parse.rs:1112
↓ 1 callersFunctionparse_alu_reg_reg
Try to parse an ALU instruction of the form "OPsuffix %src, %dst" where OP is add/sub/and/or/xor/cmp/test. Returns (op_name_with_suffix, dst_reg_str,
src/backend/x86/codegen/peephole/passes/memory_fold.rs:28
↓ 1 callersFunctionparse_archive
Parse a regular (.a) archive, returning ELF32 members.
src/backend/i686/linker/parse.rs:165
↓ 1 callersFunctionparse_asm
(text: &str)
src/backend/riscv/assembler/parser.rs:189
↓ 1 callersMethodparse_asm_clobbers
(&mut self)
src/frontend/parser/statements.rs:415
↓ 1 callersMethodparse_asm_goto_labels
Parse the goto labels section (fourth colon) of an asm goto statement. Labels are comma-separated identifiers: `asm goto("..." : : : : label1, label2)
src/frontend/parser/statements.rs:432
↓ 1 callersMethodparse_asm_string
(&mut self)
src/frontend/parser/statements.rs:351
↓ 1 callersFunctionparse_cie_fde_encoding
Parse a CIE to extract the FDE pointer encoding (R augmentation). Returns the encoding byte, or 0x00 (DW_EH_PE_absptr) if not found.
src/backend/linker_common/eh_frame.rs:188
↓ 1 callersMethodparse_cleanup_attr
Parse cleanup(func_name) attribute.
src/frontend/parser/parse.rs:818
↓ 1 callersMethodparse_cli_args
Parse GCC-compatible command-line arguments and populate driver fields. Returns `Ok(true)` if early exit was handled (query flags like -dumpmachine),
src/driver/cli.rs:21
↓ 1 callersFunctionparse_comm_directive
Parse `.comm name, size[, align]`.
src/backend/arm/assembler/parser.rs:2378
↓ 1 callersFunctionparse_comm_directive
Parse `.comm name, size, align`.
src/backend/x86/assembler/parser.rs:828
↓ 1 callersMethodparse_conditional_expr
(&mut self)
src/frontend/parser/expressions.rs:105
↓ 1 callersFunctionparse_decimal_digits
Parse a decimal float string into digits and decimal exponent. Returns None if the string represents zero. This is the shared front-end for both x87 a
src/common/long_double.rs:364
← previousnext →3,101–3,200 of 6,057, ranked by callers