MCPcopy Create free account

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

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

↓ 1 callersMethodtry_encode_sse_cmp_pseudo
Try to encode an SSE comparison pseudo-op (e.g. cmpnleps -> cmpps $6, src, dst)
src/backend/x86/assembler/encoder/avx.rs:586
↓ 1 callersMethodtry_eval_constant_bool
Try to evaluate an expression as a compile-time boolean (true=non-zero, false=zero). Returns None if the expression is not a compile-time constant.
src/frontend/sema/analysis.rs:1300
↓ 1 callersFunctiontry_expand_ldr_literal
Try to parse `ldr Rd, =symbol[+offset]` pseudo-instruction. In GAS, `ldr Rd, =expr` loads a 64-bit value via a literal pool. Returns a `LdrLiteralPoo
src/backend/arm/assembler/parser.rs:1375
↓ 1 callersMethodtry_fill_string_literal_init
Try to interpret a brace-wrapped init list as a string literal for a char array. Returns true if handled.
src/ir/lowering/global_init_bytes.rs:830
↓ 1 callersFunctiontry_fold_float_cast_mapped
Try to fold a cast involving float types. TODO: simplify.rs also has float cast folding via IrConst::cast_float_to_target which doesn't check for NaN/
src/passes/constant_fold.rs:585
↓ 1 callersFunctiontry_fold_memory_operand
Try to fold a stack slot into an ALU instruction. Returns the folded instruction string if successful.
src/backend/i686/codegen/peephole.rs:1431
↓ 1 callersMethodtry_load_f128_full_precision
Try to load a full-precision f128 value via f128 tracking. Returns true if successful.
src/backend/arm/codegen/emit.rs:1371
↓ 1 callersMethodtry_lower_atomic_builtin
Try to lower a GCC atomic builtin (__atomic_* or __sync_*). Uses table-driven dispatch for fetch-op and op-fetch families. The __atomic_* variants ta
src/ir/lowering/expr_atomics.rs:32
↓ 1 callersMethodtry_lower_bitfield_assign
Try to lower assignment to a bitfield member.
src/ir/lowering/expr_assign.rs:168
↓ 1 callersMethodtry_lower_bitfield_compound_assign
Try to lower compound assignment to a bitfield member (e.g., s.bf += val).
src/ir/lowering/expr_assign.rs:186
↓ 1 callersMethodtry_lower_bitfield_inc_dec
(&mut self, inner: &Expr, is_inc: bool, return_new: bool)
src/ir/lowering/expr_ops.rs:806
↓ 1 callersMethodtry_lower_block_func_decl
Handle block-scope function declarations: `int f(int);` These declare an external function, not a local variable. Returns true if this was a function
src/ir/lowering/stmt_init.rs:63
↓ 1 callersMethodtry_lower_builtin_call
Try to lower a __builtin_* call. Returns Some(result) if handled.
src/ir/lowering/expr_builtins.rs:37
↓ 1 callersMethodtry_lower_extern_global
Handle extern without initializer. Returns true if handled (caller should continue).
src/ir/lowering/global_decl.rs:191
↓ 1 callersMethodtry_lower_pointer_arithmetic
(&mut self, op: &BinOp, lhs: &Expr, rhs: &Expr)
src/ir/lowering/expr_ops.rs:138
↓ 1 callersMethodtry_lower_register_global
Handle global register variable. Returns true if handled (caller should continue).
src/ir/lowering/global_decl.rs:176
↓ 1 callersFunctiontry_narrow_const_for_cmp
Narrow a constant for use in a Cmp instruction. Requires that the constant's value is preserved when extended back to 64 bits. This prevents narrowing
src/passes/narrow.rs:640
↓ 1 callersMethodtry_parse_asm_register_name
Try to extract a label/register name from __asm__("name") on a declaration. Called when the current token is LParen after __asm__. Handles both: - Reg
src/frontend/parser/parse.rs:950
↓ 1 callersFunctiontry_parse_immediate_symbol_offset
Try to parse a `symbol+offset` or `symbol-offset` expression as an immediate value. This handles cases like `init_top_pgt - 0xffffffff80000000` where
src/backend/x86/assembler/parser.rs:1304
↓ 1 callersFunctiontry_parse_memory_operand
Try to parse a memory operand like `offset(reg)` or `%lo(sym)(reg)`.
src/backend/riscv/assembler/parser.rs:937
↓ 1 callersMethodtry_parse_paren_abstract_declarator
Try to parse a parenthesized abstract declarator: (*), ((*)), (**), (*[3][4]) Also handles nested function pointers: (*(*)(params)) Returns a ParenAbs
src/frontend/parser/declarators.rs:718
↓ 1 callersFunctiontry_parse_symbol_diff
Try to parse a symbol difference expression like "A - B" or "A - B + C". Also handles numeric label references like "662b-661b". Handles parenthesized
src/backend/arm/assembler/parser.rs:2495
↓ 1 callersFunctiontry_parse_symbol_offset
Try to parse symbol+offset or symbol-offset. Also handles offset+symbol (e.g., 0x9b000000 + some_symbol).
src/backend/arm/assembler/parser.rs:2571
↓ 1 callersFunctiontry_parse_symbol_plus_offset
Try to parse a `symbol+offset` or `symbol-offset` expression. Returns None if the string doesn't match this pattern.
src/backend/x86/assembler/parser.rs:1264
↓ 1 callersFunctiontry_propagate_into
Try to replace uses of `dst_id` with `src_id` in instruction at index `j`. Returns true if a replacement was made.
src/backend/x86/codegen/peephole/passes/copy_propagation.rs:24
↓ 1 callersFunctiontry_reassociate_add
Try reassociating addition: (x + C1) + C2 => x + (C1 + C2) Also handles: C2 + (x + C1) => x + (C1 + C2)
src/passes/simplify.rs:1189
↓ 1 callersFunctiontry_reassociate_mul
Try reassociating multiplication: (x * C1) * C2 => x * (C1 * C2) Also handles: C2 * (x * C1) => x * (C1 * C2) (commuted) Integer multiplication is ass
src/passes/simplify.rs:1490
↓ 1 callersFunctiontry_reassociate_shift
Try reassociating shift operations: (x << C1) << C2 => x << (C1 + C2) Works for Shl, AShr, and LShr (but only when same shift direction).
src/passes/simplify.rs:1435
↓ 1 callersFunctiontry_reassociate_sub
Try reassociating subtraction: - (x + C1) - C2 => x + (C1 - C2) - (x - C1) - C2 => x - (C1 + C2)
src/passes/simplify.rs:1295
↓ 1 callersMethodtry_recover_local_const
Try to recover a constant value for a local variable used as an inline asm input with an immediate-alternative constraint (e.g., "rK", "rI"). When a
src/ir/lowering/stmt_asm.rs:543
↓ 1 callersFunctiontry_resolve_const
Try to resolve an operand to a constant i64 value, looking through Copies.
src/passes/iv_strength_reduce.rs:624
↓ 1 callersFunctiontry_resolve_global_symbol
Try to resolve a Value to a global symbol + constant offset string. Returns e.g., "boot_cpu_data" or "boot_cpu_data+74".
src/passes/resolve_asm.rs:90
↓ 1 callersFunctiontry_resolve_global_with_offset
Recursively trace a Value back through its def chain to find GlobalAddr + constant offsets (from GEP, Add, Cast/Copy).
src/passes/resolve_asm.rs:103
↓ 1 callersMethodtry_resolve_objlike_to_funclike
After expanding an object-like macro, check if the result is a function-like macro name and the remaining source starts with '('. If so, expand the fu
src/frontend/preprocessor/macro_defs.rs:322
↓ 1 callersMethodtry_resolve_typeof_with_scope
Try to resolve a TypeSpecifier by replacing Typeof nodes with concrete type specs, using both normal expression type resolution and a supplementary sc
src/ir/lowering/expr_types.rs:1429
↓ 1 callersMethodtry_scalar_to_complex_return
Try converting a non-complex scalar to complex for return from a complex function.
src/ir/lowering/stmt_return.rs:314
↓ 1 callersMethodtry_small_struct_return
Try small struct return (<= 8 bytes loaded as I64). Only used on 64-bit targets; on i686, ALL structs use sret.
src/ir/lowering/stmt_return.rs:202
↓ 1 callersMethodtry_sret_return
Try to handle return via sret (hidden pointer for large structs/complex). Returns Some(operand) if this is an sret return, None otherwise.
src/ir/lowering/stmt_return.rs:75
↓ 1 callersMethodtry_two_reg_struct_return
Try two-register struct return (9-16 bytes packed into I128).
src/ir/lowering/stmt_return.rs:147
↓ 1 callersMethodtyped_zero_const
Get the appropriate zero constant for a type, considering long double.
src/ir/lowering/global_init.rs:1786
↓ 1 callersFunctionu128_to_f128_bytes
Convert an unsigned u128 to f128 bytes. Values with more than 113 significant bits will be rounded.
src/common/long_double.rs:980
↓ 1 callersMethodunbiased_exp
(&self)
src/common/long_double.rs:565
↓ 1 callersMethodundefine_macro
Undefine a macro by name.
src/frontend/preprocessor/pipeline.rs:701
↓ 1 callersMethodunion_layout_key
Get the StructLayout key for a union TypeSpecifier. Returns the layout map key if the type is a union (directly or via typedef).
src/ir/lowering/structs.rs:229
↓ 1 callersMethodunion_with
self = self | other. Returns true if self changed.
src/backend/liveness.rs:85
↓ 1 callersMethodunpack_two_reg_return
Unpack a two-register (I128) struct return into a struct alloca.
src/ir/lowering/expr_calls.rs:319
↓ 1 callersMethodunwrap_case_label
Unwrap case/default label wrappers to get to the inner statement.
src/frontend/sema/analysis.rs:1204
↓ 1 callersMethoduser_label_exists
Check if a user-defined goto label has already been defined (i.e., the label statement was already lowered). Used to determine backward vs forward got
src/ir/lowering/lower.rs:1258
↓ 1 callersFunctionutf8_sequence_length
Determine the expected length of a UTF-8 sequence from its first byte.
src/common/encoding.rs:65
↓ 1 callersFunctionvalidate_object_architectures
Validate that all .o files in a list match the expected ELF e_machine. Returns Ok(()) if all files match or are not ELF objects (archives, shared libs
src/backend/common.rs:136
↓ 1 callersMethodvalue
(&self)
src/backend/arm/linker/types.rs:46
↓ 1 callersMethodvector_element_ir_type
Get the IR element type if this is a vector or array-of-vectors type. Returns None if this is not a vector-related type.
src/ir/lowering/definitions.rs:321
↓ 1 callersFunctionvmull_p64
64-bit polynomial multiply (for crypto/GHASH). * Scalar C implementation of carry-less multiplication - functionally correct * but much slower than
include/arm_neon.h:968
↓ 1 callersFunctionvreg_num
Parse a vector register name to its 5-bit encoding (0-31). Handles v0-v31.
src/backend/riscv/assembler/encoder/mod.rs:246
↓ 1 callersFunctionwarn_gcc_assembler
(command: &str)
src/backend/common.rs:32
↓ 1 callersFunctionwarn_gcc_linker
(command: &str)
src/backend/common.rs:44
↓ 1 callersFunctionwarn_gcc_source_assembler
(command: &str)
src/driver/external_tools.rs:16
↓ 1 callersMethodwarning
Create a new warning diagnostic with a category.
src/common/error.rs:365
↓ 1 callersMethodwarnings
Get preprocessing warnings.
src/frontend/preprocessor/pipeline.rs:642
↓ 1 callersFunctionwould_create_phi_conflict
Check if threading a CondBranch's two edges to the same final target would create a phi conflict — i.e., the target has phi nodes that carry different
src/passes/cfg_simplify.rs:575
↓ 1 callersFunctionwreg_name
Return the w-register name for a given ID.
src/backend/arm/codegen/peephole.rs:129
↓ 1 callersMethodwrite_elf
Write the final ELF object file.
src/backend/arm/assembler/elf_writer.rs:779
↓ 1 callersMethodwrite_elf
Write the final ELF object file.
src/backend/riscv/assembler/elf_writer.rs:1411
↓ 1 callersFunctionwrite_elf_header
Write a minimal ELF64 header for a RISC-V executable.
src/backend/riscv/linker/emit_exec.rs:1076
↓ 1 callersFunctionwrite_elf_header
(output: &mut [u8], entry_point: u32, ehdr_size: u32, num_phdrs: u32)
src/backend/i686/linker/emit.rs:1229
↓ 1 callersFunctionwrite_phdr64
Write an ELF64 program header to `buf` at offset `off`.
src/backend/elf/io.rs:131
↓ 1 callersFunctionwrite_rel32
Write an ELF32 REL relocation entry to `buf`.
src/backend/elf/io.rs:191
↓ 1 callersFunctionwrite_rela32
Write an ELF32 RELA relocation entry to `buf`. Used by architectures that require RELA even in 32-bit mode (e.g., RISC-V).
src/backend/elf/io.rs:199
↓ 1 callersFunctionwrite_rela64
Write an ELF64 RELA relocation entry to `buf`.
src/backend/elf/io.rs:183
↓ 1 callersFunctionwrite_sym32
Write an ELF32 symbol table entry to `buf`.
src/backend/elf/io.rs:169
↓ 1 callersFunctionwrite_sym64
Write an ELF64 symbol table entry to `buf`.
src/backend/elf/io.rs:155
↓ 1 callersFunctionx86_intrinsic_kind
Map a BuiltinIntrinsic to its emission pattern.
src/ir/lowering/expr_builtins.rs:751
↓ 1 callersFunctionx86_intrinsic_op
Map a BuiltinIntrinsic to its corresponding IntrinsicOp.
src/ir/lowering/expr_builtins.rs:775
↓ 1 callersFunctionx87_neg
Negate an x87 80-bit extended precision value by flipping the sign bit. This preserves full precision since it only changes one bit.
src/common/long_double.rs:1850
Function_MM_GET_EXCEPTION_MASK
Get/set exception mask */
include/xmmintrin.h:672
Function_MM_GET_EXCEPTION_STATE
Get/set exception state */
include/xmmintrin.h:659
Function_MM_GET_FLUSH_ZERO_MODE
Get/set flush-to-zero mode */
include/xmmintrin.h:698
Function_MM_GET_ROUNDING_MODE
Get/set rounding mode */
include/xmmintrin.h:685
Function_MM_SET_EXCEPTION_MASK
include/xmmintrin.h:678
Function_MM_SET_EXCEPTION_STATE
include/xmmintrin.h:665
Function_MM_SET_FLUSH_ZERO_MODE
include/xmmintrin.h:704
Function_MM_SET_ROUNDING_MODE
include/xmmintrin.h:691
Function__bsfd
Bit-scan intrinsics */
include/x86intrin.h:38
Function__bsfq
include/x86intrin.h:72
Function__bsrd
include/x86intrin.h:47
Function__bsrq
include/x86intrin.h:81
Function__bswapd
Byte-swap intrinsics */
include/x86intrin.h:57
Function__bswapq
include/x86intrin.h:65
Function__ccc_sha1rnds4
SHA1RNDS4: Perform four rounds of SHA1 operation. * __func selects the boolean function: * 0: Ch(b,c,d) = (b & c) ^ (~b & d) * 1: Parity(b,c,d)
include/shaintrin.h:85
Function__pause
Pause instruction - hint for spin-wait loops */
include/x86intrin.h:92
Function__rdtsc
rdtsc - Read Time-Stamp Counter */
include/x86intrin.h:14
Function__rdtscp
rdtscp - Read Time-Stamp Counter and Processor ID */
include/x86intrin.h:24
Function__rolb
Rotation intrinsics */
include/x86intrin.h:100
Function__rold
include/x86intrin.h:114
Function__rolq
include/x86intrin.h:143
Function__rolw
include/x86intrin.h:107
Function__rorb
include/x86intrin.h:121
Function__rord
include/x86intrin.h:135
Function__rorq
include/x86intrin.h:150
Function__rorw
include/x86intrin.h:128
← previousnext →3,601–3,700 of 6,057, ranked by callers