MCPcopy Create free account

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

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

↓ 1 callersMethodresolve_member_access_with_ctype
Resolve member access and return full info including CType. Returns (byte_offset, ir_type, bitfield_info, field_ctype).
src/ir/lowering/structs.rs:1007
↓ 1 callersMethodresolve_member_array_subscript
Resolve an array subscript where the base is a member access on a global struct. For example: `rcu_state.node[0]` resolves to `rcu_state + offsetof(no
src/ir/lowering/const_eval_global_addr.rs:400
↓ 1 callersMethodresolve_member_field_ctype_impl
Resolve member access to get the CType of the field (not just the IrType). This is needed to check if a field is an array type (for array decay behavi
src/ir/lowering/structs.rs:996
↓ 1 callersFunctionresolve_numeric_directive
Resolve numeric label references in data directives.
src/backend/arm/assembler/mod.rs:327
↓ 1 callersFunctionresolve_numeric_displacement
Resolve numeric label references in a displacement.
src/backend/elf/numeric_labels.rs:225
↓ 1 callersMethodresolve_numeric_label_ref
Resolve a numeric label reference like "1b" or "1f" to a (section, offset).
src/backend/riscv/assembler/elf_writer.rs:1209
↓ 1 callersFunctionresolve_numeric_label_refs
Pre-process assembly statements to resolve GNU numeric label references. Numeric labels like `1:` can be defined multiple times. References like `1b`
src/backend/riscv/assembler/elf_writer.rs:111
↓ 1 callersFunctionresolve_numeric_labels
Resolve numeric local labels (1:, 2:, etc.) and their references (1f, 1b) into unique internal label names. GNU assembler numeric labels can be defin
src/backend/arm/assembler/mod.rs:178
↓ 1 callersFunctionresolve_numeric_labels
Resolve numeric local labels (1:, 2:, etc.) and their references (1f, 1b) into unique internal label names. GNU assembler numeric labels can be defin
src/backend/elf/numeric_labels.rs:52
↓ 1 callersMethodresolve_numeric_labels_in_expr
Pre-resolve numeric label references (e.g. `0b`, `1f`) in an expression string. GNU as numeric labels like `0:` can be referenced as `0b` (backward)
src/backend/elf_writer_common.rs:932
↓ 1 callersFunctionresolve_numeric_operand
Resolve numeric label references in a single operand.
src/backend/arm/assembler/mod.rs:233
↓ 1 callersFunctionresolve_numeric_operand
Resolve numeric label references in a single operand.
src/backend/elf/numeric_labels.rs:125
↓ 1 callersFunctionresolve_numeric_refs_in_expr
Resolve numeric label references (e.g., "6651f", "661b") within an expression string. Scans for patterns like digits followed by 'f' or 'b' and replac
src/backend/elf/numeric_labels.rs:253
↓ 1 callersMethodresolve_pending_exprs
Resolve pending raw expressions by substituting label offsets and evaluating.
src/backend/arm/assembler/elf_writer.rs:175
↓ 1 callersMethodresolve_pending_instructions
Resolve pending instructions that contain symbolic offset expressions. After all labels are positioned, substitute label names with offsets, evaluate
src/backend/arm/assembler/elf_writer.rs:246
↓ 1 callersMethodresolve_pointer_member_access_addr
Resolve &(base->field) where base is a constant pointer expression involving a global array (e.g., &((Upgrade_items + 1)->uaattrid)). The base must re
src/ir/lowering/const_eval_global_addr.rs:898
↓ 1 callersMethodresolve_pointer_member_access_with_ctype
Resolve pointer member access and return full info including CType. Returns (byte_offset, ir_type, bitfield_info, field_ctype).
src/ir/lowering/structs.rs:1013
↓ 1 callersMethodresolve_ptr_field_init
Resolve a pointer field's initializer expression to a GlobalInit. Handles string literals, global addresses, function pointers, etc.
src/ir/lowering/global_init_compound.rs:349
↓ 1 callersFunctionresolve_register_aliases
Resolve `.req` / `.unreq` register aliases. First pass: collect `name .req register` definitions and `.unreq name` removals. Second pass: substitute
src/backend/arm/assembler/parser.rs:937
↓ 1 callersFunctionresolve_remaining_is_constant
Resolve all remaining `UnaryOp::IsConstant` instructions to `Copy(0)`. After inlining and the post-inline constant folding passes, any `IsConstant` w
src/passes/constant_fold.rs:40
↓ 1 callersFunctionresolve_rept_label_expr
Resolve backward numeric label references (like 662b, 661b) in a .rept count expression. Substitutes each backward reference with its byte position, t
src/backend/asm_preprocess.rs:297
↓ 1 callersFunctionresolve_rept_label_expr
Resolve backward numeric label references (like 662b, 661b) in a .rept count expression. Substitutes each backward reference with its byte position, t
src/backend/arm/assembler/parser.rs:292
↓ 1 callersFunctionresolve_script_path
Resolve a path from a linker script entry.
src/backend/i686/linker/dynsym.rs:289
↓ 1 callersFunctionresolve_set_constants
Resolve .set/.equ constants with simple integer values in instruction lines. Sequential single-pass: as each `.set name, value` is encountered, updat
src/backend/arm/assembler/parser.rs:865
↓ 1 callersFunctionresolve_shared_lib_deps
Resolve `-l` libraries for shared library linking, recording NEEDED sonames.
src/backend/riscv/linker/input.rs:344
↓ 1 callersFunctionresolve_sym_addr
Resolve a symbol's address, handling local, section, and global symbols.
src/backend/i686/linker/reloc.rs:198
↓ 1 callersFunctionresolve_sym_addr_shared
Resolve symbol address in shared library context.
src/backend/i686/linker/shared.rs:1010
↓ 1 callersMethodresolve_sym_diffs
Resolve pending symbol differences after all labels are known.
src/backend/arm/assembler/elf_writer.rs:114
↓ 1 callersFunctionresolve_sym_dynamic
Resolve a symbol address for dynamic linking. Dynamic symbols go through PLT.
src/backend/arm/linker/emit_dynamic.rs:839
↓ 1 callersFunctionresolve_sym_value
Resolve the value of a symbol for relocation purposes.
src/backend/riscv/linker/reloc.rs:113
↓ 1 callersFunctionresolve_symbols_and_immediates
Phase 1b: Resolve input symbol names and handle unresolved immediates.
src/backend/inline_asm.rs:579
↓ 1 callersFunctionresolve_tied_and_types
Phase 1e: Resolve tied operands and populate operand types.
src/backend/inline_asm.rs:842
↓ 1 callersMethodresolve_type_flags
Resolve the collected type specifier flags into a concrete TypeSpecifier.
src/frontend/parser/types.rs:390
↓ 1 callersMethodresolve_type_spec_with_scope
Resolve a TypeSpecifier to a CType, using a supplementary local scope for typeof expressions that reference variables not in the symbol table.
src/frontend/sema/type_checker.rs:906
↓ 1 callersMethodresolve_typedef
(&self, name: &str)
src/frontend/sema/analysis.rs:1900
↓ 1 callersMethodresolve_typedef_alignment
Resolve the alignment override carried by a typedef, if any. For a `TypeSpecifier::TypedefName("foo")`, looks up `foo` in `typedef_alignments`. Retur
src/frontend/sema/analysis.rs:1819
↓ 1 callersMethodresolve_typeof
Resolve typeof(expr) to a concrete TypeSpecifier by analyzing the expression type. Returns a new TypeSpecifier if the input is Typeof, otherwise retur
src/ir/lowering/types.rs:96
↓ 1 callersMethodresolve_typeof_expr
(&self, expr: &Expr)
src/frontend/sema/analysis.rs:2001
↓ 1 callersMethodresolve_var_from_compound
Resolve the type of a variable declared within a compound statement. Scans declarations in order, building a local scope so that typeof expressions r
src/frontend/sema/type_checker.rs:867
↓ 1 callersMethodresolve_via_line_map
Resolve a span using the line map built from preprocessor line markers. Assumes files[0] contains the preprocessed output (set by the driver via add_f
src/common/source.rs:366
↓ 1 callersFunctionresolve_x86_registers
Map x86-64 register names to unique integer values for use in `.if` expressions. GAS assigns internal register encoding numbers to register names, al
src/backend/asm_preprocess.rs:934
↓ 1 callersMethodrestore_flags
(&mut self, saved: u32)
src/frontend/parser/parse.rs:207
↓ 1 callersMethodrestore_scope
Restore state to a previously saved checkpoint, undoing all changes made since the checkpoint was taken.
src/passes/gvn.rs:261
↓ 1 callersFunctionretarget_block_edge_once
Replace one occurrence of `old_target` with `new_target` in a block's terminator or InlineAsm goto_labels.
src/ir/mem2reg/phi_eliminate.rs:105
↓ 1 callersFunctionretarget_li
Retarget a `li` instruction to a different destination register.
src/backend/riscv/codegen/peephole.rs:568
↓ 1 callersFunctionretarget_move_imm
Retarget a move-immediate instruction to a different destination register. E.g., `mov x0, #5` with new dest x14 → `mov x14, #5`
src/backend/arm/codegen/peephole.rs:632
↓ 1 callersFunctionrewrite_data_value
Rewrite numeric label refs and `.` in a DataValue.
src/backend/riscv/assembler/elf_writer.rs:289
↓ 1 callersFunctionrewrite_expr_numeric_refs
Rewrite numeric label refs and '.' inside a raw expression string.
src/backend/riscv/assembler/elf_writer.rs:321
↓ 1 callersFunctionrewrite_instruction_register
Rewrite an instruction to use a different register family.
src/backend/x86/codegen/peephole/passes/loop_trampoline.rs:510
↓ 1 callersFunctionrewrite_numeric_ref_in_operand
Rewrite a numeric label reference in an operand to a synthetic label name.
src/backend/riscv/assembler/elf_writer.rs:175
↓ 1 callersFunctionrewrite_numeric_refs_in_directive
Rewrite numeric label references and '.' in a directive. Returns a list of statements: possibly a synthetic label before the directive.
src/backend/riscv/assembler/elf_writer.rs:390
↓ 1 callersMethodrun
Run the compiler pipeline.
src/driver/pipeline.rs:314
↓ 1 callersMethodrun_assembly_only
(&self)
src/driver/pipeline.rs:556
↓ 1 callersFunctionrun_backward_dataflow
Phase 3: Backward dataflow to compute live-in/live-out per block. live_in[B] = gen[B] ∪ (live_out[B] - kill[B]) live_out[B] = ∪ live_in[S] for all suc
src/backend/liveness.rs:456
↓ 1 callersMethodrun_full
(&self)
src/driver/pipeline.rs:613
↓ 1 callersFunctionrun_gvn_function
Run dominator-based GVN on a single function.
src/passes/gvn.rs:376
↓ 1 callersFunctionrun_gvn_licm_ivsr_shared
Run GVN, LICM, and IVSR with shared CFG analysis per function. For each dirty function, builds CFG/dominator/loop analysis once and passes it to all
src/passes/mod.rs:73
↓ 1 callersFunctionrun_inline_phase
Run Phase 0: function inlining and post-inline optimization passes.
src/passes/mod.rs:214
↓ 1 callersMethodrun_object_only
(&self)
src/driver/pipeline.rs:582
↓ 1 callersFunctionrun_passes
All optimization levels run the same pipeline with the same number of iterations. The `opt_level` parameter is accepted for API compatibility but curr
src/passes/mod.rs:269
↓ 1 callersMethodrun_preprocess_only
(&self)
src/driver/pipeline.rs:336
↓ 1 callersFunctionsame_operand
Check if two operands are identical (same value or same constant).
src/passes/simplify.rs:1163
↓ 1 callersFunctionsame_value_or_both_zero
Check if two operands are the same value or both integer-zero constants. Used to detect Select(cond, x, x) patterns where the result is the same regar
src/passes/if_convert.rs:238
↓ 1 callersMethodsave_flags
(&self)
src/frontend/parser/parse.rs:201
↓ 1 callersMethodsave_scope
Save the current log positions for later rollback.
src/passes/gvn.rs:249
↓ 1 callersMethodscan_gep
(&mut self, inst: &Instruction, block_idx: usize)
src/backend/stack_layout/alloca_coalescing.rs:115
↓ 1 callersMethodscan_instruction
(&mut self, inst: &Instruction, block_idx: usize)
src/backend/stack_layout/alloca_coalescing.rs:124
↓ 1 callersMethodscan_instructions
Scan all instructions and terminators for escape conditions and use sites.
src/backend/stack_layout/alloca_coalescing.rs:105
↓ 1 callersFunctionscan_shared_lib
Try to find and scan a shared library, returning true if found.
src/backend/i686/linker/input.rs:201
↓ 1 callersMethodscan_terminator
(&mut self, terminator: &Terminator)
src/backend/stack_layout/alloca_coalescing.rs:197
↓ 1 callersMethodsection_idx
(&self)
src/backend/arm/linker/types.rs:45
↓ 1 callersFunctionsection_type_and_flags
(out_name: &str, sec: &InputSection)
src/backend/i686/linker/sections.rs:111
↓ 1 callersMethodseed_builtin_typedefs
Pre-populate typedef mappings for builtin/standard C types so that sema can correctly resolve types like `uint64_t`, `size_t`, etc. even when the sour
src/frontend/sema/type_context.rs:196
↓ 1 callersMethodseed_builtin_typedefs
Pre-populate typedef mappings for builtin/standard types. Now inserts CType values directly.
src/ir/lowering/types_seed.rs:14
↓ 1 callersMethodseed_libc_math_functions
(&mut self)
src/ir/lowering/types_seed.rs:223
↓ 1 callersMethodsegment_outcome
Determine the outcome of a case segment: does it return, break, or fall through? Walks items sequentially: if an earlier item diverges (returns/break
src/frontend/sema/analysis.rs:1090
↓ 1 callersFunctionselect_inline_site
Select the best call site to inline from the given candidates. Uses a two-pass strategy: 1. First pass: pick tiny/small/static-inline callees (always
src/passes/inline.rs:204
↓ 1 callersMethodset_always_inline
(&mut self, v: bool)
src/frontend/parser/parse.rs:184
↓ 1 callersMethodset_always_inline
(&mut self, v: bool)
src/frontend/parser/ast.rs:98
↓ 1 callersMethodset_cf_protection_branch
Enable CF protection branch (-fcf-protection=branch) to emit endbr64.
src/backend/x86/codegen/emit.rs:235
↓ 1 callersMethodset_code_model_kernel
Enable kernel code model (-mcmodel=kernel). All symbols are assumed to be in the negative 2GB of the virtual address space.
src/backend/x86/codegen/emit.rs:241
↓ 1 callersMethodset_color_mode
Set the color mode for diagnostic output. Resolves the mode immediately (e.g., checking isatty for Auto).
src/common/error.rs:493
↓ 1 callersMethodset_common
(&mut self, v: bool)
src/frontend/parser/ast.rs:255
↓ 1 callersMethodset_common_bss
(&mut self, bss_offset: u64)
src/backend/arm/linker/types.rs:75
↓ 1 callersMethodset_constructor
(&mut self, v: bool)
src/frontend/parser/parse.rs:179
↓ 1 callersMethodset_destructor
(&mut self, v: bool)
src/frontend/parser/parse.rs:180
↓ 1 callersMethodset_error_attr
(&mut self, v: bool)
src/frontend/parser/parse.rs:187
↓ 1 callersMethodset_extended_simd_macros
Define extended SIMD feature macros (__SSE3__, __AVX__, __AVX2__, etc.) when the corresponding -msse3, -mavx, -mavx2 flags are passed. Projects like b
src/frontend/preprocessor/predefined_macros.rs:390
↓ 1 callersMethodset_fastcall
(&mut self, v: bool)
src/frontend/parser/parse.rs:189
↓ 1 callersMethodset_function_return_thunk
Enable function return thunk (-mfunction-return=thunk-extern).
src/backend/x86/codegen/emit.rs:220
↓ 1 callersMethodset_general_regs_only
Set general-regs-only mode (-mgeneral-regs-only). When true, FP/SIMD registers are not used in variadic prologues.
src/backend/arm/codegen/emit.rs:207
↓ 1 callersMethodset_gnu89_inline
Set inline semantics mode: GNU89 vs C99. When `gnu89` is true, defines `__GNUC_GNU_INLINE__` and undefines `__GNUC_STDC_INLINE__`. When `gnu89` is fal
src/frontend/preprocessor/predefined_macros.rs:306
↓ 1 callersMethodset_gnu_extensions
(&mut self, enabled: bool)
src/frontend/lexer/scan.rs:23
↓ 1 callersMethodset_gnu_inline
(&mut self, v: bool)
src/frontend/parser/parse.rs:183
↓ 1 callersMethodset_gnu_inline
(&mut self, v: bool)
src/frontend/parser/ast.rs:97
↓ 1 callersMethodset_indirect_branch_thunk
Enable indirect branch thunk (-mindirect-branch=thunk-extern).
src/backend/x86/codegen/emit.rs:225
↓ 1 callersMethodset_keep
Used by gcc_assembler's CCC_KEEP_ASM path
src/common/temp_files.rs:65
↓ 1 callersMethodset_line
Set the current __LINE__ value without allocating a MacroDef. This avoids per-line allocation of MacroDef { name: "__LINE__", ... }.
src/frontend/preprocessor/macro_defs.rs:178
↓ 1 callersMethodset_macro_expansions
Set macro expansion metadata collected by the preprocessor. Each entry maps a preprocessed output line to the macros expanded on it. Entries should be
src/common/source.rs:503
↓ 1 callersMethodset_no_jump_tables
Disable jump table emission (-fno-jump-tables).
src/backend/arm/codegen/emit.rs:196
← previousnext →3,401–3,500 of 6,057, ranked by callers