MCPcopy Create free account

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

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

↓ 1 callersFunctionis_uninteresting_macro
Check if a macro name is a predefined/builtin macro that should not be shown in "in expansion of macro" diagnostic notes. These macros are expanded ub
src/common/error.rs:882
↓ 1 callersFunctionis_valid_aarch64_logical_immediate
Check whether a 64-bit value is a valid AArch64 logical immediate. AArch64 logical immediates are bitmask patterns encodable in the 13-bit N:immr:imm
src/backend/arm/codegen/asm_emitter.rs:473
↓ 1 callersFunctionis_valid_aarch64_logical_immediate_32
Check whether a 32-bit value is a valid AArch64 32-bit logical immediate. Used for the 'L' constraint (32-bit logical operations like AND w0, w1, #imm
src/backend/arm/codegen/asm_emitter.rs:434
↓ 1 callersMethodis_x86
Returns true if this is an x86 target directive (x86-64 or i686). Used to select x87 80-bit extended precision format for long double constants.
src/backend/common.rs:1091
↓ 1 callersMethodis_zero_expr
Check if an expression evaluates to 0 (integer literal 0 or cast of 0).
src/ir/lowering/const_eval.rs:460
↓ 1 callersFunctionis_zero_valued_constant
Check if a syntactically-constant expression evaluates to zero. Only call this after is_syntactically_constant returns true.
src/common/const_arith.rs:552
↓ 1 callersFunctionivsr_function
(func: &mut IrFunction)
src/passes/iv_strength_reduce.rs:72
↓ 1 callersMethodjoin_continued_lines
Join lines that end with backslash (line continuation). Also handles backslash followed by trailing whitespace before newline, matching GCC/Clang beha
src/frontend/preprocessor/text_processing.rs:212
↓ 1 callersFunctionjump_target
Extract the jump target label from a jump instruction line.
src/backend/riscv/codegen/peephole.rs:308
↓ 1 callersFunctionlabel_name
Extract the label name from a label line (strip trailing `:`)
src/backend/riscv/codegen/peephole.rs:323
↓ 1 callersMethodlayout_packed_bitfield
Layout a bitfield with pack(1) — contiguous bit stream, may span storage units.
src/common/types.rs:372
↓ 1 callersMethodlayout_regular_field
Layout a regular (non-bitfield) field.
src/common/types.rs:469
↓ 1 callersMethodlayout_standard_bitfield
Layout a standard (non-packed) bitfield — SysV ABI compatible.
src/common/types.rs:405
↓ 1 callersMethodlayout_zero_width_bitfield
Handle zero-width bitfield: force alignment to next storage unit boundary.
src/common/types.rs:357
↓ 1 callersMethodlex_binary_number
Lex a binary integer literal (0b/0B prefix).
src/frontend/lexer/scan.rs:279
↓ 1 callersMethodlex_char
(&mut self, start: usize)
src/frontend/lexer/scan.rs:772
↓ 1 callersMethodlex_char16_string
Lex a u"..." char16_t string literal. Same parsing as wide string but produces Char16StringLiteral token. The Rust String stores Unicode chars; the do
src/frontend/lexer/scan.rs:666
↓ 1 callersMethodlex_decimal_number
Lex a decimal integer or float literal.
src/frontend/lexer/scan.rs:329
↓ 1 callersMethodlex_hex_float
Lex a hex float literal: 0x<int_hex>.<frac_hex>p<+/->exp
src/frontend/lexer/scan.rs:204
↓ 1 callersMethodlex_hex_number
Lex a hexadecimal integer or hex float literal (0x/0X prefix).
src/frontend/lexer/scan.rs:173
↓ 1 callersMethodlex_identifier
(&mut self, start: usize)
src/frontend/lexer/scan.rs:892
↓ 1 callersMethodlex_number
(&mut self, start: usize)
src/frontend/lexer/scan.rs:152
↓ 1 callersMethodlex_octal_number
Try to lex an octal literal. Returns None if the token turns out to be decimal/float.
src/frontend/lexer/scan.rs:291
↓ 1 callersMethodlex_punctuation
(&mut self, start: usize)
src/frontend/lexer/scan.rs:1002
↓ 1 callersMethodlex_wide_char
(&mut self, start: usize)
src/frontend/lexer/scan.rs:719
↓ 1 callersMethodlex_wide_string
(&mut self, start: usize)
src/frontend/lexer/scan.rs:606
↓ 1 callersFunctionlicm_with_analysis
Run LICM using pre-computed CFG analysis (avoids redundant analysis when called from a pipeline that shares analysis across GVN, LICM, IVSR).
src/passes/licm.rs:43
↓ 1 callersFunctionline_references_reg_fast
(info: &LineInfo, reg: RegId)
src/backend/x86/codegen/peephole/passes/helpers.rs:24
↓ 1 callersMethodlink
Link object files into executable.
src/backend/mod.rs:374
↓ 1 callersFunctionlink_builtin_native
( arch: &DirectLdArchConfig, object_files: &[&str], output_path: &str, user_args: &[String],
src/backend/common.rs:688
↓ 1 callersFunctionlink_with_args
Link object files into an executable (or shared library), with additional user-provided linker args. When the `gcc_linker` Cargo feature is enabled,
src/backend/common.rs:194
↓ 1 callersFunctionlink_with_gcc
( config: &LinkerConfig, object_files: &[&str], output_path: &str, user_args: &[String], i
src/backend/common.rs:246
↓ 1 callersMethodload_dest_ptr
Load the destination pointer into the specified register.
src/backend/arm/codegen/variadic.rs:317
↓ 1 callersMethodload_func_ptr_variable
Load a function pointer from a local or global variable.
src/ir/lowering/expr_calls.rs:910
↓ 1 callersFunctionload_input_files
Load a single input file (ELF object, archive, or thin archive) into `input_objs`. Archives are saved to `inline_archive_paths` for later demand-drive
src/backend/riscv/linker/input.rs:15
↓ 1 callersFunctionload_inputs
Phase 2: Load input values into their assigned registers, handling x87 FPU stack ordering (st(1) before st(0) due to LIFO semantics).
src/backend/inline_asm.rs:950
↓ 1 callersFunctionload_libraries
( is_static: bool, _is_nostdlib: bool, needed_libs: &[&str], extra_libs: &[String], extra_
src/backend/i686/linker/input.rs:123
↓ 1 callersFunctionload_nonshared_archive
Load members from a `_nonshared.a` archive (referenced from linker scripts).
src/backend/riscv/linker/input.rs:181
↓ 1 callersFunctionload_shared_lib_inputs
Load objects for shared library linking. Loads all archive members eagerly (shared libs export everything, so we need all symbols).
src/backend/riscv/linker/input.rs:283
↓ 1 callersMethodload_va_list_ptr
Load the va_list pointer into the specified register.
src/backend/arm/codegen/variadic.rs:303
↓ 1 callersMethodload_vla_dim_value
Load the value of a VLA dimension variable (a function parameter).
src/ir/lowering/func_lowering.rs:670
↓ 1 callersMethodlookup_sema_const
Look up a pre-computed constant value from sema's ConstMap. Returns Some(IrConst) if sema successfully evaluated this expression at compile time durin
src/ir/lowering/const_eval.rs:30
↓ 1 callersFunctionlookup_version
Look up the GNU version info for a symbol at dynsym index `j`.
src/backend/i686/linker/dynsym.rs:178
↓ 1 callersMethodlower
(mut self, tu: &TranslationUnit)
src/ir/lowering/lower.rs:456
↓ 1 callersMethodlower_arithmetic_binop
(&mut self, op: &BinOp, lhs: &Expr, rhs: &Expr)
src/ir/lowering/expr_ops.rs:193
↓ 1 callersMethodlower_array_init
Lower an array initializer list. Dispatches based on element type: struct arrays, pointer arrays with relocations, vector arrays, multi-dimensional ar
src/ir/lowering/global_init.rs:511
↓ 1 callersMethodlower_array_init_list_dispatch
Dispatch array initializer list handling based on array kind.
src/ir/lowering/stmt_init.rs:626
↓ 1 callersMethodlower_array_init_recursive
Recursive helper for multi-dimensional array initialization. Processes each initializer item, recursing for nested braces and advancing the flat_index
src/ir/lowering/stmt.rs:934
↓ 1 callersMethodlower_array_of_complex_init
Array of complex elements initialization. Handles both 1D and multi-dimensional arrays of complex types.
src/ir/lowering/stmt_init.rs:919
↓ 1 callersMethodlower_array_of_structs_init
Array of structs initialization with designator support. Handles arbitrary dimensionality (1D, 2D, 3D, etc.) via recursive stride peeling through `low
src/ir/lowering/stmt_init.rs:714
↓ 1 callersMethodlower_array_subscript
(&mut self, expr: &Expr, base: &Expr, index: &Expr)
src/ir/lowering/expr_access.rs:873
↓ 1 callersMethodlower_assign
(&mut self, lhs: &Expr, rhs: &Expr)
src/ir/lowering/expr_assign.rs:22
↓ 1 callersMethodlower_binary_op
(&mut self, op: &BinOp, lhs: &Expr, rhs: &Expr)
src/ir/lowering/expr_ops.rs:30
↓ 1 callersMethodlower_break_stmt
(&mut self)
src/ir/lowering/stmt_control_flow.rs:166
↓ 1 callersMethodlower_bswap_intrinsic
Lower __builtin_bswap{16,32,64} - type determined by numeric suffix.
src/ir/lowering/expr_builtins_intrin.rs:97
↓ 1 callersMethodlower_builtin_fpclassify
Lower __builtin_fpclassify(nan_val, inf_val, norm_val, subnorm_val, zero_val, x). Uses arithmetic select: result = sum of (class_val[i] * is_class[i])
src/ir/lowering/expr_builtins_fpclass.rs:127
↓ 1 callersMethodlower_builtin_intrinsic
Lower a builtin intrinsic (the BuiltinKind::Intrinsic arm of try_lower_builtin_call).
src/ir/lowering/expr_builtins.rs:259
↓ 1 callersMethodlower_builtin_isfinite
__builtin_isfinite(x) -> 1 if finite. Finite: (bits & exp_only) != exp_only. For F128 (long double), delegates to libc __finitel.
src/ir/lowering/expr_builtins_fpclass.rs:257
↓ 1 callersMethodlower_builtin_isinf
__builtin_isinf(x) -> nonzero if +/-infinity. Inf: abs(bits) == exp_only. For F128 (long double), delegates to libc __isinfl.
src/ir/lowering/expr_builtins_fpclass.rs:240
↓ 1 callersMethodlower_builtin_isinf_sign
__builtin_isinf_sign(x) -> -1 if -inf, +1 if +inf, 0 otherwise. For F128 (long double), delegates to libc __isinfl and __signbitl.
src/ir/lowering/expr_builtins_fpclass.rs:317
↓ 1 callersMethodlower_builtin_isnan
__builtin_isnan(x) -> 1 if x is NaN. NaN: abs(bits) > exp_only. For F128 (long double), delegates to libc __isnanl for correct 80-bit/128-bit handling
src/ir/lowering/expr_builtins_fpclass.rs:223
↓ 1 callersMethodlower_builtin_isnormal
__builtin_isnormal(x) -> 1 if normal. Normal: exp != 0 AND exp != max. For F128 (long double), delegates to libc __fpclassifyl and compares to FP_NORM
src/ir/lowering/expr_builtins_fpclass.rs:274
↓ 1 callersMethodlower_builtin_signbit
__builtin_signbit(x) -> nonzero if sign bit set. For F128 (long double), delegates to libc __signbitl.
src/ir/lowering/expr_builtins_fpclass.rs:300
↓ 1 callersMethodlower_call_arguments
Lower function call arguments, applying implicit casts for parameter types and default argument promotions for variadic args. Returns (arg_vals, arg_t
src/ir/lowering/expr_calls.rs:426
↓ 1 callersMethodlower_case_range_stmt
(&mut self, low_expr: &Expr, high_expr: &Expr, stmt: &Stmt)
src/ir/lowering/stmt_switch.rs:212
↓ 1 callersMethodlower_case_stmt
(&mut self, expr: &Expr, stmt: &Stmt)
src/ir/lowering/stmt_switch.rs:200
↓ 1 callersMethodlower_cast
(&mut self, target_type: &TypeSpecifier, inner: &Expr)
src/ir/lowering/expr_access.rs:36
↓ 1 callersMethodlower_char16_string_literal
(&mut self, s: &str)
src/ir/lowering/expr.rs:218
↓ 1 callersMethodlower_clrsb_intrinsic
Lower __builtin_clrsb{,l,ll}(x) - count leading redundant sign bits. Computes: clz(x ^ negate(x >>> (bits-1))) - 1 Uses logical shift + negate to crea
src/ir/lowering/expr_builtins_intrin.rs:140
↓ 1 callersMethodlower_complex_array_init
Lower an array of complex types: `_Complex double arr[] = { ... }`.
src/ir/lowering/global_init.rs:827
↓ 1 callersMethodlower_complex_assign
Lower assignment to a complex variable.
src/ir/lowering/complex.rs:565
↓ 1 callersMethodlower_complex_binary_op
(&mut self, op: &BinOp, lhs: &Expr, rhs: &Expr, lhs_ct: &CType, rhs_ct: &CType)
src/ir/lowering/expr_ops.rs:110
↓ 1 callersMethodlower_complex_comparison
Lower complex equality/inequality comparison. Two complex numbers are equal iff both real and imaginary parts are equal.
src/ir/lowering/complex.rs:696
↓ 1 callersMethodlower_complex_compound_assign
Complex compound assignment (z += w, z -= w, z *= w, z /= w).
src/ir/lowering/expr_assign.rs:456
↓ 1 callersMethodlower_complex_construct
Lower __builtin_complex(real, imag): construct a complex value on the stack.
src/ir/lowering/expr_builtins.rs:668
↓ 1 callersMethodlower_complex_init_list
Complex initializer list: `_Complex double z = {real, imag}`
src/ir/lowering/stmt_init.rs:581
↓ 1 callersMethodlower_complex_init_recursive
Recursive helper for multi-dimensional complex array initialization. Flattens nested brace initializers into flat element indices.
src/ir/lowering/stmt_init.rs:933
↓ 1 callersMethodlower_complex_neg
Lower complex negation: -(a+bi) = (-a) + (-b)i
src/ir/lowering/complex.rs:329
↓ 1 callersMethodlower_complex_var_init
Complex variable initialization: `_Complex double z = expr;`
src/ir/lowering/stmt_init.rs:498
↓ 1 callersMethodlower_compound_assign
(&mut self, op: &BinOp, lhs: &Expr, rhs: &Expr)
src/ir/lowering/expr_assign.rs:428
↓ 1 callersMethodlower_compound_literal
(&mut self, type_spec: &TypeSpecifier, init: &Initializer)
src/ir/lowering/expr_access.rs:240
↓ 1 callersMethodlower_compound_literal_init
Lower a compound literal used directly as an initializer value.
src/ir/lowering/global_init.rs:343
↓ 1 callersMethodlower_conditional
(&mut self, cond: &Expr, then_expr: &Expr, else_expr: &Expr)
src/ir/lowering/expr_ops.rs:435
↓ 1 callersMethodlower_constant_p
Lower __builtin_constant_p(expr): 1 if compile-time constant, 0 otherwise. Per GCC semantics, the argument is NOT evaluated (no side effects). In inli
src/ir/lowering/expr_builtins.rs:637
↓ 1 callersMethodlower_continue_stmt
(&mut self)
src/ir/lowering/stmt_control_flow.rs:180
↓ 1 callersMethodlower_declarator_init
(&mut self, decl: &Declaration, declarator: &InitDeclarator, da: &DeclAnalysis)
src/ir/lowering/global_decl.rs:295
↓ 1 callersMethodlower_default_stmt
(&mut self, stmt: &Stmt)
src/ir/lowering/stmt_switch.rs:224
↓ 1 callersMethodlower_deref
(&mut self, inner: &Expr)
src/ir/lowering/expr_access.rs:817
↓ 1 callersMethodlower_do_while_stmt
(&mut self, body: &Stmt, cond: &Expr)
src/ir/lowering/stmt_control_flow.rs:138
↓ 1 callersMethodlower_extern_decl
Handle extern declarations inside function bodies. They reference a global symbol, not a local variable.
src/ir/lowering/stmt_init.rs:31
↓ 1 callersMethodlower_fallback_array
Fallback: emit all items as an array of constants.
src/ir/lowering/global_init.rs:489
↓ 1 callersMethodlower_ffs_intrinsic
Lower __builtin_ffs/__builtin_ffsl/__builtin_ffsll. ffs(x) returns 0 if x == 0, otherwise (ctz(x) + 1). Synthesized as: select(x == 0, 0, ctz(x) + 1)
src/ir/lowering/expr_builtins_intrin.rs:51
↓ 1 callersMethodlower_for_stmt
( &mut self, init: &Option<Box<ForInit>>, cond: &Option<Expr>, inc: &Option<Ex
src/ir/lowering/stmt_control_flow.rs:69
↓ 1 callersMethodlower_fortify_chk
Lower __builtin___X_chk fortification builtins by forwarding all arguments to the glibc __X_chk runtime function (e.g., __builtin___snprintf_chk -> __
src/ir/lowering/expr_builtins.rs:474
↓ 1 callersMethodlower_fp_compare
Lower __builtin_is{greater,less,unordered,...} float comparison builtins. Promotes operands to the widest float type, then emits the appropriate compa
src/ir/lowering/expr_builtins.rs:545
↓ 1 callersMethodlower_function
Lower a function definition to IR. Orchestrates the function lowering pipeline: 1. Set up return type (handling sret, two-reg, complex ABI overrides)
src/ir/lowering/func_lowering.rs:49
↓ 1 callersMethodlower_function_call
(&mut self, func: &Expr, args: &[Expr])
src/ir/lowering/expr_calls.rs:87
↓ 1 callersMethodlower_generic_selection
(&mut self, controlling: &Expr, associations: &[GenericAssociation])
src/ir/lowering/expr_access.rs:486
↓ 1 callersMethodlower_global_decl
(&mut self, decl: &Declaration)
src/ir/lowering/global_decl.rs:30
↓ 1 callersMethodlower_global_init_expr
Lower an expression initializer: scalar constants, string literals, compound literals, address expressions, and label differences.
src/ir/lowering/global_init.rs:79
← previousnext →3,001–3,100 of 6,057, ranked by callers