Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jamesbarford/holyc-lang
/ functions
Functions
2,620 in github.com/Jamesbarford/holyc-lang
⨍
Functions
2,620
◇
Types & classes
147
↓ 1 callers
Function
compilePrintAst
src/compile.c:17
↓ 1 callers
Function
compileToAsm
src/compile.c:42
↓ 1 callers
Function
compileToAst
src/compile.c:70
↓ 1 callers
Function
compileToTokens
src/compile.c:52
↓ 1 callers
Function
countNumberLen
src/lexer.c:743
↓ 1 callers
Function
debugColourAoStr
src/ir-debug.c:29
↓ 1 callers
Function
debugColourFloat
src/ir-debug.c:21
↓ 1 callers
Function
dec_alu_rm_imm
ALU r/m, imm - opcode 0x80/0x81/0x83 with reg field selecting op: * /0 ADD /1 OR /2 ADC /3 SBB /4 AND /5 SUB /6 XOR /7 CMP. */
src/asm/dis_x86_64.c:325
↓ 1 callers
Function
dec_f7
F7 /n - unary group: NEG/NOT/TEST/MUL/DIV/IDIV. */
src/asm/dis_x86_64.c:349
↓ 1 callers
Function
dec_ff
FF /n - group containing CALL r/m, JMP r/m, PUSH r/m, INC, DEC, etc. */
src/asm/dis_x86_64.c:406
↓ 1 callers
Function
dec_lea
LEA r, [mem] - 0x8D. */
src/asm/dis_x86_64.c:597
↓ 1 callers
Function
dec_mov_imm_reg
MOVABS r64, imm64 - 0xB8+r with REX.W. The non-W form is "mov r32, imm32". */
src/asm/dis_x86_64.c:278
↓ 1 callers
Function
dec_mov_rm_imm
MOV r/m, imm32 (0xC7 /0) and MOV r/m8, imm8 (0xC6 /0). */
src/asm/dis_x86_64.c:302
↓ 1 callers
Function
dec_mov_rm_r
MOV instructions covering 0x88/89 (store) and 0x8A/8B (load), where * 0x88/0x8A are 8-bit and 0x89/0x8B are width-extended. */
src/asm/dis_x86_64.c:271
↓ 1 callers
Function
dec_movsxd
MOVSXD r64, r/m32 - 0x63 with REX.W. */
src/asm/dis_x86_64.c:584
↓ 1 callers
Function
dec_movzx_movsx
MOVZX / MOVSX with two-byte opcode 0x0F 0xB6/B7/BE/BF. * * 0x0F 0xB6 MOVZX r, r/m8 * 0x0F 0xB7 MOVZX r, r/m16 * 0x0F 0xBE MOVSX r, r/m8 *
src/asm/dis_x86_64.c:554
↓ 1 callers
Function
dec_setcc
SETcc r/m8. Opcode 0x0F 0x90+cc. */
src/asm/dis_x86_64.c:571
↓ 1 callers
Function
dec_shift_cl
D0/D1 /n - shift by 1; D2/D3 /n - shift by CL. * /4 SHL, /5 SHR, /6 SAL (alias of SHL), /7 SAR. */
src/asm/dis_x86_64.c:374
↓ 1 callers
Function
dec_shift_imm
C1 /n - shift by imm8. */
src/asm/dis_x86_64.c:390
↓ 1 callers
Function
dec_sse
src/asm/dis_x86_64.c:452
↓ 1 callers
Function
decode_logical_imm
Decode the AArch64 N:immr:imms "logical immediate" bitmask form into * the actual constant. Returns 1 on success, 0 if the (N, immr, imms) * triple
src/asm/dis_arm64.c:62
↓ 1 callers
Function
decode_one
src/asm/dis_x86_64.c:612
↓ 1 callers
Function
emitFile
src/main.c:198
↓ 1 callers
Function
evalClassRef
src/prsutil.c:184
↓ 1 callers
Function
format_mem
Format an `[base + disp]` (or `[base + index*scale + disp]`) operand * string into `buf`. `mod` and `rm` are from the ModRM byte; the * function adv
src/asm/dis_x86_64.c:140
↓ 1 callers
Function
format_mem
src/asm/asm.c:1544
↓ 1 callers
Function
format_operand
src/asm/asm.c:1591
↓ 1 callers
Function
format_reg
src/asm/asm.c:1518
↓ 1 callers
Function
fp_reg_letter
src/asm/dis_arm64.c:1247
↓ 1 callers
Function
fp_vec_arr
src/asm/dis_arm64.c:1503
↓ 1 callers
Function
getASMFileName
src/cli.c:329
↓ 1 callers
Function
getBuildModeStr
src/cli.c:149
↓ 1 callers
Function
gitGetHash
src/cli.c:141
↓ 1 callers
Function
globalArenaInit
src/memory.c:18
↓ 1 callers
Function
globalArenaPrintStats
src/memory.c:39
↓ 1 callers
Function
globalArenaRelease
src/memory.c:29
↓ 1 callers
Function
hccJitRunMain
src/jit-common.c:583
↓ 1 callers
Function
hccLibInit
src/main.c:70
↓ 1 callers
Function
irArrayInitToString
* @Bug - Non breaking as in principle the array will still work. * Because we flatten something like: * * `I64 array[][2][2] = {{{1,1}, {2,2}}, {
src/ir-debug.c:210
↓ 1 callers
Function
irBinOpIsCompoundAssign
src/ir.c:300
↓ 1 callers
Function
irBlockIsRedundantJump
* Does the current block end with a jump, have one successor and the successor * has one predecessor? */
src/ir-types.c:482
↓ 1 callers
Function
irBlockIsStartOrEnd
src/ir-types.c:409
↓ 1 callers
Function
irBlockTerminator
src/ir-regalloc.c:353
↓ 1 callers
Function
irBlockToString
Convert a basic block to a string * <block_name>: * <instructions...> * */
src/ir-debug.c:589
↓ 1 callers
Function
irBlockToStringSimplified
src/ir-debug.c:677
↓ 1 callers
Function
irCgAllocAllTmps
Slot allocation for IR tmps. Two passes: * 1. Bind IR_ALLOCA sized scratch and IR_GEP aliases via the * existing per-op path. Both need a fix
src/ir-regalloc.c:238
↓ 1 callers
Function
irCgAllocOperandsForInstr
src/ir-regalloc.c:71
↓ 1 callers
Function
irCgAllocTmpSized
Reserve a fresh stack slot of a specific size (rounded up to 8-byte * alignment). Used by IR_ALLOCA so that a 256-byte alloca actually * gets 256 by
src/ir-regalloc.c:57
↓ 1 callers
Function
irCgBindAstLoffs
Bind every variable known to the IR (params + alloca'd locals) to its * AST-driven loff. Walk the AST function's params and locals lists; the * elig
src/ir-regalloc.c:423
↓ 1 callers
Function
irCgComputeAstLayout
src/ir-regalloc.c:565
↓ 1 callers
Function
irCollectEscapingLVars
src/ir.c:2753
↓ 1 callers
Function
irCompoundAssignToIrOp
src/ir.c:951
↓ 1 callers
Function
irCtxAddFunction
src/ir-types.c:774
↓ 1 callers
Function
irDeadStoreEliminate
src/ir-optimise.c:876
↓ 1 callers
Function
irDump
src/ir.c:3106
↓ 1 callers
Function
irEvalBinop
src/ir-eval.c:15
↓ 1 callers
Function
irEvalBlock
src/ir-eval.c:103
↓ 1 callers
Function
irEvalCanFold
True if `I` is `x <op> k` (or commuted) where the algebraic * identity collapses to `x`. `c` is the constant operand (whichever * side of `I`) and `
src/ir-eval.c:79
↓ 1 callers
Function
irEvalCmp
src/ir-eval.c:59
↓ 1 callers
Function
irEvalConstantExpressions
src/ir-eval.c:225
↓ 1 callers
Function
irFindMemConsumer
Walk forward in `bb` from the node after `cur` looking for the * single use of `dst` as a memory op's address operand. Returns the * consumer or NUL
src/ir-optimise.c:623
↓ 1 callers
Function
irFoldGlobalDeref
Fold `lea %t, global G; ...; <load|store>_deref %t, ...` into the * deref pointing straight at the global. Backend addressing modes can * usually re
src/ir-optimise.c:198
↓ 1 callers
Function
irFoldPassThroughBlocks
Fold "pass-through" blocks: a block whose only instruction is a * single IR_JMP X. Every predecessor's branch-target is rewired to X * directly and
src/ir-optimise.c:148
↓ 1 callers
Function
irForwardReturnSlot
src/ir-optimise.c:256
↓ 1 callers
Function
irForwardStoreToReads
src/ir-optimise.c:401
↓ 1 callers
Function
irFunctionAddPredecessor
src/ir-types.c:701
↓ 1 callers
Function
irFunctionAddSuccessor
Pass in the whole block to abstract away that we area using an interal * datastructure to keep track of things. I'm trying a few different ones out
src/ir-types.c:692
↓ 1 callers
Function
irFunctionGetPredecessors
src/ir-types.c:648
↓ 1 callers
Function
irFunctionGetSuccessors
src/ir-types.c:640
↓ 1 callers
Function
irFunctionNew
src/ir-types.c:789
↓ 1 callers
Function
irFunctionToString
src/ir-debug.c:647
↓ 1 callers
Function
irFunctionVecNew
src/ir-types.c:669
↓ 1 callers
Function
irFuseIaddIntoMemAddressing
Fold IADD/ISUB into the addressing mode of its single mem-op * consumer. Two folds, tried in order per IADD: * - const disp: `iadd t, ptr, k_imm`
src/ir-optimise.c:708
↓ 1 callers
Function
irFuseLoadOpStore
Rewrite `load + binop + store_deref` triples on the same address * (`*p OP= val`) to IR_RMW_DEREF. The three ops must be adjacent * (skipping only N
src/ir-optimise.c:820
↓ 1 callers
Function
irInstrGetFallthroughBlock
src/ir-types.c:279
↓ 1 callers
Function
irJumpInternal
src/ir-types.c:835
↓ 1 callers
Function
irLowerArrayInitWalk
Recursively lower an AST_ARRAY_INIT against `base + offset_bytes`, * mirroring `asmArrayInit`'s walk: when iterating items of an array * type the st
src/ir.c:1183
↓ 1 callers
Function
irLowerAssign
Lower `<lhs> op= rhs` (or `<lhs> = rhs` when op is AST_BIN_OP_ASSIGN) * and return the value written back. */
src/ir.c:1096
↓ 1 callers
Function
irLowerBinOpExpr
Binary expressions are assumed to always be assigning to something. I'm not * 100% sure this is a valid assumption to make. Well I guess; * `I64 x =
src/ir.c:485
↓ 1 callers
Function
irLowerClassRef
src/ir.c:1407
↓ 1 callers
Function
irLowerDecl
src/ir.c:2142
↓ 1 callers
Function
irLowerDoWhileLoop
src/ir.c:2086
↓ 1 callers
Function
irLowerForLoop
src/ir.c:2002
↓ 1 callers
Function
irLowerFunPtr
src/ir.c:1398
↓ 1 callers
Function
irLowerGlobal
src/ir.c:1378
↓ 1 callers
Function
irLowerGoto
src/ir.c:2275
↓ 1 callers
Function
irLowerIf
src/ir.c:1966
↓ 1 callers
Function
irLowerLVar
src/ir.c:1317
↓ 1 callers
Function
irLowerLabel
src/ir.c:2302
↓ 1 callers
Function
irLowerReturn
src/ir.c:1791
↓ 1 callers
Function
irLowerSwitch
src/ir.c:2322
↓ 1 callers
Function
irLowerThrow
throw(value) lowers to a single HCC_Throw(value) call. The runtime * longjmps so control never returns; mark the current block sealed * so the lower
src/ir.c:1960
↓ 1 callers
Function
irLowerTry
try { try_body } catch <catch_body> compiles to: * * frame = alloca(CatchFrame) ; ~256 bytes, opaque * t = HCC_TryEnter(&fr
src/ir.c:1889
↓ 1 callers
Function
irLowerUnOp
src/ir.c:1517
↓ 1 callers
Function
irLowerWhileLoop
src/ir.c:2055
↓ 1 callers
Function
irMemoryInit
src/ir-types.c:13
↓ 1 callers
Function
irMemoryRelease
src/ir-types.c:21
↓ 1 callers
Function
irMemoryStats
src/ir-types.c:32
↓ 1 callers
Function
irOpDefsIntoResultReg
Does op `I` leave its dst's value in the architecture-canonical * result register (rax/xmm0 on x86_64, x0/d0 on aarch64)? If yes * it's eligible to
src/ir-optimise.c:935
↓ 1 callers
Function
irOpReadsAsR1
Does op `I` read `var_id` as its first source, the operand the * backend will load into the result register first? */
src/ir-optimise.c:965
← previous
next →
1,201–1,300 of 2,620, ranked by callers