MCPcopy Create free account

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

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

↓ 1 callersMethodset_no_jump_tables
Disable jump table emission (-fno-jump-tables). All switch statements use compare-and-branch chains instead of indirect jumps.
src/backend/x86/codegen/emit.rs:247
↓ 1 callersMethodset_no_jump_tables
Disable jump table emission (-fno-jump-tables).
src/backend/riscv/codegen/emit.rs:136
↓ 1 callersMethodset_no_jump_tables
(&mut self, enabled: bool)
src/backend/i686/codegen/emit.rs:140
↓ 1 callersMethodset_no_relax
Suppress linker relaxation (-mno-relax).
src/backend/riscv/codegen/emit.rs:146
↓ 1 callersMethodset_no_sse
Disable SSE (-mno-sse). Prevents emission of any SSE/XMM instructions.
src/backend/x86/codegen/emit.rs:252
↓ 1 callersMethodset_noinline
(&mut self, v: bool)
src/frontend/parser/parse.rs:185
↓ 1 callersMethodset_noinline
(&mut self, v: bool)
src/frontend/parser/ast.rs:99
↓ 1 callersMethodset_optimize
Define __OPTIMIZE__ and __OPTIMIZE_SIZE__ based on the optimization level. GCC defines __OPTIMIZE__ for any optimization level >= 1 (-O, -O1, -O2, -O
src/frontend/preprocessor/predefined_macros.rs:322
↓ 1 callersMethodset_patchable_function_entry
Set patchable function entry configuration (-fpatchable-function-entry=N,M).
src/backend/x86/codegen/emit.rs:230
↓ 1 callersMethodset_pic
Enable position-independent code generation.
src/backend/x86/codegen/emit.rs:215
↓ 1 callersMethodset_pic
Enable position-independent code generation (-fPIC/-fpie).
src/backend/riscv/codegen/emit.rs:141
↓ 1 callersMethodset_pic
(&mut self, pic: bool)
src/backend/i686/codegen/emit.rs:136
↓ 1 callersMethodset_riscv_abi
Override RISC-V preprocessor macros based on -mabi= and -march= flags. The kernel uses `-mabi=lp64` (soft-float ABI) and `-march=rv64imac...` (no F/D
src/frontend/preprocessor/predefined_macros.rs:694
↓ 1 callersMethodset_riscv_march
Override RISC-V extension macros based on -march= flag. The kernel uses -march=rv64imac... (no F/D extensions). When the march string doesn't contain
src/frontend/preprocessor/predefined_macros.rs:726
↓ 1 callersMethodset_source_manager
Set the source manager for span resolution and snippet display.
src/common/error.rs:482
↓ 1 callersMethodset_sse_macros
Define x86/x86_64 SIMD feature macros (__SSE__, __SSE2__, __MMX__, etc.). GCC/Clang always define these for x86_64 (SSE2 is baseline for the ISA). Fo
src/frontend/preprocessor/predefined_macros.rs:360
↓ 1 callersMethodset_strict_ansi
Define `__STRICT_ANSI__` for strict ISO C modes (`-std=c99`, `-std=c11`, etc.). GCC defines this macro when `-std=cXX` (non-GNU) modes are used, and m
src/frontend/preprocessor/predefined_macros.rs:293
↓ 1 callersFunctionset_target_long_double_is_f128
Set whether the target uses IEEE binary128 for long double (AArch64/RISC-V).
src/common/types.rs:37
↓ 1 callersFunctionset_target_ptr_size
Set the target pointer size for the current thread (4 for i686/ILP32, 8 for LP64). Must be called before any type size queries.
src/common/types.rs:22
↓ 1 callersMethodset_transparent_union
(&mut self, v: bool)
src/frontend/parser/parse.rs:188
↓ 1 callersMethodset_typedef
(&mut self, v: bool)
src/frontend/parser/parse.rs:172
↓ 1 callersMethodset_used
(&mut self, v: bool)
src/frontend/parser/parse.rs:182
↓ 1 callersMethodset_volatile
(&mut self, v: bool)
src/frontend/parser/parse.rs:178
↓ 1 callersMethodset_warning_config
Set the warning configuration (parsed from CLI flags).
src/common/error.rs:477
↓ 1 callersMethodset_werror
Promote a specific warning to error (-Werror=<name>).
src/common/error.rs:222
↓ 1 callersMethodshadow_static_for_scope
Remove a static local name, tracking the removal in the current scope frame.
src/ir/lowering/lower.rs:430
↓ 1 callersFunctionshift_mnemonic
(op: IrBinOp)
src/backend/i686/codegen/emit.rs:1024
↓ 1 callersFunctionshift_right_256_with_grs
Shift right a 256-bit value (hi:lo) by `shift` bits, extracting guard/round/sticky. Returns (shifted_lo_128, guard, round, sticky).
src/common/long_double.rs:2312
↓ 1 callersMethodshl
Shift left by n bits.
src/common/long_double.rs:108
↓ 1 callersFunctionshl_u128
Shift a u128 value left, returning (hi, lo) of the 256-bit result.
src/common/long_double.rs:2295
↓ 1 callersMethodshould_skip_global_declarator
Returns true if this declarator should be skipped (function prototypes, function typedefs, typeof-declared functions).
src/ir/lowering/global_decl.rs:151
↓ 1 callersFunctionshould_swap
(lhs: &VNOperand, rhs: &VNOperand)
src/passes/gvn.rs:673
↓ 1 callersFunctionsimplify_binop
( dest: Value, op: IrBinOp, lhs: &Operand, rhs: &Operand, ty: IrType, binop_defs: &[Op
src/passes/simplify.rs:786
↓ 1 callersFunctionsimplify_cast
Simplify a Cast instruction. Handles: - Cast from type T to same type T => Copy - Cast chain: Cast(Cast(x, A->B), B->C) optimizations - Cast of const
src/passes/simplify.rs:286
↓ 1 callersFunctionsimplify_cmp
Simplify a Cmp instruction. Handles: - Cmp(op, x, x) => constant (self-comparison: Eq/Sle/Sge/Ule/Uge => 1, others => 0) - Cmp(Ne, cmp_result, 0) =>
src/passes/simplify.rs:524
↓ 1 callersFunctionsimplify_gep
Simplify a GetElementPtr instruction. - GEP with constant zero offset => Copy of base pointer - GEP chain: GEP(GEP(base, c1), c2) => GEP(base, c1 + c
src/passes/simplify.rs:704
↓ 1 callersFunctionsimplify_math_call
Simplify calls to known math library functions. Optimizations: - pow(x, 2.0) / powf(x, 2.0f) => x * x (avoids expensive libm call) - pow(x, 0.0) =>
src/passes/simplify.rs:1569
↓ 1 callersFunctionsimplify_redundant_cond_branches
Convert `CondBranch { cond, true_label: X, false_label: X }` to `Branch(X)`. The condition is dead and will be cleaned up by DCE.
src/passes/cfg_simplify.rs:213
↓ 1 callersFunctionsimplify_trivial_phis
Simplify trivial phi nodes: phi nodes with exactly one incoming edge, or where all incoming values are identical, are replaced with Copy. This is cri
src/passes/cfg_simplify.rs:704
↓ 1 callersMethodsizeof_binop
Get the sizeof for a binary operation expression.
src/ir/lowering/expr_sizeof.rs:184
↓ 1 callersMethodsizeof_deref
Get the sizeof for a dereference expression.
src/ir/lowering/expr_sizeof.rs:75
↓ 1 callersMethodsizeof_expr
Compute sizeof for an expression via its CType. Special cases: string literals are arrays, not pointers, inside sizeof (C11 6.3.2.1p3: array-to-point
src/frontend/sema/const_eval.rs:903
↓ 1 callersMethodsizeof_identifier
Get the sizeof for an identifier expression.
src/ir/lowering/expr_sizeof.rs:20
↓ 1 callersMethodsizeof_subscript
Get the sizeof for an array subscript expression.
src/ir/lowering/expr_sizeof.rs:122
↓ 1 callersMethodsizeof_type_spec
Compute sizeof for a type specifier. Returns None if the type cannot be sized (e.g., typeof(expr) without expr type info).
src/frontend/sema/const_eval.rs:790
↓ 1 callersMethodskip_label_attributes
Skip optional GNU label attributes after a label colon. GNU C allows `label: __attribute__((unused));` to suppress unused-label warnings. We consume t
src/frontend/parser/parse.rs:1098
↓ 1 callersMethodskip_optional_paren_arg
Skip an optional parenthesized argument (consuming everything inside).
src/frontend/parser/parse.rs:808
↓ 1 callersMethodskip_paren_arg_bytes
Skip a parenthesized argument (byte-oriented).
src/frontend/preprocessor/expr_eval.rs:297
↓ 1 callersMethodskip_whitespace_and_comments
(&mut self)
src/frontend/lexer/scan.rs:76
↓ 1 callersFunctionsplit_field_on_whitespace
Split a single comma field on whitespace, respecting parenthesized groups and quoted strings.
src/backend/asm_preprocess.rs:590
↓ 1 callersFunctionsplit_first_word
Split a string into the first word and the rest. For preprocessor directives, '(' is also a word boundary so that `#if(expr)` is correctly parsed as k
src/frontend/preprocessor/text_processing.rs:286
↓ 1 callersFunctionsplit_label_offset
Split a label string like `"pa_tr_efer + 4"` or `"symbol-8"` into (symbol, addend). Returns the original string with addend 0 if no offset is found.
src/backend/i686/assembler/encoder/mod.rs:20
↓ 1 callersFunctionsplit_macro_args
Split macro arguments on commas and spaces, respecting parentheses. GAS allows both commas and spaces/tabs as macro argument separators. e.g., `base=
src/backend/x86/assembler/parser.rs:1984
↓ 1 callersFunctionsplit_mnemonic_operands
Split a line into mnemonic and operand string.
src/backend/x86/assembler/parser.rs:902
↓ 1 callersFunctionsplit_on_commas_raw
Split a string on top-level commas (outside parens and quotes).
src/backend/asm_preprocess.rs:538
↓ 1 callersFunctionsplit_operands
Split operand string by commas, respecting parentheses.
src/backend/x86/assembler/parser.rs:923
↓ 1 callersFunctionsplit_section_args
Split section directive args, respecting quoted strings.
src/backend/arm/assembler/parser.rs:2313
↓ 1 callersFunctionsplit_section_args
Split section directive args, respecting quoted strings.
src/backend/x86/assembler/parser.rs:755
↓ 1 callersFunctionsplit_skip_args
Split `.skip expr, fill` arguments, respecting parentheses. Returns the expression string and the fill byte (default 0).
src/backend/x86/assembler/parser.rs:1341
↓ 1 callersMethodsret_uses_dedicated_reg
Returns true if this architecture uses a dedicated register (not part of the normal argument sequence) for the sret pointer. AArch64 uses x8; x86-64,
src/backend/traits.rs:580
↓ 1 callersFunctionstarts_with_binary_operator
Check if a token starts with an operator character that could be a binary operator connecting it to the preceding token (e.g., `-888f` after `889f`).
src/backend/asm_preprocess.rs:679
↓ 1 callersMethodstmt_contains_default
Check if a statement is or contains a `default` label (handles nested case labels).
src/frontend/sema/analysis.rs:1231
↓ 1 callersMethodstmt_switch_outcome
Determine what a statement does in a switch context: return, break, or fall through.
src/frontend/sema/analysis.rs:1112
↓ 1 callersMethodstore_bitfield_split
Store a bitfield that spans across two storage units (packed bitfields). Splits the value into low and high parts and does two read-modify-write opera
src/ir/lowering/expr_assign.rs:275
↓ 1 callersMethodstore_instr_for_type_impl
(&self, ty: IrType)
src/backend/arm/codegen/prologue.rs:324
↓ 1 callersMethodstore_output_from_reg
(&mut self, op: &AsmOperand, ptr: &Value, _constraint: &str, all_output_regs: &[&str])
src/backend/arm/codegen/asm_emitter.rs:331
↓ 1 callersMethodstring_literal_to_global_init
Convert a string literal to a GlobalInit based on the target type context. When initializing an array, the string is inlined (as bytes, u32s, or u16s
src/ir/lowering/global_init.rs:304
↓ 1 callersFunctionstrip_comment
Convenience wrapper: strip line comment using RISC-V comment style.
src/backend/riscv/assembler/parser.rs:271
↓ 1 callersFunctionstrip_inline_comments
Strip inline block comments from a single line. Updates `in_block_comment` state for multi-line block comments. Also strips line comments (// ...).
src/frontend/preprocessor/includes.rs:180
↓ 1 callersFunctionstrip_line_comment
Strip a // comment from a directive line, but not inside string literals. Returns a `Cow<str>` to avoid allocation when no comment is found (the commo
src/frontend/preprocessor/text_processing.rs:263
↓ 1 callersFunctionstrip_outer_parens
Strip balanced outer parentheses from an expression. `(expr)` -> `expr`, `((expr))` -> `expr`, `(a) + (b)` -> unchanged.
src/backend/asm_preprocess.rs:1070
↓ 1 callersFunctionstrip_outer_parens
Strip balanced outer parentheses from an expression, recursively. e.g. "((foo) - .)" => "(foo) - ." => "foo - ." (inner parens on individual terms are
src/backend/arm/assembler/parser.rs:2442
↓ 1 callersFunctionstrip_outer_parens
Strip balanced outer parentheses from an expression. E.g. "((1b) - .)" -> "(1b) - ." -> "1b - ." (recursive).
src/backend/x86/assembler/parser.rs:1392
↓ 1 callersMethodstruct_or_union_to_ctype
Convert a struct or union TypeSpecifier to CType. `is_union` selects between struct and union semantics. `is_packed` indicates __attribute__((packed))
src/ir/lowering/types_ctype.rs:249
↓ 1 callersFunctionsub_shifted
Subtract divisor << shift from remainder (in place).
src/common/long_double.rs:318
↓ 1 callersMethodsubstitute_params
Substitute parameter names with argument values in macro body.
src/frontend/preprocessor/macro_defs.rs:1019
↓ 1 callersMethodsubstitute_template_line
(&self, line: &str, operands: &[AsmOperand], gcc_to_internal: &[usize], _operand_types: &[IrType], goto_labels
src/backend/arm/codegen/asm_emitter.rs:298
↓ 1 callersFunctionsuccessor_count
Returns the number of distinct successor block IDs for a block. Accounts for both terminator targets and InlineAsm goto_labels.
src/ir/mem2reg/phi_eliminate.rs:73
↓ 1 callersMethodswitch_has_default
Check if any item in a switch body contains a `default` label.
src/frontend/sema/analysis.rs:1219
↓ 1 callersFunctionsymbol_operand_mask
Determine which operand positions for a given instruction mnemonic must be parsed as symbols rather than registers. This prevents function/variable na
src/backend/riscv/assembler/parser.rs:795
↓ 1 callersMethodtake_macro_expansion_info
Take macro expansion metadata collected during preprocessing. This metadata maps preprocessed output line numbers to the macros that were expanded on
src/frontend/preprocessor/pipeline.rs:658
↓ 1 callersMethodtake_source_manager
Take ownership of the source manager (for passing to codegen for debug info).
src/common/error.rs:487
↓ 1 callersFunctiontemp_dir
Returns the temp directory, respecting $TMPDIR (via std::env::temp_dir()). On Unix, this checks $TMPDIR first, falling back to /tmp. On other platfor
src/common/temp_files.rs:18
↓ 1 callersFunctionterminator_targets
Get successor block IDs from a terminator.
src/backend/liveness.rs:917
↓ 1 callersFunctionthread_jump_chains
Thread jump chains: if a block branches to an empty forwarding block (no instructions, terminates with unconditional Branch), redirect to skip the int
src/passes/cfg_simplify.rs:406
↓ 1 callersMethodto_u64
Extract as u64 (integer constants only; floats return None).
src/ir/constants.rs:349
↓ 1 callersMethodtoken_to_binop
Map a token to a binary operator at the current precedence level, if applicable.
src/frontend/parser/expressions.rs:127
↓ 1 callersMethodtokenize
(&mut self)
src/frontend/lexer/scan.rs:27
↓ 1 callersFunctiontokenize_expr
Tokenize a preprocessor expression, operating on byte slices for performance. Avoids allocating Vec<char>; numbers are parsed directly from byte spans
src/frontend/preprocessor/conditionals.rs:277
↓ 1 callersFunctiontokenize_expr
(expr: &str)
src/backend/elf_writer_common.rs:208
↓ 1 callersFunctiontokenize_expr
Tokenize an expression string into ExprTokens.
src/backend/asm_expr.rs:43
↓ 1 callersMethodtop_n_bits
Extract the top N bits (up to 128), with the MSB at bit (N-1). Returns (top_val, bits_shifted) where the value is approximately top_val * 2^bits_shift
src/common/long_double.rs:181
↓ 1 callersFunctiontrace_value_to_global
Trace a Value back to find a GlobalAddr name + accumulated offset. Follow chains of: Copy(src) -> trace src, Load(ptr) -> Store(val, ptr) -> trace val
src/passes/inline.rs:681
↓ 1 callersMethodtrack_fptr_sig
(&mut self, declarator: &InitDeclarator, type_spec: &TypeSpecifier)
src/ir/lowering/stmt.rs:334
↓ 1 callersMethodtrap_instruction
(&self)
src/backend/arm/codegen/emit.rs:1750
↓ 1 callersMethodtry_address_of_compound_literal
Try to resolve an expression as `&(compound_literal)`, possibly wrapped in casts. If found, materializes the compound literal as an anonymous global a
src/ir/lowering/global_init.rs:235
↓ 1 callersMethodtry_brace_wrapped_string
Try to extract a brace-wrapped string literal: `{"hello"}` for char/wchar_t/char16_t arrays.
src/ir/lowering/global_init.rs:452
↓ 1 callersMethodtry_complex_return
Try returning a complex expression from a complex-returning function. Handles decomposition into register pairs or I64 packing.
src/ir/lowering/stmt_return.rs:230
↓ 1 callersMethodtry_emit_acc_immediate
Accumulator-based path: try immediate optimizations first. Returns true if handled.
src/backend/x86/codegen/emit.rs:1042
↓ 1 callersMethodtry_encode_avx_cmp_pseudo
Try to encode an AVX comparison pseudo-op (e.g. vcmpnleps -> vcmpps $6, src, vvvv, dst)
src/backend/x86/assembler/encoder/avx.rs:685
← previousnext →3,501–3,600 of 6,057, ranked by callers