MCPcopy Create free account

hub / github.com/akyoto/q / functions

Functions1,095 in github.com/akyoto/q

↓ 3 callersMethodStringFrom
StringFrom returns the token string.
src/token/Token.go:45
↓ 3 callersFunctionSubRegisterNumber
SubRegisterNumber subtracts a number from the given register.
src/x86/Sub.go:8
↓ 3 callersFunctionSyscall
Syscall is the primary way to communicate with the OS kernel.
src/arm/Syscall.go:4
↓ 3 callersMethodTypeFromToken
TypeFromToken returns the type with the given token or `nil` if it doesn't exist.
src/core/TypeFromToken.go:10
↓ 3 callersFunctionaddRegisterNumber
addRegisterNumber adds the register and optionally updates the condition flags based on the result.
src/arm/Add.go:20
↓ 3 callersFunctioncomplexityKeepAlive
complexityKeepAlive returns the number of registers needed when all expressions must be kept alive at the same time.
src/optimizer/Complexity.go:61
↓ 3 callersFunctionencodeLogicalImmediate
encodeLogicalImmediate encodes a bitmask immediate. The algorithm used here was made by Dougall Johnson.
src/arm/bitmask.go:7
↓ 3 callersMethodevaluatePackageMember
evaluatePackageMember converts a pkg.something expression to an SSA value.
src/core/evaluatePackageMember.go:13
↓ 3 callersMethodevaluateStringOp
evaluateStringOp calls a function with two strings.
src/core/evaluateStringOp.go:8
↓ 3 callersFunctionfilter
filter returns true if the function doesn't pass the filter.
src/verbose/filter.go:6
↓ 3 callersFunctionisDigit
isDigit returns true for decimal digits.
src/token/digit.go:25
↓ 3 callersMethodisSpilled
isSpilled returns true if it's a virtual register.
src/codegen/spill.go:12
↓ 3 callersFunctionmakeTypeToken
makeTypeToken creates a new type expression wrapped inside a single token.
src/expression/type.go:16
↓ 3 callersMethodmultiplySize
multiplySize multiplies the `count` with the `size` if needed.
src/core/multiplySize.go:9
↓ 3 callersFunctionprepareShiftX86
prepareShiftX86 checks that the registers are correct for the shift instruction and also moves source to destination and the operand to R1 if needed.
src/asm/compilerX86.go:464
↓ 3 callersFunctionreg2Imm
reg2Imm encodes an instruction with 2 registers and an immediate.
src/arm/encode.go:29
↓ 3 callersFunctionshow
show parses the text and prints it with colors.
src/cli/show.go:12
↓ 3 callersMethodsize
size returns the size of the entire code signature section.
src/macho/CodeSignature.go:79
↓ 3 callersMethodspillOffset
spillOffset returns the stack offset in bytes for a virtual register.
src/codegen/spill.go:29
↓ 3 callersFunctionsubRegisterNumber
subRegisterNumber subtracts the register and optionally updates the condition flags based on the result.
src/arm/Sub.go:20
↓ 3 callersFunctiontoX86Scale
toX86Scale returns the scale factor for the memory instruction.
src/asm/compilerX86.go:485
↓ 2 callersFunctionASM
ASM shows the assembly code.
src/verbose/ASM.go:14
↓ 2 callersFunctionAddRegisterRegister
AddRegisterRegister adds a register to a register.
src/arm/Add.go:15
↓ 2 callersFunctionAddRegisterRegister
AddRegisterRegister adds a register value into another register.
src/x86/Add.go:13
↓ 2 callersFunctionAndRegisterRegister
AndRegisterRegister performs a bitwise AND using two registers.
src/arm/And.go:14
↓ 2 callersFunctionAndRegisterRegister
AndRegisterRegister performs a bitwise AND using two registers.
src/x86/And.go:13
↓ 2 callersMethodApplyPatches
ApplyPatches applies the given patches to the code.
src/asm/patcher.go:14
↓ 2 callersMethodCPU
CPU returns the correct CPU for the build.
src/config/CPU.go:10
↓ 2 callersFunctionCall
Call places the return address on the top of the stack and continues program flow at the new address. The address is relative to the next instruction.
src/x86/Call.go:8
↓ 2 callersFunctionCallAt
CallAt calls a function at the address stored at the given memory address. The memory address is relative to the next instruction.
src/x86/Call.go:35
↓ 2 callersFunctionCallRegister
Calls a function whose address is stored in the given register.
src/x86/Call.go:20
↓ 2 callersFunctionCompareAndSwap
CompareAndSwap compares `oldValue` with the memory at `address`. If they are equal, `newValue` register is written to memory. If they are not equal, `
src/arm/CompareAndSwap.go:8
↓ 2 callersFunctionCompareAndSwapFixedOffset
CompareAndSwapFixedOffset is a CompareAndSwap with a fixed offset.
src/x86/CompareAndSwap.go:13
↓ 2 callersFunctionCompareRegisterNumber
Compares the register with the number and sets the status flags in the EFLAGS register.
src/x86/Compare.go:6
↓ 2 callersFunctionCompareRegisterRegister
CompareRegisterRegister is an alias for a subtraction that updates the conditional flags and discards the result.
src/arm/Compare.go:15
↓ 2 callersFunctionCompareRegisterRegister
CompareRegisterRegister compares a register with a register and sets the status flags in the EFLAGS register.
src/x86/Compare.go:11
↓ 2 callersMethodCompile
Compile only tests the compilation without actually running the executable.
tests/run_test.go:45
↓ 2 callersMethodError
()
src/compiler/errors.go:19
↓ 2 callersMethodError
()
src/scanner/errors.go:50
↓ 2 callersFunctionFold
Fold evaluates binary operations at compile time and replaces them with constants.
src/optimizer/Fold.go:8
↓ 2 callersMethodGlobals
Globals returns an iterator over all globals.
src/core/Environment.go:78
↓ 2 callersMethodIsLeaf
IsLeaf returns true if the expression has no children.
src/expression/Expression.go:67
↓ 2 callersFunctionJump8
Jump continues program flow at the new offset. The offset is relative to the next instruction.
src/x86/Jump.go:5
↓ 2 callersFunctionJump8IfEqual
JumpIfEqual jumps if the result was equal.
src/x86/Jump.go:10
↓ 2 callersFunctionJump8IfGreater
JumpIfGreater jumps if the result was greater.
src/x86/Jump.go:20
↓ 2 callersFunctionJump8IfGreaterEqual
JumpIfGreaterOrEqual jumps if the result was greater or equal.
src/x86/Jump.go:25
↓ 2 callersFunctionJump8IfLess
JumpIfLess jumps if the result was less.
src/x86/Jump.go:30
↓ 2 callersFunctionJump8IfLessEqual
JumpIfLessOrEqual jumps if the result was less or equal.
src/x86/Jump.go:35
↓ 2 callersFunctionJump8IfNotEqual
JumpIfNotEqual jumps if the result was not equal.
src/x86/Jump.go:15
↓ 2 callersFunctionJump8IfUnsignedGreater
Jump8IfUnsignedGreater jumps if the result was greater using unsigned comparison.
src/x86/Jump.go:40
↓ 2 callersFunctionJump8IfUnsignedGreaterEqual
Jump8IfUnsignedGreaterEqual jumps if the result was greater or equal using unsigned comparison.
src/x86/Jump.go:45
↓ 2 callersFunctionJump8IfUnsignedLess
Jump8IfUnsignedLess jumps if the result was less using unsigned comparison.
src/x86/Jump.go:50
↓ 2 callersFunctionJump8IfUnsignedLessEqual
Jump8IfUnsignedLessEqual jumps if the result was less or equal using unsigned comparison.
src/x86/Jump.go:55
↓ 2 callersFunctionJumpIfGreater
JumpIfGreater jumps if the result was greater.
src/arm/Jump.go:23
↓ 2 callersFunctionJumpIfGreaterEqual
JumpIfGreaterEqual jumps if the result was greater or equal.
src/arm/Jump.go:28
↓ 2 callersFunctionJumpIfLess
JumpIfLess jumps if the result was less.
src/arm/Jump.go:33
↓ 2 callersFunctionJumpIfLessEqual
JumpIfLessEqual jumps if the result was less or equal.
src/arm/Jump.go:38
↓ 2 callersFunctionJumpIfNotEqual
JumpIfNotEqual jumps if the result was not equal.
src/arm/Jump.go:18
↓ 2 callersFunctionJumpIfUnsignedGreater
JumpIfUnsignedGreater jumps if the result was greater using unsigned comparison.
src/arm/Jump.go:43
↓ 2 callersFunctionJumpIfUnsignedGreaterEqual
JumpIfUnsignedGreaterEqual jumps if the result was greater or equal using unsigned comparison.
src/arm/Jump.go:48
↓ 2 callersFunctionJumpIfUnsignedLess
JumpIfUnsignedLess jumps if the result was less using unsigned comparison.
src/arm/Jump.go:53
↓ 2 callersFunctionJumpIfUnsignedLessEqual
JumpIfUnsignedLessEqual jumps if the result was less or equal using unsigned comparison.
src/arm/Jump.go:58
↓ 2 callersMethodLine
Line returns the line contents and the offset from the position.
src/errors/FileError.go:32
↓ 2 callersMethodLink
Link returns a clickable link containing the path, line and column.
src/errors/FileError.go:81
↓ 2 callersMethodLiveFunctions
LiveFunctions returns an iterator over functions that are alive, starting with `run.init` and all of its dependencies.
src/core/Environment.go:92
↓ 2 callersFunctionLoad
Load loads from memory into a register with a register offset.
src/arm/Load.go:6
↓ 2 callersFunctionLoadAddress
LoadAddress calculates the address with the RIP-relative offset and writes the result to the destination register.
src/x86/LoadAddress.go:10
↓ 2 callersFunctionLoadFixedOffsetScaled
LoadFixedOffsetScaled loads from memory with a scaled unsigned offset from 0 to 4095 into a register.
src/arm/Load.go:26
↓ 2 callersFunctionLoadFixedOffsetScaledSigned
LoadFixedOffsetScaledSigned loads from memory with a scaled unsigned offset from 0 to 4095 into a register and sign-extends it.
src/arm/Load.go:31
↓ 2 callersFunctionLoadFixedOffsetSignExtend
LoadFixedOffsetSignExtend loads from memory with a signed offset from -128 to 127 into a register and sign-extends it.
src/x86/LoadFixedOffset.go:11
↓ 2 callersFunctionLoadFixedOffsetSigned
LoadFixedOffsetSigned loads from memory with a signed offset from -256 to 255 into a register and sign-extends it.
src/arm/Load.go:21
↓ 2 callersFunctionLoadFixedOffsetZeroExtend
LoadFixedOffsetZeroExtend loads from memory with a signed offset from -128 to 127 into a register and zero-extends it.
src/x86/LoadFixedOffset.go:16
↓ 2 callersFunctionLoadPair
LoadPair calculates an address from a base register value and an immediate offset, loads two 64-bit doublewords from memory, and writes them to two re
src/arm/LoadPair.go:8
↓ 2 callersFunctionLoadSignExtend
LoadSignExtend loads from memory with a register offset into a register and sign-extends it.
src/x86/Load.go:11
↓ 2 callersFunctionLoadSigned
LoadSigned loads from memory into a register with a register offset and sign-extends it.
src/arm/Load.go:11
↓ 2 callersFunctionLoadZeroExtend
LoadZeroExtend loads from memory with a register offset into a register and zero-extends it.
src/x86/Load.go:20
↓ 2 callersFunctionLock
Lock causes the next instruction to be atomic.
src/x86/Prefixes.go:4
↓ 2 callersFunctionMoveKeep
MoveKeep moves a 16-bit integer into the given register and keeps all other bits.
src/arm/Move.go:92
↓ 2 callersFunctionMoveRegisterNumber
MoveRegisterNumber moves a number into the given register.
src/arm/Move.go:10
↓ 2 callersFunctionMoveRegisterNumber
MoveRegisterNumber moves an integer into the given register.
src/x86/Move.go:10
↓ 2 callersFunctionMoveRegisterNumberSI
MoveRegisterNumberSI moves a number into the given register using a single instruction.
src/arm/Move.go:41
↓ 2 callersFunctionMoveRegisterRegister
MoveRegisterRegister copies a register to another register.
src/arm/Move.go:72
↓ 2 callersFunctionMulRegisterRegister
MulRegisterRegister multiplies `multiplicand` with `multiplier` and saves the result in `destination`
src/arm/Mul.go:6
↓ 2 callersFunctionMulRegisterRegister
MulRegisterRegister multiplies a register with another register.
src/x86/Mul.go:11
↓ 2 callersFunctionNegateRegister
NegateRegister negates the value in the source register and writes it to the destination register.
src/arm/Negate.go:6
↓ 2 callersFunctionNegateRegister
NegateRegister negates the value in the register.
src/x86/Negate.go:6
↓ 2 callersFunctionNewEnvironment
NewEnvironment creates a new environment.
src/core/NewEnvironment.go:10
↓ 2 callersFunctionNewList
NewList generates a list of expressions from comma separated parameters.
src/expression/NewList.go:8
↓ 2 callersFunctionNewStruct
NewStruct creates a new struct.
src/types/Struct.go:13
↓ 2 callersFunctionOrRegisterNumber
OrRegisterNumber performs a bitwise OR using a register and a number.
src/x86/Or.go:8
↓ 2 callersFunctionOrRegisterRegister
OrRegisterRegister performs a bitwise OR using two registers.
src/x86/Or.go:13
↓ 2 callersMethodPop
Pop removes an element from the stack.
src/core/loopStack.go:18
↓ 2 callersMethodPush
Push pushes a new element to the stack.
src/core/loopStack.go:23
↓ 2 callersMethodReplaceAll
ReplaceAll replaces all occurrences of the given `old` value with the `new` value.
src/ssa/IR.go:79
↓ 2 callersFunctionReturn
Return transfers program control to the caller.
src/arm/Return.go:4
↓ 2 callersFunctionReturn
Return transfers program control to a return address located on the top of the stack. The address is usually placed on the stack by a Call instruction
src/x86/Return.go:5
↓ 2 callersMethodRunBuild
RunBuild builds and runs the file to check if the output matches the expected output.
tests/run_test.go:55
↓ 2 callersFunctionSSA
SSA shows the SSA IR.
src/verbose/SSA.go:16
↓ 2 callersMethodSetEnd
SetEnd sets the end position.
src/token/Source.go:20
↓ 2 callersFunctionSetIfEqual
SetIfEqual sets the register to 1 if the result was equal, otherwise to 0.
src/arm/Set.go:6
← previousnext →201–300 of 1,095, ranked by callers