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
Method
get_phys_reg_for_value
(&self, val_id: u32)
src/backend/riscv/codegen/emit.rs:480
Method
get_phys_reg_for_value
(&self, val_id: u32)
src/backend/i686/codegen/emit.rs:1257
Function
global_store_forwarding
(store: &mut LineStore, infos: &mut [LineInfo])
src/backend/i686/codegen/peephole.rs:869
Method
handle_elif
Handle #elif.
src/frontend/preprocessor/conditionals.rs:54
Method
handle_query_flags
Handle early-exit query flags (--dumpmachine, --version, etc.). Returns Ok(true) if a query flag was handled and the process should exit.
src/driver/cli.rs:77
Method
has_deferred_expr
Check if any operand contains a deferred symbolic expression.
src/backend/arm/assembler/elf_writer.rs:610
Method
has_unbalanced_parens
Check if a line has unbalanced parentheses, indicating a multi-line macro invocation that needs to be joined with subsequent lines. Skips string/char
src/frontend/preprocessor/text_processing.rs:67
Function
i686_clobber_to_phys
Map inline asm clobber register names to callee-saved PhysReg indices.
src/backend/i686/codegen/emit.rs:105
Function
i686_constraint_to_phys
Map inline asm constraint register names to callee-saved PhysReg indices.
src/backend/i686/codegen/emit.rs:95
Method
i686_default_modifier_for_type
Determine the default register size modifier based on the operand's IR type. On i686, the default is 32-bit, so only smaller types get a modifier.
src/backend/i686/codegen/inline_asm.rs:90
Method
i686_mov_load_for_type
Return the i686 load mnemonic for a given IR type. Uses sign/zero-extending loads for sub-32-bit types, movl for everything else.
src/backend/i686/codegen/asm_emitter.rs:619
Method
i686_mov_store_for_type
Return the i686 store mnemonic for a given IR type. Uses movb/movw for sub-32-bit types, movl for everything else.
src/backend/i686/codegen/asm_emitter.rs:609
Method
identity
()
src/frontend/sema/builtins.rs:633
Method
info
(&self)
src/backend/x86/linker/types.rs:40
Method
input_stem
Get a short stem name for an input file (for temp file naming).
src/driver/pipeline.rs:742
Method
insert_const_local_scoped
Insert a const local value, tracking the change in the current scope frame.
src/ir/lowering/func_state.rs:286
Method
insert_local_scoped
Insert a local variable, tracking the change in the current scope frame.
src/ir/lowering/func_state.rs:262
Method
insert_static_local_scoped
Insert a static local name, tracking the change in the current scope frame.
src/ir/lowering/func_state.rs:274
Method
insert_struct_layout_scoped
Insert a struct layout, tracking the change in the current scope frame so it can be undone on scope exit.
src/frontend/sema/type_context.rs:434
Method
integer_promote
Integer promotion: types narrower than int are promoted to int.
src/ir/lowering/expr_ops.rs:264
Method
integer_promote_ctype
Apply C integer promotion rules to a CType. Types smaller than int are promoted to int. Delegates to CType::integer_promoted().
src/ir/lowering/expr_types.rs:943
Method
intrinsic
(intr: BuiltinIntrinsic)
src/frontend/sema/builtins.rs:641
Method
intrinsic_type_from_suffix
Determine the operand width for a suffix-encoded intrinsic (clz, ctz, popcount, etc.). `ll` suffix = long long = always I64. `l` suffix = long = I64 o
src/ir/lowering/expr_builtins_intrin.rs:24
Method
invalidate_ctype_cache_scoped
Invalidate a ctype_cache entry, tracking the change in the current scope frame so it can be restored on scope exit.
src/frontend/sema/type_context.rs:474
Method
ir_type_for_size
Map a byte size to the smallest IR integer type that fits.
src/ir/lowering/expr.rs:386
Method
is_aggregate_or_complex
Check if a CType is an aggregate (array/struct/union) or complex type. These types are always accessed by address rather than loaded by value.
src/ir/lowering/expr_access.rs:965
Method
is_assembly_source
Check if a file is an assembly source (.s or .S). .S files contain assembly with C preprocessor directives. .s files contain pure assembly. Both are p
src/driver/file_types.rs:79
Method
is_c_source
Check if a file has a known C source extension.
src/driver/file_types.rs:53
Method
is_char_array_type
Check if a CType is a char or wchar_t array (eligible for string literal initialization).
src/ir/lowering/const_eval_init_size.rs:311
Method
is_defined
(&self)
src/backend/x86/linker/types.rs:38
Method
is_dynamic
(&self)
src/backend/x86/linker/types.rs:39
Method
is_extending_load
Check if a load instruction is a zero/sign-extending load. These instructions always require a 32-bit destination register.
src/backend/i686/codegen/asm_emitter.rs:660
Function
is_fp_reg
Check if a register name is a floating-point register
src/backend/riscv/assembler/encoder/mod.rs:268
Function
is_int_reg
Check if a register name is an integer register
src/backend/riscv/assembler/encoder/mod.rs:263
Method
is_line_marker
(line: &str)
src/driver/file_types.rs:95
Function
is_numeric_label_ref
Check if a string looks like a GNU numeric label reference (e.g. "2f", "1b", "42f").
src/backend/asm_preprocess.rs:1124
Method
is_object_or_archive
Check if a file is an object file or archive (pass to linker directly). Recognizes standard extensions (.o, .a, .so) plus common variants used by buil
src/driver/file_types.rs:16
Method
is_one
Returns true if this constant is one (integer only).
src/ir/constants.rs:235
Method
is_polymorphic_atomic_builtin
Check if a builtin name is a polymorphic atomic builtin whose return type depends on the pointee type of the first argument. These include all __atomi
src/ir/lowering/expr_types.rs:260
Method
is_ppnumber_suffix
Check if an identifier is a pp-number suffix (e.g., the "I" in "1.I").
src/frontend/preprocessor/macro_defs.rs:493
Method
is_pure
Returns true if this intrinsic is a pure function (no side effects, result depends only on inputs). Pure intrinsics can be dead-code eliminated if the
src/ir/intrinsics.rs:193
Method
is_small_slot
(&self, v: u32)
src/backend/state.rs:349
Method
is_subword_type
Check if a type requires sub-word atomic handling on RISC-V. RISC-V only has word (32-bit) and doubleword (64-bit) atomic instructions.
src/backend/riscv/codegen/atomics.rs:64
Method
is_supported_attribute
Check if an attribute is supported by this compiler.
src/frontend/preprocessor/expr_eval.rs:336
Method
is_supported_builtin
Check if a builtin function name is supported by this compiler. Delegates to the sema builtin registry (BUILTIN_MAP + atomic builtins) and adds a few
src/frontend/preprocessor/expr_eval.rs:319
Method
is_unsigned_int_expr
Check if an expression has unsigned type. Used by the parser-level constant evaluator for: - Truncating bitwise NOT results to the correct width - Usi
src/frontend/parser/declarations.rs:1083
Method
is_unsigned_type_spec
Check if a type specifier is an unsigned type. Used by the parser-level constant evaluator for cast truncation.
src/frontend/parser/parse.rs:1209
Method
is_valid_imm_offset
Check if an offset is valid for unsigned immediate addressing on AArch64. The unsigned offset is a 12-bit field scaled by access size: max = 4095 * ac
src/backend/arm/codegen/emit.rs:685
Method
jump_mnemonic
(&self)
src/backend/x86/codegen/emit.rs:1148
Method
jump_mnemonic
(&self)
src/backend/riscv/codegen/emit.rs:495
Method
jump_mnemonic
(&self)
src/backend/i686/codegen/emit.rs:1466
Method
lea_scale_for_mul
LEA scale factor for multiply strength reduction. Returns the LEA scale factor for multipliers 3, 5, 9 (which decompose as reg + reg*2, reg + reg*4, r
src/backend/x86/codegen/emit.rs:914
Method
leaf_composite_type
Get the leaf (innermost non-array) composite type, if the leaf is a struct/union. Returns None if the leaf is a scalar type.
src/ir/lowering/global_init_bytes.rs:745
Method
leaf_ir_type
Get the leaf (innermost non-array) IR type for a possibly nested array type.
src/ir/lowering/global_init_bytes.rs:736
Function
link_builtin
( object_files: &[&str], output_path: &str, user_args: &[String], lib_paths: &[&str], need
src/backend/x86/linker/link.rs:18
Function
link_builtin
Link object files into a RISC-V ELF executable (pre-resolved CRT/library variant). This is the primary entry point, matching the pattern used by x86-
src/backend/riscv/linker/link.rs:31
Function
link_builtin
Built-in linker entry point with pre-resolved CRT objects and library paths.
src/backend/i686/linker/link.rs:18
Function
link_shared
Create a shared library (.so) from object files. Produces an ELF `ET_DYN` file with position-independent base address (0), exporting all defined glob
src/backend/x86/linker/link.rs:208
Function
link_shared
Link object files into a RISC-V shared library (.so). Produces an ET_DYN ELF with base address 0 (position-independent). All defined global symbols a
src/backend/riscv/linker/link.rs:179
Function
link_shared
Create a shared library (.so) from ELF32 object files. Produces an ELF32 `ET_DYN` file with base address 0, exporting all defined global symbols. Use
src/backend/i686/linker/link.rs:120
Method
load_dest_reg
Destination register for loads. U32/F32 use movl which needs %eax.
src/backend/x86/codegen/emit.rs:747
Function
load_file_elf64
Planned shared infrastructure; x86/ARM linkers will migrate to this
src/backend/linker_common/archive.rs:155
Method
load_for_type
(ty: IrType)
src/backend/riscv/codegen/emit.rs:451
Method
load_input_to_reg
(&mut self, op: &AsmOperand, val: &Operand, _constraint: &str)
src/backend/x86/codegen/asm_emitter.rs:269
Method
load_input_to_reg
(&mut self, op: &AsmOperand, val: &Operand, _constraint: &str)
src/backend/riscv/codegen/asm_emitter.rs:253
Method
load_input_to_reg
(&mut self, op: &AsmOperand, val: &Operand, _constraint: &str)
src/backend/i686/codegen/asm_emitter.rs:200
Method
load_instr_for_type_impl
(&self, ty: IrType)
src/backend/x86/codegen/prologue.rs:418
Method
load_instr_for_type_impl
(&self, ty: IrType)
src/backend/riscv/codegen/prologue.rs:566
Method
load_instr_for_type_impl
(&self, ty: IrType)
src/backend/i686/codegen/prologue.rs:659
Method
long_double
Create a LongDouble constant from an f64 value (low precision - bytes derived from f64). Use this when no full-precision source text is available.
src/ir/constants.rs:168
Method
long_double_from_i128
Create a LongDouble constant from a signed i128 with maximum precision. Uses direct integer-to-f128 conversion. Values with magnitude up to 2^112 are
src/ir/constants.rs:202
Method
long_double_from_i64
Create a LongDouble constant from a signed i64 with full precision. Uses direct integer-to-f128 conversion to preserve all 64 bits of precision.
src/ir/constants.rs:179
Method
long_double_from_u128
Create a LongDouble constant from an unsigned u128 with maximum precision. Uses direct integer-to-f128 conversion. Values up to 2^112 are exact; large
src/ir/constants.rs:194
Method
long_double_from_u64
Create a LongDouble constant from an unsigned u64 with full precision. Uses direct integer-to-f128 conversion to preserve all 64 bits of precision.
src/ir/constants.rs:186
Method
long_double_with_bytes
Create a LongDouble constant with full-precision f128 bytes.
src/ir/constants.rs:173
Method
looks_like_binary_object
Check if a file appears to be a binary object/archive by inspecting magic bytes. Returns true for ELF files (\x7fELF) and ar archives (!<arch>\n).
src/driver/file_types.rs:59
Function
main
()
src/main.rs:1
Function
main
()
src/bin/ccc_arm.rs:1
Function
main
()
src/bin/ccc_i686.rs:1
Function
main
()
src/bin/ccc_riscv.rs:1
Function
main
()
src/bin/ccc_x86.rs:1
Method
maybe_promote_long_double
Conditionally promote a value to long double.
src/ir/lowering/global_init.rs:1781
Method
mnemonic
(self)
src/backend/x86/codegen/peephole/types.rs:139
Method
mnemonic
(self)
src/backend/i686/codegen/peephole.rs:75
Method
mov_load_for_type
Get the load instruction mnemonic for a given type.
src/backend/x86/codegen/emit.rs:734
Method
mov_store_for_type
Get the store instruction mnemonic for a given type.
src/backend/x86/codegen/emit.rs:724
Method
needs_register_pair
(&self, ty: IrType)
src/backend/i686/codegen/asm_emitter.rs:592
Method
new
(input: &str, file_id: u32)
src/frontend/lexer/scan.rs:14
Method
new
(kind: TokenKind, span: Span)
src/frontend/lexer/token.rs:190
Method
new
(tokens: Vec<Token>)
src/frontend/parser/parse.rs:289
Method
new
Create a new `FunctionAttributes` with all flags cleared.
src/frontend/parser/ast.rs:72
Method
new
()
src/frontend/sema/analysis.rs:143
Method
new
()
src/frontend/sema/type_context.rs:96
Method
new
()
src/frontend/preprocessor/pipeline.rs:125
Method
new
()
src/frontend/preprocessor/conditionals.rs:33
Method
new
()
src/frontend/preprocessor/macro_defs.rs:130
Method
new
()
src/backend/common.rs:800
Method
new
()
src/backend/state.rs:211
Method
new
()
src/backend/elf_writer_common.rs:304
Method
new
Build a `LineStore` from an assembly string.
src/backend/peephole_common.rs:140
← previous
next →
5,001–5,100 of 6,057, ranked by callers