Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claudes-c-compiler
/ functions
Functions
6,057 in github.com/anthropics/claudes-c-compiler
⨍
Functions
6,057
◇
Types & classes
346
↓ 2 callers
Function
encode_neon_scalar_two_misc
── NEON scalar two-reg misc: SQABS/SQNEG Hd,Hn / Sd,Sn / Dd,Dn ──────────
src/backend/arm/assembler/encoder/neon.rs:1819
↓ 2 callers
Function
encode_neon_shift_left_imm
── NEON shift left by immediate (SQSHL, UQSHL, SHL, etc.) ───────────── Format: 0 Q U 011110 immh:immb opcode 1 Rn Rd immh:immb encodes both the eleme
src/backend/arm/assembler/encoder/neon.rs:1744
↓ 2 callers
Method
encode_pop
(&mut self, ops: &[Operand])
src/backend/x86/assembler/encoder/gp_integer.rs:378
↓ 2 callers
Method
encode_push
(&mut self, ops: &[Operand])
src/backend/x86/assembler/encoder/gp_integer.rs:336
↓ 2 callers
Method
encode_rdrand
(&mut self, ops: &[Operand], mnemonic: &str, opcode2: u8, reg_ext: u8)
src/backend/x86/assembler/encoder/sse.rs:219
↓ 2 callers
Function
encode_sbc
(operands: &[Operand], set_flags: bool)
src/backend/arm/assembler/encoder/data_processing.rs:784
↓ 2 callers
Function
encode_sc
(operands: &[Operand], funct3: u32)
src/backend/riscv/assembler/encoder/atomics.rs:13
↓ 2 callers
Method
encode_sse_byte_shift
Encode pslldq/psrldq (byte shifts, immediate-only).
src/backend/i686/assembler/encoder/sse.rs:263
↓ 2 callers
Method
encode_sse_cvt_gp_to_xmm
(&mut self, ops: &[Operand], opcode: &[u8])
src/backend/i686/assembler/encoder/sse.rs:117
↓ 2 callers
Method
encode_sse_extract
Encode SSE4.1 extract (pextrd, pextrb): $imm8, xmm, r/m32
src/backend/i686/assembler/encoder/sse.rs:362
↓ 2 callers
Method
encode_sse_insert
Encode SSE4.1 insert (pinsrd, pinsrb): $imm8, r/m32, xmm
src/backend/i686/assembler/encoder/sse.rs:337
↓ 2 callers
Method
encode_sse_mem_only
Encode SSE memory-only instructions (ldmxcsr, stmxcsr). Format: 0F AE /ext mem
src/backend/i686/assembler/encoder/gp_integer.rs:1360
↓ 2 callers
Method
encode_sse_shift_imm_only
(&mut self, ops: &[Operand], imm_ext: u8, opcode: &[u8])
src/backend/x86/assembler/encoder/sse.rs:351
↓ 2 callers
Function
encode_tbz
(operands: &[Operand], is_nz: bool)
src/backend/arm/assembler/encoder/compare_branch.rs:254
↓ 2 callers
Method
encode_test
(&mut self, ops: &[Operand], mnemonic: &str)
src/backend/x86/assembler/encoder/gp_integer.rs:562
↓ 2 callers
Function
encode_v_crypto_vi
Encode Zvksh/Zvksed crypto instructions with VI format vsm3c.vi, vsm4k.vi: funct6 | vm=1 | vs2 | uimm5 | 010 | vd | OP_V_CRYPTO
src/backend/riscv/assembler/encoder/vector.rs:191
↓ 2 callers
Method
encode_xchg
(&mut self, ops: &[Operand], mnemonic: &str)
src/backend/x86/assembler/encoder/gp_integer.rs:1089
↓ 2 callers
Function
encode_zbb_unary_f5
Encode a Zbb unary instruction with funct3=101 (rev8, orc.b).
src/backend/riscv/assembler/encoder/base.rs:301
↓ 2 callers
Function
ends_with_operand
Check if a token ends with an operand character (digit, letter, `_`, `.`, `)`), indicating it could be the left-hand side of a binary operator express
src/backend/asm_preprocess.rs:656
↓ 2 callers
Function
enum_constant_type
Determine the C type of an enum constant value, following GCC's promotion rules. GCC uses the progression: int -> unsigned int -> long long -> unsigne
src/frontend/sema/type_checker.rs:39
↓ 2 callers
Function
eval_and
(tokens: &[ExprToken], pos: &mut usize)
src/backend/asm_expr.rs:140
↓ 2 callers
Function
eval_binop_with_types
Evaluate a binary operation on constant operands with given type parameters. This wraps `const_arith::eval_const_binop` with the C usual arithmetic c
src/common/const_eval.rs:318
↓ 2 callers
Function
eval_builtin_call
Evaluate a compile-time builtin function call in a constant expression. Handles all pure builtins that can be folded at compile time: - __builtin_cho
src/common/const_eval.rs:69
↓ 2 callers
Method
eval_complex_const
Try to evaluate a complex constant expression, returning (real, imag) as f64.
src/ir/lowering/complex.rs:760
↓ 2 callers
Method
eval_const_binop
Evaluate a constant binary operation. Delegates to `shared_const_eval::eval_binop_with_types` which implements C's usual arithmetic conversions (C11 6
src/ir/lowering/const_eval.rs:524
↓ 2 callers
Method
eval_designator_index
Try to evaluate a designator index expression as a usize. Handles integer and char literals, and falls back to the full constant expression evaluator
src/frontend/sema/analysis.rs:705
↓ 2 callers
Method
eval_global_addr_base_and_offset
Helper for pointer arithmetic: base_expr + offset_expr where base is an address
src/ir/lowering/const_eval_global_addr.rs:262
↓ 2 callers
Method
eval_i128
Evaluate this binary operation on two i128 operands using wrapping arithmetic. Unsigned operations (UDiv, URem, LShr) reinterpret the bits as u128. R
src/ir/ops.rs:106
↓ 2 callers
Function
eval_if_condition_inner
(cond: &str, resolve: F)
src/backend/asm_preprocess.rs:995
↓ 2 callers
Method
eval_label_diff_expr
Try to evaluate a label difference: `&&lab1 - &&lab2`.
src/ir/lowering/global_init.rs:1858
↓ 2 callers
Function
eval_literal
(expr: &Expr)
src/common/const_eval.rs:29
↓ 2 callers
Method
eval_offsetof_pattern
Evaluate the offsetof pattern: &((type*)0)->member Also handles nested member access like &((type*)0)->data.x Returns Some(IrConst with offset) if the
src/ir/lowering/const_eval.rs:386
↓ 2 callers
Function
eval_shift
(tokens: &[ExprToken], pos: &mut usize)
src/backend/asm_expr.rs:153
↓ 2 callers
Function
eval_tokens
(tokens: &[ExprToken], pos: &mut usize)
src/backend/asm_expr.rs:110
↓ 2 callers
Method
eval_types_compatible
Evaluate __builtin_types_compatible_p(type1, type2). Returns 1 if the unqualified types are compatible (same type after resolving typedefs and typeof)
src/ir/lowering/types.rs:135
↓ 2 callers
Function
eval_xor
(tokens: &[ExprToken], pos: &mut usize)
src/backend/asm_expr.rs:127
↓ 2 callers
Function
evaluate_condition
Evaluate a preprocessor #if expression. This handles basic constant expressions, defined() operator, and macro expansion.
src/frontend/preprocessor/conditionals.rs:94
↓ 2 callers
Method
evex_ll_from_ops
Determine EVEX L'L from operands: 00=128(xmm), 01=256(ymm), 10=512(zmm)
src/backend/x86/assembler/encoder/avx.rs:63
↓ 2 callers
Method
expand_line
Expand macros in a line of text. Returns the expanded text.
src/frontend/preprocessor/macro_defs.rs:222
↓ 2 callers
Function
expand_macros
Expand `.macro`/`.endm` definitions and macro invocations. Two-pass approach: 1. Collect macro definitions (`.macro name [params]` ... `.endm`) 2. Ex
src/backend/asm_preprocess.rs:749
↓ 2 callers
Function
expand_macros
Expand .macro/.endm definitions and macro invocations in a single pass. Handles nested macros: when a macro body contains .macro/.endm definitions (l
src/backend/arm/assembler/parser.rs:729
↓ 2 callers
Function
expand_rept_blocks
(lines: &[&str])
src/backend/arm/assembler/parser.rs:357
↓ 2 callers
Function
expand_sdiv64_neg
Expand `dest = x /s -C` for 64-bit by computing `-(x /s C)`.
src/passes/div_by_const.rs:1300
↓ 2 callers
Function
expand_sdiv_neg
Expand `dest = x /s -C` by computing `-(x /s C)`. Handles both native I32 and I64-promoted cases.
src/passes/div_by_const.rs:1568
↓ 2 callers
Function
expand_srem32
Expand `dest = x %s C` for 32-bit signed x. Uses: x % C = x - (x / C) * C
src/passes/div_by_const.rs:819
↓ 2 callers
Function
expand_srem32_in_i64
Expand `dest = x %s C` in I64.
src/passes/div_by_const.rs:1631
↓ 2 callers
Method
expand_trailing_func_macros
After expanding a function-like macro, check if the result ends with a function-like macro name and the remaining source starts with '('. If so, expan
src/frontend/preprocessor/macro_defs.rs:280
↓ 2 callers
Function
expand_udiv32
Expand `dest = x /u C` for 32-bit unsigned x.
src/passes/div_by_const.rs:441
↓ 2 callers
Function
expand_udiv32_in_i64
Expand `dest = x /u C` where both x and C are in I64 but C fits in u32. x was zero-extended from U32 to I64 by the C lowering.
src/passes/div_by_const.rs:1329
↓ 2 callers
Function
expand_urem64
Expand `dest = x %u C` for 64-bit unsigned x.
src/passes/div_by_const.rs:1231
↓ 2 callers
Method
expr_is_const_qualified
Check if an expression's type is const-qualified (for _Generic matching). Handles local variable identifiers, address-of, and comma expressions.
src/ir/lowering/expr_access.rs:601
↓ 2 callers
Function
extract_identifier
Extract a C identifier from the beginning of a string. Returns Some(identifier) or None if no valid identifier starts the string.
src/frontend/preprocessor/includes.rs:161
↓ 2 callers
Method
extract_mem_operand_symbol
Extract a global symbol name (with optional offset) from an expression used as a memory ("m") constraint operand in inline assembly. The expression is
src/ir/lowering/stmt_asm.rs:463
↓ 2 callers
Method
extract_null_pointer_cast_with_offset
Extract the struct type from a (type*)0 pattern.
src/frontend/sema/const_eval.rs:460
↓ 2 callers
Method
extract_null_pointer_cast_with_offset
Extract the struct type from a (type*)0 pattern, returning the base TypeSpecifier for the struct type and any accumulated offset from nested member ac
src/ir/lowering/const_eval.rs:443
↓ 2 callers
Method
extract_paren_name
Extract a name from nested parentheses: (name), ((name)), (*(name)), etc.
src/frontend/parser/declarators.rs:687
↓ 2 callers
Method
extract_return_type_from_ctype
(&self, ctype: &CType)
src/ir/lowering/expr_calls.rs:1000
↓ 2 callers
Function
f128_add
Add two IEEE 754 binary128 values with full 112-bit mantissa precision.
src/common/long_double.rs:1950
↓ 2 callers
Function
f128_add_sub
Internal add/sub implementation.
src/common/long_double.rs:1960
↓ 2 callers
Method
f128_alloc_temp_16
(&mut self)
src/backend/arm/codegen/f128.rs:101
↓ 2 callers
Function
f128_bytes_to_u128
Convert f128 bytes to u128 (for constant folding).
src/common/long_double.rs:1132
↓ 2 callers
Function
f128_cmp
F128 comparison via soft-float libcalls with full precision. 1. Load LHS f128 into arg1, save to stack temp. 2. Load RHS f128 into arg1, move to arg2
src/backend/f128_softfloat.rs:435
↓ 2 callers
Function
f128_const_halves
Extract the IEEE f128 low/high u64 halves from an F128 constant operand. The f128 bytes are already in IEEE binary128 format. Returns None for non-con
src/backend/cast.rs:253
↓ 2 callers
Function
f128_div
Divide two IEEE 754 binary128 values with full 112-bit mantissa precision.
src/common/long_double.rs:2150
↓ 2 callers
Function
f128_emit_binop
F128 binary operation via soft-float libcalls with full precision. 1. Allocate stack temp. 2. Load LHS f128 into arg1, save to temp. 3. Load RHS f128
src/backend/f128_softfloat.rs:746
↓ 2 callers
Function
f128_emit_cast
F128 cast dispatch: handles all F128-related casts (int<->F128, float<->F128). Returns `true` if the cast was handled, `false` if the caller should u
src/backend/f128_softfloat.rs:669
↓ 2 callers
Function
f128_emit_load
F128 load dispatch: resolve the pointer's SlotAddr, load 16 bytes, convert to f64 approximation, and store to dest. Also tracks the f128 source for f
src/backend/f128_softfloat.rs:516
↓ 2 callers
Function
f128_emit_load_with_offset
F128 load with constant offset dispatch. Resolves the base pointer's SlotAddr, loads 16 bytes at base + offset, converts to f64 approximation, and st
src/backend/f128_softfloat.rs:607
↓ 2 callers
Function
f128_emit_store
F128 store dispatch: resolve the pointer's SlotAddr and store 16 bytes. Handles four cases: register-allocated pointer, Direct alloca, OverAligned al
src/backend/f128_softfloat.rs:480
↓ 2 callers
Function
f128_emit_store_with_offset
F128 store with constant offset dispatch. Resolves the base pointer's SlotAddr and stores 16 bytes at base + offset.
src/backend/f128_softfloat.rs:560
↓ 2 callers
Method
f128_free_temp_16
(&mut self)
src/backend/arm/codegen/f128.rs:105
↓ 2 callers
Function
f128_is_inf
Helper: check if f128 is infinity
src/common/long_double.rs:1911
↓ 2 callers
Method
f128_load_16b_from_addr_reg_to_arg1
(&mut self)
src/backend/arm/codegen/f128.rs:48
↓ 2 callers
Method
f128_load_from_direct_slot_to_acc
(&mut self, slot: StackSlot)
src/backend/arm/codegen/f128.rs:240
↓ 2 callers
Method
f128_load_operand_to_acc
(&mut self, op: &Operand)
src/backend/arm/codegen/f128.rs:264
↓ 2 callers
Method
f128_move_acc_to_arg0
(&mut self)
src/backend/arm/codegen/f128.rs:256
↓ 2 callers
Method
f128_move_arg1_to_arg2
(&mut self)
src/backend/arm/codegen/f128.rs:88
↓ 2 callers
Function
f128_mul
Multiply two IEEE 754 binary128 values with full 112-bit mantissa precision.
src/common/long_double.rs:2085
↓ 2 callers
Function
f128_neg
Negate an F128 value with full precision by flipping the IEEE 754 sign bit. 1. Load full f128 into arg1. 2. XOR the sign bit (bit 127). 3. Store full
src/backend/f128_softfloat.rs:412
↓ 2 callers
Method
f128_reload_arg1_from_sp
(&mut self)
src/backend/arm/codegen/f128.rs:97
↓ 2 callers
Function
f128_rem
Compute the remainder of two IEEE 754 binary128 values.
src/common/long_double.rs:2223
↓ 2 callers
Method
f128_save_arg1_to_sp
(&mut self)
src/backend/arm/codegen/f128.rs:93
↓ 2 callers
Method
f128_store_arg1_to_slot
(&mut self, slot: StackSlot)
src/backend/arm/codegen/f128.rs:125
↓ 2 callers
Function
f128_store_to_slot
Store an F128 value to a direct stack slot. Three paths: 1. **Constant**: store lo:hi halves directly. 2. **Tracked value**: copy 16 bytes from the t
src/backend/f128_softfloat.rs:327
↓ 2 callers
Function
f128_sub
Subtract two IEEE 754 binary128 values with full 112-bit mantissa precision.
src/common/long_double.rs:1955
↓ 2 callers
Function
f64_decompose
Decompose an f64 into sign, exponent, and mantissa.
src/common/long_double.rs:596
↓ 2 callers
Method
field_layout
Look up a field by name, returning full layout info including bitfield details.
src/common/types.rs:1136
↓ 2 callers
Method
field_offset_with_bitfield
Look up a field by name, returning its offset, type, and optional bitfield info. Recursively searches anonymous struct/union members (unlike field_lay
src/common/types.rs:1144
↓ 2 callers
Method
fill_array_field_designator_items
Process `[N].field = value` designated initializer items for a struct array. This is the consolidated loop that handles the `[Index(N), Field("name")]
src/ir/lowering/global_init_compound_ptrs.rs:437
↓ 2 callers
Method
fill_array_of_complex
Fill an array of complex elements from a braced sub-item list. Each sub-item initializes one complex element using write_complex_field_to_bytes.
src/ir/lowering/global_init_bytes.rs:898
↓ 2 callers
Method
fill_composite_field
Fill a composite (struct/union) field from an initializer. Returns the number of items consumed.
src/ir/lowering/global_init_bytes.rs:488
↓ 2 callers
Method
fill_flat_array_of_composites
Fill flat init of an array of composites from consecutive items. Returns the new item_idx.
src/ir/lowering/global_init_bytes.rs:938
↓ 2 callers
Method
fill_flat_array_of_scalars
Fill flat init of an array of scalars from consecutive items. Returns the new item_idx.
src/ir/lowering/global_init_bytes.rs:968
↓ 2 callers
Method
fill_nested_designator_with_ptrs
Handle a multi-level designated initializer within a struct array element. Drills through the designator chain (starting from the second designator) t
src/ir/lowering/global_init_compound_ptrs.rs:515
↓ 2 callers
Method
fill_scalar_array_with_ptrs
Fill an array of scalar/pointer elements into byte buffer + ptr_ranges. For pointer types, writes address relocations to ptr_ranges. For non-pointer t
src/ir/lowering/global_init_compound_ptrs.rs:750
↓ 2 callers
Method
fill_scalar_list_to_bytes
Fill a byte buffer from a list of scalar initializer items. Used by the compound path when serializing non-pointer array/scalar fields to bytes. Each
src/ir/lowering/global_init_bytes.rs:1200
↓ 2 callers
Function
find_basic_ivs
Find basic induction variables: phis in the header of the form %iv = phi(init from preheader, %iv_next from back_block) where %iv_next = %iv + const_s
src/passes/iv_strength_reduce.rs:356
↓ 2 callers
Function
find_best_callee_reg
Find the best callee-saved register for an interval, preferring registers that are already in use (to minimize prologue/epilogue save/restore cost).
src/backend/regalloc.rs:542
↓ 2 callers
Function
find_escaped_param_allocas
Find param allocas whose address has escaped (used in non-Load/Store contexts). When a param alloca's address is taken (e.g., via `&x` which becomes
src/passes/gvn.rs:326
↓ 2 callers
Function
find_hi20_value_core
Core implementation for finding the hi20 value paired with a pcrel_lo12.
src/backend/riscv/linker/relocations.rs:296
← previous
next →
1,501–1,600 of 6,057, ranked by callers