Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akyoto/q
/ functions
Functions
1,095 in github.com/akyoto/q
⨍
Functions
1,095
◇
Types & classes
241
↓ 1 callers
Method
AddInput
AddInput adds an input parameter.
src/core/Function.go:34
↓ 1 callers
Method
AddOutput
AddOutput adds an output parameter.
src/core/Function.go:42
↓ 1 callers
Method
AddSections
AddSections adds section headers to the ELF file.
src/elf/AddSections.go:6
↓ 1 callers
Method
AddSuffix
AddSuffix adds a suffix to the name and is used for generic functions.
src/core/Function.go:50
↓ 1 callers
Method
AddUser
AddUser adds a new user of this value.
src/ssa/HasUsers.go:5
↓ 1 callers
Method
All
All returns an iterator over all the values in the set.
src/set/Ordered.go:25
↓ 1 callers
Function
Arch
Arch returns the CPU architecture used in the Mach-O header.
src/macho/Arch.go:6
↓ 1 callers
Function
Arch
Arch converts the architecture variable to an ELF-specific constant.
src/elf/Arch.go:6
↓ 1 callers
Function
Arch
Arch returns the CPU architecture used in the PE header.
src/pe/Arch.go:14
↓ 1 callers
Method
Assemble
Assemble translates SSA form into machine code.
src/core/Assemble.go:4
↓ 1 callers
Method
Body
Body returns the function body.
src/core/Function.go:56
↓ 1 callers
Function
CallAtMemory
CallAtMemory 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:49
↓ 1 callers
Function
CompareAndSwap
CompareAndSwap compares R0 with the memory contents. If they are equal, source register is written to memory. If they are not equal, R0 is loaded with
src/x86/CompareAndSwap.go:8
↓ 1 callers
Method
Compile
(instr Instruction)
src/asm/compilerX86.go:17
↓ 1 callers
Method
Compile
(instr Instruction)
src/asm/compilerARM.go:19
↓ 1 callers
Method
Compile
Compile translates tokens to SSA form.
src/core/Compile.go:8
↓ 1 callers
Method
CompileToAssembly
CompileToAssembly converts the SSA IR to assembler instructions.
src/codegen/CompileToAssembly.go:11
↓ 1 callers
Method
ComputeUsers
ComputeUsers creates the list of users for each value.
src/ssa/IR.go:31
↓ 1 callers
Method
CountValues
CountValues returns the total number of values.
src/ssa/IR.go:42
↓ 1 callers
Method
Current
Current returns the innermost loop or nil if there is none.
src/core/loopStack.go:9
↓ 1 callers
Method
EachLeaf
EachLeaf iterates through all leaves in the tree.
src/expression/Expression.go:29
↓ 1 callers
Method
End
()
src/token/List.go:74
↓ 1 callers
Method
End
End returns the position after the token.
src/token/Token.go:33
↓ 1 callers
Method
End
End returns the end position.
src/token/Source.go:15
↓ 1 callers
Method
Error
()
src/cli/errors.go:20
↓ 1 callers
Function
Files
Files shows all imported files.
src/verbose/Files.go:12
↓ 1 callers
Method
FindExisting
FindExisting returns an equal instruction that's already appended or `nil` if none could be found.
src/ssa/Block.go:201
↓ 1 callers
Function
Functions
Functions shows the list of live functions.
src/verbose/Functions.go:10
↓ 1 callers
Method
IdentifiersFor
IdentifiersFor returns an iterator for all the identifiers pointing to the given value.
src/ssa/Block.go:230
↓ 1 callers
Method
IsAssociative
IsAssociative returns true if rearranging the parentheses does not change the result.
src/token/Kind.go:146
↓ 1 callers
Method
IsBlock
IsBlock returns true if the token is a block.
src/token/Kind.go:101
↓ 1 callers
Method
IsExpressionStart
IsExpressionStart returns true if the token starts an expression.
src/token/Kind.go:116
↓ 1 callers
Method
IsNumeric
IsNumeric returns true if the token is a number or rune.
src/token/Kind.go:131
↓ 1 callers
Method
IsUsed
IsUsed returns true if the import was used.
src/fs/Import.go:17
↓ 1 callers
Function
MoveBitmaskNumber
MoveBitmaskNumber moves a bitmask immediate value to a register.
src/arm/Move.go:82
↓ 1 callers
Function
MoveRegisterNumberMI
MoveRegisterNumberMI moves a number into the given register using movz and a series of movk instructions.
src/arm/Move.go:21
↓ 1 callers
Function
MulRegisterNumber
MulRegisterNumber multiplies a register with a number.
src/x86/Mul.go:6
↓ 1 callers
Method
Name
Name returns the type name.
src/types/Union.go:22
↓ 1 callers
Function
NewCodeSignature
NewCodeSignature creates a new code signature.
src/macho/CodeSignature.go:45
↓ 1 callers
Function
NewFunction
NewFunction creates a new function.
src/core/NewFunction.go:11
↓ 1 callers
Function
Nop
Nop does nothing. This can be used for alignment purposes.
src/arm/Nop.go:4
↓ 1 callers
Method
Package
Package resolves a package name for the given file and marks the import as used.
src/core/Environment.go:108
↓ 1 callers
Method
Protect
Protect protects the given value from being accessed before the error value is checked.
src/ssa/Block.go:356
↓ 1 callers
Function
PushNumber
PushNumber pushes a number onto the stack.
src/x86/Push.go:8
↓ 1 callers
Method
ReceiveConstant
ReceiveConstant receives a constant from the scanner.
src/core/ReceiveConstant.go:4
↓ 1 callers
Method
ReceiveFile
ReceiveFile receives a file from the scanner.
src/core/ReceiveFile.go:6
↓ 1 callers
Method
ReceiveFunction
ReceiveFunction receives a function from the scanner.
src/core/ReceiveFunction.go:4
↓ 1 callers
Method
ReceiveGlobal
ReceiveGlobal receives a global from the scanner.
src/core/ReceiveGlobal.go:4
↓ 1 callers
Method
ReceiveStruct
ReceiveStruct receives a struct from the scanner.
src/core/ReceiveStruct.go:6
↓ 1 callers
Method
RemoveChild
RemoveChild removes a child from the expression.
src/expression/Expression.go:84
↓ 1 callers
Method
RemoveNilValues
RemoveNilValues removes all nil values from the block.
src/ssa/Block.go:318
↓ 1 callers
Method
RemoveUser
RemoveUser removes an existing user of this value.
src/ssa/HasUsers.go:8
↓ 1 callers
Function
Reorder
Reorder moves values closer to their first use.
src/optimizer/Reorder.go:11
↓ 1 callers
Method
Reset
Reset resets the token to default values.
src/token/Token.go:38
↓ 1 callers
Method
Reset
Reset resets all values to the default.
src/expression/Expression.go:95
↓ 1 callers
Method
ResolveTypes
ResolveTypes resolves all the type tokens in structs, globals and function parameters.
src/core/Environment.go:125
↓ 1 callers
Method
Resource
Resource returns the type that is a resource of the given type.
src/core/typeCache.go:30
↓ 1 callers
Function
SegmentBaseFS
SegmentBaseFS causes the next instruction to use FS as the segment base address.
src/x86/Prefixes.go:9
↓ 1 callers
Function
SegmentBaseGS
SegmentBaseGS causes the next instruction to use GS as the segment base address.
src/x86/Prefixes.go:14
↓ 1 callers
Method
SetBody
SetBody sets the token range for the function body.
src/core/Function.go:81
↓ 1 callers
Method
SetStart
SetStart sets the start position.
src/token/Source.go:25
↓ 1 callers
Method
Size
Size returns the total size in bytes.
src/types/Function.go:45
↓ 1 callers
Method
Slice
Slice returns the set of elements as a slice.
src/set/Ordered.go:41
↓ 1 callers
Method
Source
Source returns the start and end positions in the source file.
src/expression/Expression.go:107
↓ 1 callers
Method
Split
Split calls the callback function on each set of tokens in a comma separated list.
src/token/List.go:33
↓ 1 callers
Method
Start
()
src/token/List.go:70
↓ 1 callers
Method
Start
Start returns the start position.
src/token/Token.go:28
↓ 1 callers
Method
Start
Start returns the start position.
src/token/Source.go:30
↓ 1 callers
Method
Type
Type returns the type of the tuple element.
src/ssa/Field.go:45
↓ 1 callers
Method
Unwrap
Unwrap returns the wrapped error.
src/errors/FileError.go:115
↓ 1 callers
Method
Update
Update recalculates all section offsets.
src/exe/Executable.go:37
↓ 1 callers
Method
addPreservedRegisters
addPreservedRegisters creates a list of registers that need to be preserved.
src/codegen/addPreservedRegisters.go:10
↓ 1 callers
Function
addRegisterRegister
addRegisterRegister adds the registers and optionally updates the condition flags based on the result.
src/arm/Add.go:40
↓ 1 callers
Function
allowedInType
allowedInType returns true if the given `kind` can be in a type expression.
src/expression/type.go:6
↓ 1 callers
Method
appendImmutable
appendImmutable adds data that is immutable and eligible for string interning.
src/data/appendImmutable.go:10
↓ 1 callers
Method
appendMutable
appendMutable adds data that is mutable and not subject to string interning.
src/data/appendMutable.go:10
↓ 1 callers
Function
asm
asm shows the assembly code.
src/cli/asm.go:9
↓ 1 callers
Function
build
build parses the arguments and creates a build.
src/cli/build.go:9
↓ 1 callers
Method
canEncodeNumber
canEncodeNumber returns true if the architecture can encode an immediate for the given instruction.
src/codegen/canEncodeNumber.go:12
↓ 1 callers
Method
canReachPredecessor
canReachPredecessor checks if the `other` block appears as a predecessor or is the block itself.
src/ssa/Block.go:175
↓ 1 callers
Function
checksum
checksum calculates a checksum for the file contents.
tests/run_test.go:120
↓ 1 callers
Function
clearTrailingOnes
clearTrailingOnes clears trailing one bits.
src/arm/bitmask.go:31
↓ 1 callers
Method
compileASTNode
compileASTNode compiles a node in the AST.
src/core/compileASTNode.go:8
↓ 1 callers
Method
compileAssert
compileAssert compiles an assertion.
src/core/compileAssert.go:9
↓ 1 callers
Method
compileAssign
compileAssign compiles an assignment.
src/core/compileAssign.go:9
↓ 1 callers
Method
compileCall
compileCall compiles a call instruction.
src/core/compileCall.go:8
↓ 1 callers
Method
compileDefinition
compileDefinition compiles a define instruction.
src/core/compileDefinition.go:8
↓ 1 callers
Method
compileGo
compileGo compiles a call that runs asynchronously in a separate thread.
src/core/compileGo.go:9
↓ 1 callers
Method
compileIf
compileIf compiles a branch instruction.
src/core/compileIf.go:9
↓ 1 callers
Method
compileInputs
compileInputs registers every input as an identifier.
src/core/compileInputs.go:11
↓ 1 callers
Method
compileLoop
compileLoop compiles an endless loop.
src/core/compileLoop.go:12
↓ 1 callers
Method
compileLoopControl
compileLoopControl compiles loop control statements.
src/core/compileLoopControl.go:10
↓ 1 callers
Method
compileReturn
compileReturn compiles a return instruction.
src/core/compileReturn.go:10
↓ 1 callers
Method
compileReturnTuple
compileReturnTuple compiles a return with a single argument when multiple output types are expected.
src/core/compileReturnTuple.go:12
↓ 1 callers
Method
compileStoreArray
compileStoreArray compiles an assignment to an element in an array.
src/core/compileStoreArray.go:9
↓ 1 callers
Method
compileStoreField
compileStoreField compiles an assignment to a struct field.
src/core/compileStoreField.go:12
↓ 1 callers
Method
compileSwitch
compileSwitch compiles a multi-branch instruction.
src/core/compileSwitch.go:9
↓ 1 callers
Function
complexityBinary
complexityBinary returns the number of registers needed to evaluate the binary operation.
src/optimizer/Complexity.go:48
↓ 1 callers
Function
complexityNoKeepAlive
complexityNoKeepAlive returns the number of registers needed when each expression is no longer needed after its evaluation.
src/optimizer/Complexity.go:91
↓ 1 callers
Method
composeStruct
composeStruct unpacks registers into struct fields.
src/core/composeStruct.go:10
← previous
next →
401–500 of 1,095, ranked by callers