MCPcopy Create free account

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

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

↓ 21 callersMethodadd_relocation
Add a relocation relative to current position.
src/backend/x86/assembler/encoder/core.rs:227
↓ 21 callersMethoddest
Get the destination value defined by this instruction, if any. Instructions like Store, Memcpy, VaStart, VaEnd, VaCopy, AtomicStore, Fence, and Inline
src/ir/instruction.rs:385
↓ 21 callersMethodemit_jcc_label
(&mut self, jcc: &str, label: &str)
src/backend/common.rs:959
↓ 21 callersMethodencode_sse_op_imm8
(&mut self, ops: &[Operand], opcode: &[u8])
src/backend/x86/assembler/encoder/sse.rs:120
↓ 21 callersMethodencode_sse_op_imm8
(&mut self, ops: &[Operand], opcode: &[u8])
src/backend/i686/assembler/encoder/sse.rs:60
↓ 21 callersMethodfill_struct_global_bytes
Recursively fill byte buffer for struct global initialization. Returns the number of initializer items consumed. Handles nested structs/unions, array
src/ir/lowering/global_init_bytes.rs:44
↓ 21 callersFunctionget_vreg
(operands: &[Operand], idx: usize)
src/backend/riscv/assembler/encoder/mod.rs:378
↓ 21 callersFunctionis_xmm
Is this an XMM register?
src/backend/x86/assembler/encoder/registers.rs:128
↓ 21 callersFunctionparse_int_literal
(s: &str)
src/backend/arm/assembler/parser.rs:2259
↓ 21 callersFunctiontrimmed
(store: &'a LineStore, info: &LineInfo, idx: usize)
src/backend/i686/codegen/peephole.rs:594
↓ 21 callersFunctiontry_simplify
Try to simplify an instruction using algebraic identities and strength reduction.
src/passes/simplify.rs:231
↓ 20 callersFunctionbinop_val_const
Create a BinOp with Value(1) as lhs and the given const rhs.
src/passes/simplify.rs:1654
↓ 20 callersMethodemit_store_result
(&mut self, dest: &Value)
src/backend/arm/codegen/emit.rs:1826
↓ 20 callersFunctionencode_ldst_imm12
(out: &mut [u8], fp: usize, lo12: u32, shift: u32)
src/backend/arm/linker/reloc.rs:526
↓ 20 callersMethodfor_each_function
Run a transformation on each defined (non-declaration) function, returning the total count of changes made. Used by optimization passes.
src/ir/module.rs:267
↓ 20 callersMethodget_struct_layout_for_type
Get the cached struct layout for a TypeSpecifier, if it's a struct/union type. Prefers cached layout from struct_layouts when a tag name is available.
src/ir/lowering/structs.rs:272
↓ 20 callersMethodis_nop
(self)
src/backend/i686/codegen/peephole.rs:107
↓ 20 callersFunctionpeephole_optimize
Run peephole optimization on i686 assembly text. Returns the optimized assembly string.
src/backend/i686/codegen/peephole.rs:1672
↓ 20 callersMethodset_const
(&mut self, v: bool)
src/frontend/parser/ast.rs:253
↓ 20 callersMethodto_f64
Extract as f64 (works for all numeric types).
src/ir/constants.rs:260
↓ 19 callersFunctionassert_copy_value
Assert result is a Copy of the given value id.
src/passes/simplify.rs:1669
↓ 19 callersMethodcurrent_offset
Get the current write offset within the current section.
src/backend/elf/writer_base.rs:101
↓ 19 callersMethodemit_instr_mem_reg
(&mut self, mnemonic: &str, offset: i64, base: &str, reg: &str)
src/backend/common.rs:976
↓ 19 callersMethodeval_global_addr_expr
Try to evaluate an expression as a global address constant. This handles patterns like: - `&x` (address of a global variable) - `func` (function name
src/ir/lowering/const_eval_global_addr.rs:68
↓ 19 callersMethodexpr_is_pointer
Check if an expression has pointer type (for pointer arithmetic).
src/ir/lowering/pointer_analysis.rs:124
↓ 19 callersMethodis_128bit
Whether this is a 128-bit integer type (I128 or U128).
src/common/types.rs:1805
↓ 19 callersMethodis_long_double
Whether this is a long double type (F128). Long double values are computed as F64 but stored as 16 bytes for ABI correctness.
src/common/types.rs:1800
↓ 19 callersMethodis_struct_or_union
Whether this is a struct or union type.
src/common/types.rs:1700
↓ 19 callersFunctionline_info
(kind: LineKind, ts: u16)
src/backend/i686/codegen/peephole.rs:117
↓ 19 callersFunctionpeephole_optimize
Run peephole optimization on AArch64 assembly text. Returns the optimized assembly string.
src/backend/arm/codegen/peephole.rs:410
↓ 19 callersFunctionresolve_const
Resolve an operand to its constant value, looking through the const map for Value operands that are defined by Copy instructions with const sources.
src/passes/constant_fold.rs:386
↓ 19 callersMethodset_flag
(&mut self, mask: u32, v: bool)
src/frontend/parser/parse.rs:193
↓ 19 callersMethodstruct_value_size
Check if an expression refers to a struct/union/vector value (not pointer-to-struct). Returns the struct/union/vector size if the expression produces
src/ir/lowering/expr_types.rs:112
↓ 18 callersMethodadd_reloc
Record a relocation at the current offset in the current section.
src/backend/elf/writer_base.rs:125
↓ 18 callersMethodanalyze_expr
(&mut self, expr: &Expr)
src/frontend/sema/analysis.rs:1324
↓ 18 callersMethodclear
(&mut self)
src/backend/x86/codegen/peephole/passes/store_forwarding.rs:58
↓ 18 callersFunctionencode_amo
(operands: &[Operand], funct3: u32, funct5: u32)
src/backend/riscv/assembler/encoder/atomics.rs:21
↓ 18 callersMethodencode_avx_3op_38
Encode AVX 3-operand in 0F38 map
src/backend/x86/assembler/encoder/avx.rs:271
↓ 18 callersFunctionencode_neon_elem_long
Encode NEON vector-by-element long instructions: SMULL/UMULL/SMLAL/UMLAL/SMLSL/UMLSL (elem) Format: 0 Q U 01111 size L M Rm opcode H 0 Rn Rd These a
src/backend/arm/assembler/encoder/neon.rs:235
↓ 18 callersFunctionis_xmm
Is this an XMM register?
src/backend/i686/assembler/encoder/registers.rs:53
↓ 18 callersFunctionpad_to
Extend buffer with zero bytes to reach `target` length.
src/backend/linker_common/write.rs:62
↓ 17 callersMethodadd
(&mut self, s: &str)
src/backend/i686/linker/mod.rs:44
↓ 17 callersMethodadd_relocation
Add a relocation relative to current position.
src/backend/i686/assembler/encoder/core.rs:146
↓ 17 callersMethodemit_jmp_label
(&mut self, label: &str)
src/backend/common.rs:951
↓ 17 callersMethodemit_store_to_raw_sp
Emit store to [sp, #offset] using the REAL sp register, even when alloca is present. Used for storing into dynamically-allocated call stack arg areas
src/backend/arm/codegen/emit.rs:742
↓ 17 callersMethodemit_store_to_sp
Emit: store `reg` to `offset(sp)`, handling large offsets via t6.
src/backend/riscv/codegen/emit.rs:276
↓ 17 callersFunctionencode_neon_float_three_same
── NEON float three-same ──────────────────────────────────────────────── Encode NEON float three-same: FADD, FSUB, FMUL, FDIV, FMLA, FMLS, etc. Forma
src/backend/arm/assembler/encoder/neon.rs:1390
↓ 17 callersMethodexpect_after
Expect a token with a contextual description of what construct we're parsing. Produces messages like "expected ';' after return statement" instead of
src/frontend/parser/parse.rs:451
↓ 17 callersFunctionget_imm
(operands: &[Operand], idx: usize)
src/backend/riscv/assembler/encoder/mod.rs:387
↓ 17 callersMethodget_offset
(&self, s: &str)
src/backend/linker_common/dynstr.rs:32
↓ 17 callersMethodparam_ref
Format a parameter reference from the caller's stack frame. With frame pointer: offset(%ebp) where offset is positive (above EBP). Without frame point
src/backend/i686/codegen/emit.rs:183
↓ 17 callersMethodparse_assignment_expr
(&mut self)
src/frontend/parser/expressions.rs:82
↓ 17 callersFunctionparse_insn_int
(s: &str)
src/backend/riscv/assembler/encoder/compressed.rs:99
↓ 17 callersFunctionphys_reg_name
(reg: PhysReg)
src/backend/i686/codegen/emit.rs:84
↓ 17 callersFunctionreplace_line
(store: &mut LineStore, info: &mut LineInfo, idx: usize, new_text: String)
src/backend/x86/codegen/peephole/types.rs:682
↓ 17 callersMethodresolve_type_spec
Resolve a TypeSpecifier, following TypeofType wrappers. TypedefName resolution now goes through CType (see type_spec_to_ctype). This only resolves non
src/ir/lowering/types.rs:22
↓ 17 callersMethodsym_type
(&self)
src/backend/i686/linker/types.rs:125
↓ 16 callersFunctionassert_add_matches
(a: &[u8; 16], b: &[u8; 16], label: &str)
src/common/long_double.rs:2751
↓ 16 callersMethodconst_to_i64
Convert an IrConst to i64. Delegates to IrConst::to_i64().
src/ir/lowering/const_eval.rs:619
↓ 16 callersMethodemit_alloca_addr
Compute the address of an alloca into `dest`, handling over-aligned allocas. For normal allocas: `dest = sp + offset`. For over-aligned allocas: `dest
src/backend/arm/codegen/emit.rs:821
↓ 16 callersMethodencode_unary_rm
(&mut self, ops: &[Operand], op_ext: u8, size: u8)
src/backend/i686/assembler/encoder/gp_integer.rs:781
↓ 16 callersMethodexpr_as_array_size
Collect array dimensions from nested Array type specifiers. Extract an integer value from any integer literal expression (Int, UInt, Long, ULong). Use
src/ir/lowering/const_eval.rs:631
↓ 16 callersMethodparse_gcc_attributes
Parse __attribute__((...)) and __extension__, returning struct attribute flags. Returns (is_packed, aligned_value, mode_kind, is_common).
src/frontend/parser/parse.rs:645
↓ 16 callersMethodset_noreturn
(&mut self, v: bool)
src/frontend/parser/ast.rs:106
↓ 16 callersMethodwrite_str
(&mut self, s: &str)
src/backend/common.rs:1049
↓ 16 callersFunctionx87_decompose
Decompose x87 80-bit extended precision bytes into sign, exponent, and mantissa. This is the single extraction point used by all x87 conversion functi
src/common/long_double.rs:570
↓ 15 callersMethodacc_has
(&self, value_id: u32, is_alloca: bool)
src/backend/state.rs:60
↓ 15 callersMethodcollect_refs_from_expr
Collect function name references from an expression.
src/ir/lowering/ref_collection.rs:233
↓ 15 callersMethodconvert_to_complex
Convert a value to a complex type, handling both real-to-complex and complex-to-complex.
src/ir/lowering/complex.rs:550
↓ 15 callersMethodemit_alloca_addr
Compute the address of an alloca into `dest`, handling over-aligned allocas. For normal allocas: `dest = s0 + offset`. For over-aligned allocas: `dest
src/backend/riscv/codegen/emit.rs:263
↓ 15 callersMethodemit_bool_normalize_typed
Normalize a value for _Bool storage at the given source type. Emits (val != 0) for integers, (val != 0.0) for floats. This must be called BEFORE any t
src/ir/lowering/expr.rs:547
↓ 15 callersMethodemit_rex_unary
Emit REX prefix for unary operation on register.
src/backend/x86/assembler/encoder/core.rs:72
↓ 15 callersMethodemit_segment_prefix
Emit segment override prefix (0x64 for %fs, 0x65 for %gs) if present. Must be emitted before any operand-size override, REX prefix, or opcode. TODO: e
src/backend/x86/assembler/encoder/core.rs:48
↓ 15 callersMethodemit_u32_le
Append a 32-bit little-endian value to the current section.
src/backend/elf/writer_base.rs:120
↓ 15 callersFunctionencode_movw
(out: &mut [u8], fp: usize, imm16: u32)
src/backend/arm/linker/reloc.rs:534
↓ 15 callersMethodinfer_expr_type
Infer the C semantic type of an expression for arithmetic conversions. This differs from `get_expr_type` in that it returns the C-level type (e.g., I
src/ir/lowering/expr.rs:406
↓ 15 callersFunctionis_ident_start_byte
(b: u8)
src/frontend/preprocessor/utils.rs:23
↓ 15 callersFunctionis_mmx
Is this an MMX register?
src/backend/x86/assembler/encoder/registers.rs:27
↓ 15 callersFunctionregister_family_fast
(reg: &str)
src/backend/x86/codegen/peephole/types.rs:1045
↓ 15 callersMethodvex_l_from_ops
Determine VEX L (vector length) from operand: 0=128(xmm), 1=256(ymm)
src/backend/x86/assembler/encoder/avx.rs:138
↓ 15 callersFunctionwrite_bytes
(buf: &mut [u8], off: usize, data: &[u8])
src/backend/elf/io.rs:83
↓ 15 callersMethodzero_const
Get the zero constant for a given IR type.
src/ir/lowering/expr_types.rs:88
↓ 14 callersFunctionassert_cmp_matches
(a: &[u8; 16], b: &[u8; 16], label: &str)
src/common/long_double.rs:2935
↓ 14 callersMethodemit_f128_load_to_x87
Load an F128 (long double) operand onto the x87 FPU stack.
src/backend/i686/codegen/emit.rs:518
↓ 14 callersMethodemit_string_to_alloca
Copy a string literal's bytes into an alloca at a given byte offset, followed by a null terminator (if it fits within `max_bytes`). Per C11 6.7.9 p14
src/ir/lowering/lower.rs:1305
↓ 14 callersMethodemit_struct_init
Recursively emit struct field initialization from an initializer list. `base_alloca` is the alloca for the struct, `base_offset` is the byte offset f
src/ir/lowering/struct_init.rs:39
↓ 14 callersMethodencode_avx_3op_np
Encode AVX 3-operand with no 66 prefix
src/backend/x86/assembler/encoder/avx.rs:266
↓ 14 callersFunctionencode_neon_float_two_misc
── NEON float two-register misc ───────────────────────────────────────── Encode NEON float two-reg misc: UCVTF, SCVTF, FCVTZS, FCVTZU, FNEG, FABS, et
src/backend/arm/assembler/encoder/neon.rs:1420
↓ 14 callersFunctionfor_each_operand_in_terminator
Iterate over all Operand references in a terminator. Canonical traversal — shared by liveness, use-counting, and GEP fold analysis.
src/backend/liveness.rs:1025
↓ 14 callersFunctioninfer_reg_size
Infer register size in bytes from register name.
src/backend/x86/assembler/encoder/registers.rs:233
↓ 14 callersMethodis_weak
(&self)
src/frontend/parser/ast.rs:86
↓ 14 callersMethodlower_stmt
Main statement lowering dispatcher. Delegates to per-statement-type methods.
src/ir/lowering/stmt.rs:1075
↓ 14 callersFunctionmake_call
(func_name: &str, args: Vec<Operand>, return_type: IrType)
src/passes/simplify.rs:1692
↓ 14 callersFunctionpeephole_optimize
Run peephole optimization on RISC-V assembly text. Returns the optimized assembly string.
src/backend/riscv/codegen/peephole.rs:348
↓ 14 callersFunctionresolve_numeric_name
Resolve a numeric label reference name (e.g., "1f" -> ".Lnum_1_0").
src/backend/elf/numeric_labels.rs:204
↓ 14 callersMethodrow
(&self, i: usize)
src/ir/analysis.rs:40
↓ 14 callersMethodskip_gcc_extensions
(&mut self)
src/frontend/parser/parse.rs:636
↓ 14 callersFunctiontry_compress_rv64
(word: u32)
src/backend/riscv/assembler/compress.rs:19
↓ 13 callersMethodalloca_complex
Allocate stack space for a complex value and return the alloca pointer.
src/ir/lowering/complex.rs:73
↓ 13 callersMethodcreate_compound_literal_global
Create an anonymous global for a compound literal at file scope.
src/ir/lowering/global_init.rs:1142
← previousnext →201–300 of 6,057, ranked by callers