MCPcopy Create free account

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

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

↓ 2 callersMethodset_symbol_type
Record .type for a symbol (STT_FUNC, STT_OBJECT, etc.).
src/backend/elf/writer_base.rs:389
↓ 2 callersMethodset_track_expansions
Enable or disable macro expansion tracking. When enabled, expand_line_reuse() records which macros were expanded, retrievable via take_expanded_macros
src/frontend/preprocessor/macro_defs.rs:210
↓ 2 callersMethodset_weak
(&mut self, v: bool)
src/frontend/parser/parse.rs:181
↓ 2 callersMethodset_weak
Record .weak for a symbol.
src/backend/elf/writer_base.rs:379
↓ 2 callersMethodsetup_memory_fallback
Set up a memory operand for a register-to-memory fallback (e.g., "g" constraint on i686 when all GP registers are exhausted). Unlike `setup_operand_me
src/backend/inline_asm.rs:158
↓ 2 callersMethodsetup_operand_metadata
(&self, op: &mut AsmOperand, val: &Operand, _is_output: bool)
src/backend/arm/codegen/asm_emitter.rs:101
↓ 2 callersMethodshift_offsets_after
Shift all labels, relocations, jumps, alignment markers, deferred skips, and deferred byte diffs in a section after an insertion or removal at `at_off
src/backend/elf_writer_common.rs:1557
↓ 2 callersFunctionshifted_limb
Get limb `i` of (divisor << shift)
src/common/long_double.rs:303
↓ 2 callersMethodsib
Encode SIB byte.
src/backend/i686/assembler/encoder/core.rs:14
↓ 2 callersMethodsizeof_member_access
Get the sizeof for a member access expression.
src/ir/lowering/expr_sizeof.rs:166
↓ 2 callersFunctionspans_any_call
Check whether a live interval spans any function call point. Uses binary search since call_points is sorted by program point.
src/backend/regalloc.rs:490
↓ 2 callersFunctionsplit_macro_args
Split macro invocation arguments, matching GNU as behavior. GAS treats both commas and whitespace as argument separators. Specifically: 1. Split on c
src/backend/asm_preprocess.rs:514
↓ 2 callersMethodstate
(&mut self)
src/backend/i686/codegen/emit.rs:1252
↓ 2 callersMethodstmt_can_fall_through
Check whether a statement can fall through (i.e., control can reach the point immediately after this statement without a return/goto/diverge).
src/frontend/sema/analysis.rs:941
↓ 2 callersFunctionstringify_arg
Stringify a macro argument per C11 6.10.3.2. Operates on bytes to avoid Vec<char> allocation.
src/frontend/preprocessor/macro_defs.rs:1229
↓ 2 callersFunctionstrip_mov_prefix
Strip a `mov*` prefix from an instruction, returning the remainder and size. Handles movq, movl, movw, movb, and optionally movslq (for load parsing).
src/backend/x86/codegen/peephole/types.rs:612
↓ 2 callersMethodstruct_layout_key
Compute a layout key for a struct/union.
src/ir/lowering/structs.rs:216
↓ 2 callersMethodsubscript_result_is_array
Check if the result of an array subscript is still a sub-array (not a scalar). For int a[2][3]: a[i] results in a sub-array (int[3]), a[i][j] is a sca
src/ir/lowering/lvalue.rs:562
↓ 2 callersFunctionsubstitute_goto_labels
Substitute `%l[name]` and `%lN` goto label references in an already-substituted line. In GCC asm goto, `%l[name]` resolves to the assembly label for t
src/backend/inline_asm.rs:1011
↓ 2 callersFunctionsubstitute_params
Substitute macro parameters in body lines. Handles both positional and named arguments (e.g., `shift=1`). Falls back to default values when arguments
src/backend/arm/assembler/parser.rs:677
↓ 2 callersFunctionswap_cmp_op
Swap a comparison operator (reverse operand order).
src/passes/simplify.rs:498
↓ 2 callersMethodswitch_can_fall_through
Check whether a switch statement can fall through to the next statement. A switch cannot fall through if: 1. It has a `default` label (so all values
src/frontend/sema/analysis.rs:1022
↓ 2 callersMethodswitch_section
(&mut self, dir: &SectionDirective)
src/backend/elf_writer_common.rs:364
↓ 2 callersFunctionsysv_hash
Compute the SysV ELF hash of a symbol name.
src/backend/linker_common/hash.rs:16
↓ 2 callersMethodtake_diagnostics
Take the diagnostic engine back from the parser (transfers ownership). The driver uses this to continue using the same engine across phases.
src/frontend/parser/parse.rs:316
↓ 2 callersMethodtake_expanded_macros
Take the list of macro names expanded during the last expand_line_reuse() call. Returns an empty Vec if tracking is disabled or no macros were expande
src/frontend/preprocessor/macro_defs.rs:216
↓ 2 callersFunctiontarget_long_double_is_f128
Whether the target uses IEEE binary128 for long double. True for AArch64/RISC-V, false for x86/i686 (x87 80-bit).
src/common/types.rs:43
↓ 2 callersMethodto_u32
Extract as u32 (integer constants only).
src/ir/constants.rs:367
↓ 2 callersFunctiontopological_sort_instructions
Topologically sort instructions so that definitions come before uses. This ensures SSA correctness in the preheader.
src/passes/licm.rs:838
↓ 2 callersMethodtriple
Return the GCC-style target triple for this architecture. Used by configure scripts (via -dumpmachine) to detect the target.
src/backend/mod.rs:132
↓ 2 callersFunctiontruncate_and_extend_bits
Evaluate raw u64 bit truncation and sign extension for a cast chain. Given raw bits from a source value, truncates to `target_width` bits and optiona
src/common/const_arith.rs:581
↓ 2 callersFunctiontry_fold_with_map
Try to fold a single instruction, using the const map to resolve Value operands that are known to be constants (from prior Copy instructions).
src/passes/constant_fold.rs:157
↓ 2 callersFunctiontry_mul_power_of_two
Try to strength-reduce a multiply by a power of 2 on either side. Returns the shift instruction if successful.
src/passes/simplify.rs:763
↓ 2 callersFunctiontry_narrow_const
Try to narrow a constant for bit-preserving operations (Add/Sub/And/Or/Xor). For U32, allows bit-truncation (accepts negative i64 values).
src/passes/narrow.rs:632
↓ 2 callersFunctiontry_narrow_const_core
Try to narrow a constant to a smaller type. When `require_roundtrip` is false (bit-preserving ops like Add/And/Or/Xor), U32 accepts any value in [i32:
src/passes/narrow.rs:569
↓ 2 callersFunctiontry_parse_label
Try to parse a label definition. Returns the label name and any remaining content after the label (which may be an instruction or directive on the sam
src/backend/x86/assembler/parser.rs:431
↓ 2 callersFunctionu64_to_f128_bytes
Convert an unsigned u64 to f128 bytes with full precision.
src/common/long_double.rs:959
↓ 2 callersMethoduse_color
Resolve whether colors should actually be used, considering the mode and whether stderr is a terminal.
src/common/error.rs:71
↓ 2 callersMethoduses_gp_reg
Returns true if this parameter arrives in a GP register (int, i128 pair, struct, or F128 GP pair).
src/backend/call_abi.rs:162
↓ 2 callersFunctionvalidate_function_values
Debug validation: check that every Value used as an operand is defined by some instruction.
src/passes/inline.rs:837
↓ 2 callersMethodvla_base_element_size
Compute the base element size for a VLA declaration, accounting for pointer/function-pointer derivations in the declarator. For `int *ap[n]`, derived
src/ir/lowering/stmt.rs:1337
↓ 2 callersMethodwarning_count
Number of warnings emitted so far (excludes promoted warnings).
src/common/error.rs:602
↓ 2 callersMethodwarning_with_kind
Create a new warning diagnostic with a specific kind for filtering.
src/common/error.rs:378
↓ 2 callersMethodwith_location
Set an explicit source location string for diagnostics without a span. Used for preprocessor-phase diagnostics where the source manager is not yet ava
src/common/error.rs:427
↓ 2 callersMethodwith_note
Add a follow-up note to this diagnostic. Used for "note: expression has type '...'" and similar context.
src/common/error.rs:411
↓ 2 callersFunctionwould_paste_tokens
Check if two adjacent bytes would form an unintended multi-character token when concatenated during macro expansion. Returns true if a separating spac
src/frontend/preprocessor/macro_defs.rs:27
↓ 2 callersMethodwrite_i64
(&mut self, val: i64)
src/backend/common.rs:921
↓ 2 callersFunctionwrite_rbp_pattern
(buf: &mut [u8; 24], offset: i32)
src/backend/x86/codegen/peephole/types.rs:1219
↓ 2 callersFunctionwrite_relocatable_object
Write a relocatable ELF object file (.o) from assembled sections and symbols. This is the shared serialization pipeline used by all four backend asse
src/backend/elf/object_writer.rs:83
↓ 2 callersFunctionwrite_u32_digits
(buf: &mut [u8], mut v: u32)
src/backend/x86/codegen/peephole/types.rs:1244
↓ 2 callersMethodwrite_u64
(&mut self, val: u64)
src/backend/common.rs:927
↓ 2 callersFunctionx86_normalize_reg_to_64bit
Normalize an x86 register name to its 64-bit canonical form. x86 registers have multiple aliases for the same physical register (e.g., al/ax/eax/rax
src/backend/inline_asm.rs:1078
↓ 2 callersFunctionx87_add_soft
Software addition for x87 80-bit extended precision.
src/common/long_double.rs:1574
↓ 2 callersFunctionx87_addsub_soft
Software addition/subtraction for x87 80-bit extended precision. If `negate_b` is true, performs a - b; otherwise a + b.
src/common/long_double.rs:1388
↓ 2 callersFunctionx87_bytes_to_f64
Convert x87 80-bit bytes back to f64 (lossy - for computations that need f64). `bytes[0..10]` contain the x87 extended value in little-endian.
src/common/long_double.rs:617
↓ 2 callersFunctionx87_cmp_soft
Software comparison for x87 80-bit extended precision. Returns: -1 if a < b, 0 if a == b, 1 if a > b, i32::MIN if unordered (NaN).
src/common/long_double.rs:1810
↓ 2 callersFunctionx87_div_soft
Software division for x87 80-bit extended precision.
src/common/long_double.rs:1584
↓ 2 callersFunctionx87_rem_soft
Software remainder for x87 80-bit extended precision (fprem semantics). Computes a - trunc(a/b) * b (truncation toward zero, like C fmod).
src/common/long_double.rs:1719
↓ 2 callersFunctionx87_sub_soft
Software subtraction for x87 80-bit extended precision.
src/common/long_double.rs:1579
↓ 1 callersFunction_mm_cmple_pd
include/emmintrin.h:1305
↓ 1 callersFunction_mm_cmple_ps
include/xmmintrin.h:347
↓ 1 callersFunction_mm_cmplt_pd
include/emmintrin.h:1295
↓ 1 callersFunction_mm_cmplt_ps
include/xmmintrin.h:334
↓ 1 callersFunction_mm_cmpnle_pd
include/emmintrin.h:1347
↓ 1 callersFunction_mm_cmpnle_ps
include/xmmintrin.h:750
↓ 1 callersFunction_mm_cmpnlt_pd
include/emmintrin.h:1337
↓ 1 callersFunction_mm_cmpnlt_ps
include/xmmintrin.h:737
↓ 1 callersFunction_mm_set_epi64x
_mm_set_epi64x: set two 64-bit integers (high, low) */
include/emmintrin.h:706
↓ 1 callersFunction_mm_set_epi8
_mm_set_epi8: set 16 x 8-bit lanes in reverse (high-to-low) order */
include/emmintrin.h:667
↓ 1 callersFunction_mm_set_pi8
include/mmintrin.h:69
↓ 1 callersFunction_mm_setr_epi16
_mm_setr_epi16: set 8 x 16-bit lanes in natural (low-to-high) order */
include/emmintrin.h:625
↓ 1 callersFunction_mm_setr_epi32
_mm_setr_epi32: set 4 x 32-bit lanes in natural (low-to-high) order */
include/emmintrin.h:649
↓ 1 callersMethodaccumulate_and_expand
Accumulate lines for multi-line macro invocations (unbalanced parens) and expand when complete. This is the shared logic for both preprocess paths, av
src/frontend/preprocessor/pipeline.rs:485
↓ 1 callersMethodadd_after_include_path
Add an after include path (-idirafter flag). These paths are searched last, after all other include paths.
src/frontend/preprocessor/pipeline.rs:726
↓ 1 callersFunctionadd_arch_extra_libs
(setup: &mut BuiltinLinkSetup, elf_machine: u16, is_static: bool)
src/backend/common.rs:641
↓ 1 callersMethodadd_file
(&mut self, name: String, content: String)
src/common/source.rs:122
↓ 1 callersMethodadd_quote_include_path
Add a quote-only include search path (-iquote flag). These paths are searched only for `#include "file"`, not `#include <file>`. Searched after curren
src/frontend/preprocessor/pipeline.rs:714
↓ 1 callersMethodadd_system_include_path
Add a system include path (-isystem flag). These paths are searched after -I paths, before default system paths.
src/frontend/preprocessor/pipeline.rs:720
↓ 1 callersFunctionall_ones_const
Create the all-ones constant for a given integer type.
src/passes/simplify.rs:1085
↓ 1 callersFunctionallocate_common_symbol
Allocate a COMMON symbol in .bss.
src/backend/riscv/linker/symbols.rs:99
↓ 1 callersFunctionallocate_common_symbols
Allocate COMMON symbols (tentative definitions) in the .bss section. In C, a global variable declared without an initializer (e.g. `int x;`) may be e
src/backend/i686/linker/symbols.rs:168
↓ 1 callersMethodallocate_function_params
Allocate function parameters as local variables (3-phase process).
src/ir/lowering/func_lowering.rs:255
↓ 1 callersFunctionallocate_registers
Run the linear scan register allocator on a function. Strategy: We assign callee-saved registers to values with the longest live intervals. This is a
src/backend/regalloc.rs:80
↓ 1 callersFunctionalu_mnemonic
Helper functions for ALU mnemonics
src/backend/i686/codegen/emit.rs:1013
↓ 1 callersMethodanalyze
Analyze a translation unit. Builds symbol table and collects semantic info. Returns Ok(()) on success, or an error count on failure. All errors are em
src/frontend/sema/analysis.rs:159
↓ 1 callersMethodanalyze_function_def
(&mut self, func: &FunctionDef)
src/frontend/sema/analysis.rs:200
↓ 1 callersFunctionanalyze_loop_memory
Scan a loop body to determine which allocas are modified and what memory side effects the loop has (calls, stores to unknown pointers).
src/passes/licm.rs:385
↓ 1 callersMethodanalyze_stmt
(&mut self, stmt: &Stmt)
src/frontend/sema/analysis.rs:813
↓ 1 callersMethodannotate_const_value
Try to evaluate an expression as a compile-time constant using SemaConstEval and record the result in the const_values map. The lowerer will consult t
src/frontend/sema/analysis.rs:1548
↓ 1 callersMethodannotate_expr_type
Infer the CType of an expression via ExprTypeChecker and record it in the expr_types annotation map, keyed by the expression's `ExprId`.
src/frontend/sema/analysis.rs:1533
↓ 1 callersMethodany_bits_below
Check if any bit in the range [0, pos) is set (i.e., any of the bottom `pos` bits).
src/common/long_double.rs:162
↓ 1 callersFunctionany_reg_num
Try integer register first, then float register
src/backend/riscv/assembler/encoder/mod.rs:258
↓ 1 callersFunctionapply_diamond
Apply a diamond conversion: rewrite the CFG to use Select instructions.
src/passes/if_convert.rs:567
↓ 1 callersMethodapply_kr_derivations
Apply derived declarators to build a K&R parameter's full type. Returns (type_specifier, optional_fptr_params). For function pointer parameters like `
src/frontend/parser/declarations.rs:407
↓ 1 callersFunctionapply_one_reloc
Apply a single relocation to the merged section data.
src/backend/riscv/linker/reloc.rs:179
↓ 1 callersFunctionapply_one_reloc
Apply a single relocation. Returns Some((patch_addr, sym_name)) if a text relocation entry is needed.
src/backend/i686/linker/reloc.rs:75
↓ 1 callersFunctionapply_phi_transformations
Apply all phi elimination transformations to the function: remove phis, insert copies, retarget terminators, add trampolines.
src/ir/mem2reg/phi_eliminate.rs:462
↓ 1 callersFunctionapply_relocations
Apply all relocations to the output buffer.
src/backend/arm/linker/reloc.rs:143
↓ 1 callersFunctionapply_relocations
Apply all relocations from input objects to the output sections. Returns a list of text relocations (address, dynsym_index) for symbols using textrel.
src/backend/i686/linker/reloc.rs:40
↓ 1 callersFunctionapply_set_uleb128
Encode a ULEB128 SET value into data.
src/backend/riscv/linker/reloc.rs:485
← previousnext →1,901–2,000 of 6,057, ranked by callers