MCPcopy Create free account

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

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

↓ 1 callersFunctiongp_store_for_type
Select the correct RISC-V store instruction based on the operand's IR type. On RV64, GP registers are always 64-bit, but sub-64-bit types must use nar
src/backend/riscv/codegen/asm_emitter.rs:29
↓ 1 callersFunctiongsf_handle_label
( store: &LineStore, infos: &[LineInfo], i: usize, targets: &JumpTargets, slot_entries: &mut Vec<S
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:220
↓ 1 callersFunctiongsf_handle_load
( store: &mut LineStore, infos: &mut [LineInfo], i: usize, load_reg: RegId, load_offset: i32, load_siz
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:255
↓ 1 callersFunctiongsf_handle_other
( store: &LineStore, infos: &[LineInfo], i: usize, dest_reg: RegId, slot_entries: &mut Vec<SlotEntry>,
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:288
↓ 1 callersFunctiongsf_handle_store
( reg: RegId, offset: i32, size: MoveSize, slot_entries: &mut Vec<SlotEntry>, reg_offsets: &mut [Small
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:237
↓ 1 callersFunctiongsf_invalidate_overlapping
Invalidate slot mappings whose byte range overlaps [store_off, store_off + store_size).
src/backend/riscv/codegen/peephole.rs:712
↓ 1 callersFunctiongvn_dfs
Recursive DFS over the dominator tree for GVN. Processes block_idx, then recurses into dominated children. Uses rollback logs to restore state on back
src/passes/gvn.rs:422
↓ 1 callersMethodhandle_complex_return
Handle complex return types (ComplexFloat, ComplexDouble, ComplexLongDouble). Returns Some(result) if the return was complex, None otherwise. Note: on
src/ir/lowering/expr_calls.rs:341
↓ 1 callersMethodhandle_define
(&mut self, rest: &str)
src/frontend/preprocessor/pipeline.rs:888
↓ 1 callersMethodhandle_elif
(&mut self, expr: &str)
src/frontend/preprocessor/pipeline.rs:922
↓ 1 callersMethodhandle_else
Handle #else.
src/frontend/preprocessor/conditionals.rs:69
↓ 1 callersMethodhandle_endif
Handle #endif.
src/frontend/preprocessor/conditionals.rs:81
↓ 1 callersMethodhandle_global_redeclaration
Handle tentative definitions and re-declarations. Returns whether to skip or proceed (with prior weak flag preserved).
src/ir/lowering/global_decl.rs:236
↓ 1 callersMethodhandle_if
(&mut self, expr: &str)
src/frontend/preprocessor/pipeline.rs:908
↓ 1 callersMethodhandle_include_next
Handle #include_next directive (GCC extension). Searches for the header starting from the next include path after the one that contained the current f
src/frontend/preprocessor/includes.rs:451
↓ 1 callersMethodhandle_kr_float_promotion
Handle K&R default argument promotions: narrow promoted params back to declared types. float->double promotion: narrow double back to float. char/shor
src/ir/lowering/func_lowering.rs:441
↓ 1 callersMethodhandle_pragma
(&mut self, rest: &str)
src/frontend/preprocessor/pragmas.rs:9
↓ 1 callersMethodhandle_pragma_gcc_visibility
Handle #pragma GCC visibility push(hidden|default|protected|internal) / pop. Emits synthetic tokens for the parser to track default visibility.
src/frontend/preprocessor/pragmas.rs:69
↓ 1 callersMethodhandle_pragma_pack
Handle #pragma pack directives and emit synthetic tokens for the parser. Supported forms: #pragma pack(N) - set alignment to N #pragma pack()
src/frontend/preprocessor/pragmas.rs:172
↓ 1 callersMethodhandle_pragma_pop_macro
Handle #pragma pop_macro("name") - restore the previously saved definition.
src/frontend/preprocessor/pragmas.rs:101
↓ 1 callersMethodhandle_pragma_push_macro
Handle #pragma push_macro("name") - save the current definition of macro.
src/frontend/preprocessor/pragmas.rs:90
↓ 1 callersMethodhandle_pragma_redefine_extname
Handle #pragma redefine_extname old new Redirects external symbol 'old' to 'new' (non-weak alias).
src/frontend/preprocessor/pragmas.rs:155
↓ 1 callersMethodhandle_pragma_weak
Handle #pragma weak directives. Forms: #pragma weak symbol - mark symbol as weak #pragma weak symbol = target - symbol becomes a weak alias fo
src/frontend/preprocessor/pragmas.rs:133
↓ 1 callersMethodhandle_stringify_and_paste
Handle # (stringify) and ## (token paste) operators. Returns `Cow::Borrowed` when the body has no `#` (the common case), avoiding a String allocation.
src/frontend/preprocessor/macro_defs.rs:823
↓ 1 callersMethodhandle_undef
(&mut self, rest: &str)
src/frontend/preprocessor/pipeline.rs:894
↓ 1 callersFunctionhas_contiguous_ones
Check if the lowest `size` bits of `element` contain a contiguous run of set bits (possibly rotated). A contiguous-rotated pattern means there's at mo
src/backend/arm/codegen/asm_emitter.rs:513
↓ 1 callersFunctionhas_indirect_memory_access
Check if a line has indirect memory access (pointer dereference through a register).
src/backend/i686/codegen/peephole.rs:242
↓ 1 callersMethodhas_input_files
Whether the driver has any input files to process.
src/driver/pipeline.rs:309
↓ 1 callersFunctionhas_whole_word
Returns `true` if `text` contains `word` at a word boundary.
src/backend/peephole_common.rs:52
↓ 1 callersFunctioni128_to_f128_bytes
Convert a signed i128 to f128 bytes.
src/common/long_double.rs:1000
↓ 1 callersFunctioni64_to_f128_bytes
Convert a signed i64 to f128 bytes with full precision. f128 has 112-bit mantissa, so all i64 values are representable exactly.
src/common/long_double.rs:943
↓ 1 callersFunctionif_convert_once
Single pass of if-conversion. Returns number of diamonds converted.
src/passes/if_convert.rs:71
↓ 1 callersMethodimplicit_library_paths
Return the implicit library search directories for this target. This is used by the driver to emit `LIBRARY_PATH=...` during verbose linking, which CM
src/backend/mod.rs:156
↓ 1 callersFunctionimplicit_reg_use
Check if an instruction implicitly uses a register (not mentioned in text).
src/backend/i686/codegen/peephole.rs:314
↓ 1 callersMethodinc_dec_step_and_type
(&self, ty: IrType, expr: &Expr)
src/ir/lowering/expr_ops.rs:822
↓ 1 callersMethodinfer_binop_ctype
Infer the CType of a binary operation. Evaluates each operand's type at most once to avoid exponential blowup on deeply nested expression chains like
src/frontend/sema/type_checker.rs:351
↓ 1 callersMethodinfer_call_return_ctype
Infer the return CType of a function call.
src/frontend/sema/type_checker.rs:431
↓ 1 callersMethodinfer_expr_ctype_with_scope
Infer the CType of an expression using a supplementary local scope for identifiers not found in the symbol table. Handles common typeof patterns (iden
src/frontend/sema/type_checker.rs:931
↓ 1 callersMethodinfer_generic_selection_ctype
Resolve a _Generic selection based on the controlling expression's type.
src/frontend/sema/type_checker.rs:506
↓ 1 callersFunctioninfer_suffix
Infer the AT&T size suffix for an unsuffixed mnemonic from its operands. Hand-written assembly (e.g., musl's .s files) often omits the size suffix wh
src/backend/x86/assembler/encoder/registers.rs:170
↓ 1 callersFunctioninit_contains_addr_expr
Check if an initializer item contains an address expression or string literal. Used when `is_multidim_char_array` is true to suppress treating string
src/ir/lowering/global_init_helpers.rs:87
↓ 1 callersFunctioninit_contains_string_literal
Check if an initializer item contains a string literal anywhere (including nested lists).
src/ir/lowering/global_init_helpers.rs:73
↓ 1 callersMethodinject_builtin_macros_for_header
Inject compiler-builtin macros for well-known standard headers. These are always injected regardless of whether the real header is found, because they
src/frontend/preprocessor/includes.rs:727
↓ 1 callersMethodinsert_const_local_scoped
Insert a const local value, tracking the change in the current scope frame.
src/ir/lowering/lower.rs:450
↓ 1 callersMethodinsert_enum_scoped
Insert an enum constant, tracking the change in the current scope frame.
src/frontend/sema/type_context.rs:422
↓ 1 callersMethodinsert_enum_scoped
Insert an enum constant, tracking the change in the current scope frame.
src/ir/lowering/lower.rs:440
↓ 1 callersMethodinsert_static_local_scoped
Insert a static local name, tracking the change in the current scope frame.
src/ir/lowering/lower.rs:445
↓ 1 callersMethodinsert_typedef_alignment_scoped
Insert a typedef alignment, tracking the change in the current scope frame so it can be undone on scope exit.
src/frontend/sema/type_context.rs:461
↓ 1 callersMethodinsert_typedef_scoped
Insert a typedef, tracking the change in the current scope frame so it can be undone on scope exit.
src/frontend/sema/type_context.rs:448
↓ 1 callersMethodinsert_vla_typedef_size_scoped
Insert a VLA typedef runtime size, tracking for scope management.
src/ir/lowering/func_state.rs:250
↓ 1 callersFunctioninstruction_modifies_reg_id
(info: &LineInfo, reg_id: RegId)
src/backend/x86/codegen/peephole/passes/push_pop.rs:85
↓ 1 callersFunctioninstruction_writes_to
Check if an instruction writes to a specific register as its destination.
src/backend/x86/codegen/peephole/types.rs:896
↓ 1 callersFunctionintersect
Intersect two dominators using RPO numbering (Cooper-Harvey-Kennedy).
src/ir/analysis.rs:218
↓ 1 callersMethodinto_result
Get the analysis results (consumed after analysis).
src/frontend/sema/analysis.rs:182
↓ 1 callersMethodinto_result
Classify non-escaped allocas into single-block and dead.
src/backend/stack_layout/alloca_coalescing.rs:208
↓ 1 callersMethodinvalidate_ctype_cache_scoped_from_ref
Invalidate a ctype_cache entry from a &self context, tracking the change in the current scope frame so it can be restored on scope exit.
src/frontend/sema/type_context.rs:505
↓ 1 callersFunctioninvert_condition
Invert a condition code.
src/backend/arm/codegen/peephole.rs:379
↓ 1 callersFunctioninvolves_i128_or_f128
Check if an instruction involves I128/U128/F128 types in any operand position. These use emit_load_acc_pair / emit_store_acc_pair which bypass the nor
src/backend/stack_layout/copy_coalescing.rs:255
↓ 1 callersMethodir_type_for_elem_size
Map an element size in bytes to an appropriate IrType.
src/ir/lowering/types.rs:894
↓ 1 callersFunctionis_acc_preserving_producer
Check if an instruction is an "acc-preserving" producer: after execution, the accumulator register cache still holds the result value. Only these inst
src/backend/stack_layout/copy_coalescing.rs:238
↓ 1 callersMethodis_arm
Returns true if this is the AArch64 target directive. AArch64 stores full IEEE binary128 long doubles in memory (allocas and globals).
src/backend/common.rs:1108
↓ 1 callersFunctionis_atomic_builtin
Check if a name is an atomic/sync builtin handled by the IR lowering code. These are dispatched by name pattern in try_lower_atomic_builtin() and clas
src/frontend/sema/builtins.rs:672
↓ 1 callersFunctionis_block_start
(trimmed: &str)
src/backend/asm_preprocess.rs:206
↓ 1 callersFunctionis_block_start
(trimmed: &str)
src/backend/arm/assembler/parser.rs:212
↓ 1 callersMethodis_case_label
Check if a statement is a case/default label.
src/frontend/sema/analysis.rs:1214
↓ 1 callersFunctionis_conditional_jump
Check if a line is a conditional jump instruction. Uses byte-level dispatch on the second character to avoid 18 `starts_with` calls.
src/backend/x86/codegen/peephole/types.rs:848
↓ 1 callersFunctionis_conditional_jump
(s: &str)
src/backend/i686/codegen/peephole.rs:522
↓ 1 callersMethodis_enabled
Check if a warning of the given kind should be emitted at all.
src/common/error.rs:234
↓ 1 callersMethodis_eof
(&self)
src/frontend/lexer/token.rs:194
↓ 1 callersMethodis_error
Check if a warning of the given kind should be promoted to an error.
src/common/error.rs:239
↓ 1 callersFunctionis_expression_operator
Check if a token looks like an arithmetic/bitwise operator that connects expression parts in GAS macro arguments.
src/backend/asm_preprocess.rs:647
↓ 1 callersFunctionis_fence_arg
(s: &str)
src/backend/riscv/assembler/parser.rs:1004
↓ 1 callersFunctionis_forwardable_store
Check if a Store instruction is eligible for store-to-load forwarding. Same restrictions as Load CSE: no segment overrides, no float/long-double/i128
src/passes/gvn.rs:481
↓ 1 callersMethodis_global
(&self)
src/backend/linker_common/types.rs:45
↓ 1 callersFunctionis_hoistable
Check if an instruction is safe to hoist (pure, no side effects, not a phi). Division and remainder can trap with SIGFPE on divide-by-zero, so they mu
src/passes/licm.rs:76
↓ 1 callersFunctionis_integer_constant_expr_zero
Check if an expression is an integer constant expression that evaluates to 0. An ICE can only contain literals, sizeof, alignof, enum constants, and o
src/common/const_arith.rs:494
↓ 1 callersMethodis_line_marker
Check if the current position is at a GCC-style line marker. A line marker is `# <digit>` at the start of a line (i.e., the '#' is either at position
src/frontend/lexer/scan.rs:127
↓ 1 callersMethodis_load
(&self)
src/passes/gvn.rs:50
↓ 1 callersFunctionis_load_hoistable
Check if a Load instruction is safe to hoist from a loop. A load is safe to hoist if: 1. Its pointer operand is loop-invariant 2. The memory it reads
src/passes/licm.rs:504
↓ 1 callersMethodis_local_symbol
(&self, name: &str)
src/backend/elf_writer_common.rs:1602
↓ 1 callersFunctionis_loop_invariant
Check if a value is loop-invariant (defined outside the loop).
src/passes/iv_strength_reduce.rs:643
↓ 1 callersFunctionis_positive_zero
Check if a float operand is positive zero (+0.0), using the bit pattern. Returns false for -0.0, non-zero values, and non-float types.
src/passes/simplify.rs:1100
↓ 1 callersMethodis_push
(self)
src/backend/x86/codegen/peephole/types.rs:170
↓ 1 callersFunctionis_read_modify_write
Check if an x86 instruction is a read-modify-write for its destination register. For most two-operand instructions like `addq %src, %dst`, the destina
src/backend/x86/codegen/peephole/passes/helpers.rs:248
↓ 1 callersFunctionis_repeating_pattern
Check if `value` is composed of `element` repeated to fill 64 bits.
src/backend/arm/codegen/asm_emitter.rs:500
↓ 1 callersFunctionis_returns_twice_call
Return true if the instruction is a call to setjmp, _setjmp, sigsetjmp, or __sigsetjmp. These functions "return twice": once normally (returning 0) an
src/backend/liveness.rs:940
↓ 1 callersMethodis_riscv
Returns true if this is the RISC-V target directive. RISC-V stores full IEEE binary128 long doubles in memory (allocas and globals).
src/backend/common.rs:1102
↓ 1 callersFunctionis_rounding_mode
(s: &str)
src/backend/riscv/assembler/parser.rs:1013
↓ 1 callersFunctionis_safe_sole_consumer
Check if value_id is the sole Operand loaded by the given instruction, with guaranteed loading order (no other operand loaded before it). Only single
src/backend/stack_layout/copy_coalescing.rs:284
↓ 1 callersFunctionis_self_move_fast
(sb: &[u8])
src/backend/x86/codegen/peephole/types.rs:383
↓ 1 callersFunctionis_shift_or_rotate
Check if an instruction is a shift/rotate that implicitly uses %cl.
src/backend/x86/codegen/peephole/passes/helpers.rs:123
↓ 1 callersMethodis_skippable_function
Returns true if a function definition can be skipped when unreferenced. This mirrors the skip logic in `lower()` — static, static inline, extern inlin
src/ir/lowering/ref_collection.rs:30
↓ 1 callersFunctionis_sole_operand_of_terminator
Check if value_id is the sole operand of a block terminator.
src/backend/stack_layout/copy_coalescing.rs:302
↓ 1 callersMethodis_struct_key_shadowed
Check if a struct key is currently shadowed by an inner scope redefinition. Returns true if any scope frame has saved a previous layout for this key,
src/frontend/sema/type_context.rs:357
↓ 1 callersFunctionis_syntactically_constant
Check if an expression is syntactically constant (contains no variable references, function calls, or other non-constant elements). This is a conserva
src/common/const_arith.rs:506
↓ 1 callersFunctionis_tail_call_candidate
Check if the instructions after a call at position `call_idx` form a pure epilogue sequence ending in `ret`. Returns the index of the `ret` if so. Th
src/backend/x86/codegen/peephole/passes/tail_call.rs:143
↓ 1 callersMethodis_transparent_union
(&self)
src/frontend/parser/ast.rs:245
↓ 1 callersMethodis_type_pointer
Check if a TypeSpecifier resolves to a pointer type (through typedefs).
src/ir/lowering/types.rs:87
↓ 1 callersMethodis_type_spec_long_double
Check if a TypeSpecifier resolves to long double.
src/ir/lowering/expr_types.rs:72
↓ 1 callersMethodis_typedef_function_pointer
Check if a typedef name refers to a function pointer type. This handles typedefs like `typedef void *(*lua_Alloc)(void *, ...)`.
src/ir/lowering/types_ctype.rs:201
← previousnext →2,901–3,000 of 6,057, ranked by callers