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
Function
createLinkeditSegment
createLinkeditSegment creates the contents of the __LINKEDIT segment.
src/macho/createLinkeditSegment.go:14
↓ 1 callers
Method
createLiveRanges
createLiveRanges adds the `value` to the list of live values in its live range.
src/codegen/createLiveRanges.go:4
↓ 1 callers
Function
createSteps
createSteps builds a series of instructions from the SSA values in the IR.
src/codegen/createSteps.go:6
↓ 1 callers
Function
dash
dash handles all tokens starting with '-'.
src/token/dash.go:4
↓ 1 callers
Method
decomposeSlice
decomposeSlice decomposes a slices to its pointer, type and length.
src/core/decomposeSlice.go:9
↓ 1 callers
Method
decomposeStruct
decomposeStruct packs struct fields into registers and adds them to `args`.
src/core/decomposeStruct.go:10
↓ 1 callers
Method
decomposeTuple
decomposeTuple decomposes tuples into their individual fields with a type check.
src/core/decomposeTuple.go:10
↓ 1 callers
Method
dereference
dereference loads from memory if the value was a memory address, otherwise returns the raw value.
src/core/dereference.go:9
↓ 1 callers
Function
digit
digit handles all tokens that qualify as a decimal digit.
src/token/digit.go:4
↓ 1 callers
Function
encode2
encode2 is the core function that encodes an instruction with an index.
src/x86/encode2.go:6
↓ 1 callers
Method
enter
enter sets up the stack frame.
src/codegen/enter.go:15
↓ 1 callers
Method
evaluateAsm
evaluateAsm converts an assembly instruction to an SSA value.
src/core/evaluateAsm.go:10
↓ 1 callers
Method
evaluateBinary
evaluateBinary converts a binary expression to an SSA value.
src/core/evaluateBinary.go:13
↓ 1 callers
Method
evaluateBuiltin
evaluateBuiltin converts a call to a builtin function to an SSA value.
src/core/evaluateBuiltin.go:10
↓ 1 callers
Method
evaluateCas
evaluateCas converts a CAS call to an SSA value.
src/core/evaluateCas.go:9
↓ 1 callers
Method
evaluateCast
evaluateCast converts a type cast to an SSA value.
src/core/evaluateCast.go:10
↓ 1 callers
Method
evaluateDelete
evaluateDelete converts a delete call to an SSA value.
src/core/evaluateDelete.go:9
↓ 1 callers
Method
evaluateDot
evaluateDot converts a dot expression to an SSA value.
src/core/evaluateDot.go:11
↓ 1 callers
Method
evaluateIdentifier
evaluateIdentifier converts an identifier to an SSA value.
src/core/evaluateIdentifier.go:12
↓ 1 callers
Method
evaluateLeaf
evaluateLeaf converts a leaf expression to an SSA value.
src/core/evaluateLeaf.go:11
↓ 1 callers
Method
evaluateMethod
evaluateMethod converts a method expression to an SSA value.
src/core/evaluateMethod.go:10
↓ 1 callers
Method
evaluateNewStruct
evaluateNewStruct allocates a new struct with a field initializer list.
src/core/evaluateNewStruct.go:11
↓ 1 callers
Method
evaluateNumber
evaluateNumber converts a numeric expression to an SSA value.
src/core/evaluateNumber.go:9
↓ 1 callers
Method
evaluateSlice
evaluateSlice converts a slice expression to an SSA value.
src/core/evaluateSlice.go:12
↓ 1 callers
Method
evaluateString
evaluateString converts a string expression to an SSA value.
src/core/evaluateString.go:10
↓ 1 callers
Method
evaluateStruct
evaluateStruct converts a struct expression to an SSA value.
src/core/evaluateStruct.go:12
↓ 1 callers
Method
evaluateSyscall
evaluateSyscall converts a syscall to an SSA value.
src/core/evaluateSyscall.go:11
↓ 1 callers
Method
evaluateUnary
evaluateUnary converts a unary expression to an SSA value.
src/core/evaluateUnary.go:11
↓ 1 callers
Method
execute
execute executes a step which appends it to the assembler's instruction list.
src/codegen/execute.go:8
↓ 1 callers
Method
executeBinaryOp
(step *Step, instr *ssa.BinaryOp)
src/codegen/executeBinaryOp.go:10
↓ 1 callers
Method
executeBool
(step *Step, instr *ssa.Bool)
src/codegen/executeBool.go:8
↓ 1 callers
Method
executeBranch
(step *Step, instr *ssa.Branch)
src/codegen/executeBranch.go:12
↓ 1 callers
Method
executeBytes
(step *Step, instr *ssa.Bytes)
src/codegen/executeBytes.go:8
↓ 1 callers
Method
executeCall
(step *Step, instr *ssa.Call)
src/codegen/executeCall.go:8
↓ 1 callers
Method
executeCallExtern
(step *Step, instr *ssa.CallExtern)
src/codegen/executeCallExtern.go:11
↓ 1 callers
Method
executeCas
(step *Step, instr *ssa.Cas)
src/codegen/executeCas.go:10
↓ 1 callers
Method
executeCopy
(step *Step, instr *ssa.Copy)
src/codegen/executeCopy.go:8
↓ 1 callers
Method
executeField
(step *Step, instr *ssa.Field)
src/codegen/executeField.go:8
↓ 1 callers
Method
executeFunction
(step *Step, instr *ssa.Function)
src/codegen/executeFunction.go:8
↓ 1 callers
Method
executeGlobal
(step *Step, instr *ssa.Global)
src/codegen/executeGlobal.go:8
↓ 1 callers
Method
executeInt
(step *Step, instr *ssa.Int)
src/codegen/executeInt.go:8
↓ 1 callers
Method
executeJump
(step *Step, instr *ssa.Jump)
src/codegen/executeJump.go:8
↓ 1 callers
Method
executeLabel
(instr *Label)
src/codegen/executeLabel.go:7
↓ 1 callers
Method
executeLoad
(step *Step, instr *ssa.Load)
src/codegen/executeLoad.go:9
↓ 1 callers
Method
executeParameter
(step *Step, instr *ssa.Parameter)
src/codegen/executeParameter.go:8
↓ 1 callers
Method
executePhi
(instr *ssa.Phi)
src/codegen/executePhi.go:7
↓ 1 callers
Method
executeRegister
(step *Step, instr *ssa.Register)
src/codegen/executeRegister.go:8
↓ 1 callers
Method
executeReturn
(instr *ssa.Return)
src/codegen/executeReturn.go:7
↓ 1 callers
Method
executeStore
(instr *ssa.Store)
src/codegen/executeStore.go:8
↓ 1 callers
Method
executeSyscall
(step *Step, instr *ssa.Syscall)
src/codegen/executeSyscall.go:8
↓ 1 callers
Method
executeUnaryOp
(step *Step, instr *ssa.UnaryOp)
src/codegen/executeUnaryOp.go:9
↓ 1 callers
Method
fieldFromCall
fieldFromCall extracts a field from a function call.
src/core/fieldFromCall.go:11
↓ 1 callers
Method
fieldFromStruct
fieldFromStruct extracts a field from a struct.
src/core/fieldFromStruct.go:11
↓ 1 callers
Function
files
files shows the list of files that are used in a build.
src/cli/files.go:9
↓ 1 callers
Function
findError
findError returns compilation errors and creates a deterministic order in case of multiple errors.
src/compiler/findError.go:14
↓ 1 callers
Method
findFreeRegister
findFreeRegister finds a free register for the given value.
src/codegen/findFreeRegister.go:13
↓ 1 callers
Function
findLibrary
findLibrary tries to go up each directory from the working directory and check for the existence of a "lib" directory. This is needed for tests to wor
src/global/findLibrary.go:11
↓ 1 callers
Method
fixRegisterConflicts
fixRegisterConflicts checks for conflicts where 2 values that are live at the same time use the same register. It then assigns a new register to the v
src/codegen/fixRegisterConflicts.go:14
↓ 1 callers
Function
foldBinary
foldBinary calculates the result of the binary operation.
src/optimizer/foldBinary.go:6
↓ 1 callers
Function
foldBinaryOp
foldBinaryOp folds the values for binary operations.
src/optimizer/foldBinaryOp.go:9
↓ 1 callers
Function
foldUnary
foldUnary calculates the result of the unary operation.
src/optimizer/foldUnary.go:6
↓ 1 callers
Function
foldUnaryOp
foldUnaryOp folds the values for unary operations.
src/optimizer/foldUnaryOp.go:6
↓ 1 callers
Function
format
format formats source files.
src/cli/format.go:14
↓ 1 callers
Function
fromDirectoryName
fromDirectoryName returns the executable path based on the directory name.
src/config/Executable.go:35
↓ 1 callers
Function
fromFileName
fromFileName returns the executable path based on the file name.
src/config/Executable.go:30
↓ 1 callers
Function
functions
functions shows the list of functions that are used in a build.
src/cli/functions.go:9
↓ 1 callers
Function
handleGroupEnd
handleGroupEnd handles anything that uses a group like a function call or an array access.
src/expression/handleGroupEnd.go:10
↓ 1 callers
Function
handleOperator
handleOperator adds a new operator to the tree.
src/expression/handleOperator.go:4
↓ 1 callers
Function
hash
hash handles all tokens starting with '#'.
src/token/hash.go:4
↓ 1 callers
Method
hintABI
hintABI recommends ABI registers that a value must reside in later on. These register hints have the highest priority.
src/codegen/hintABI.go:9
↓ 1 callers
Method
hintDestination
hintDestination recommends the destination register to its inputs.
src/codegen/hintDestination.go:8
↓ 1 callers
Function
identifier
identifier handles all tokens that qualify as an identifier.
src/token/identifier.go:4
↓ 1 callers
Function
importLibraries
importLibraries generates the import address table which contains the addresses of functions imported from DLLs.
src/pe/importLibraries.go:6
↓ 1 callers
Function
invalid
invalid shows the help on stderr and returns exit code 2 (invalid parameters).
src/cli/invalid.go:10
↓ 1 callers
Function
isComplete
isComplete returns true if the expression is complete (a binary operation with a single operand is incomplete).
src/expression/isComplete.go:6
↓ 1 callers
Function
isIdentifier
isIdentifier returns true if the character is a letter, a digit or an underscore.
src/token/identifier.go:56
↓ 1 callers
Function
isIdentifierStart
isIdentifierStart returns true if the character is the start of an identifier which is either a letter or an underscore.
src/token/identifier.go:63
↓ 1 callers
Method
jumpIfFalse
jumpIfFalse jumps to the label if the previous comparison was false.
src/codegen/jumpIfFalse.go:8
↓ 1 callers
Method
jumpIfTrue
jumpIfTrue jumps to the label if the previous comparison was true.
src/codegen/jumpIfTrue.go:8
↓ 1 callers
Function
keywords
keywords shows the entire list of keywords.
src/cli/keywords.go:11
↓ 1 callers
Method
leave
leave cleans up the stack and returns to the caller.
src/codegen/leave.go:8
↓ 1 callers
Method
lintBinaryOp
lintBinaryOp checks for some common mistakes in binary expressions.
src/core/lintBinaryOp.go:13
↓ 1 callers
Method
lintBinaryOps
lintBinaryOps checks for some common mistakes in binary expressions.
src/core/lintBinaryOps.go:8
↓ 1 callers
Method
loadSpill
loadSpill loads a value from a virtual register into a physical register.
src/codegen/spill.go:17
↓ 1 callers
Method
markAlive
markAlive marks the `live` value in the `block` as alive and recursively proceeds in the predecessors of `block` if they can reach the definition.
src/codegen/markAlive.go:11
↓ 1 callers
Method
matchesType
matchesType returns true if the nodes match the given parameter types.
src/core/matchesType.go:10
↓ 1 callers
Function
memory
memory encodes an instruction with a register, a base register, an addressing mode and an offset.
src/arm/encode.go:8
↓ 1 callers
Function
moveRegisterNumber32
moveRegisterNumber32 moves an integer into the given register and sign-extends the register.
src/x86/Move.go:37
↓ 1 callers
Method
needsRegister
needsRegister returns true if the value requires a register.
src/codegen/needsRegister.go:9
↓ 1 callers
Method
needsReturn
needsReturn returns true if it needs to end with a return statement.
src/core/needsReturn.go:6
↓ 1 callers
Method
needsStackFrame
needsStackFrame returns true if the function needs a stack frame.
src/core/needsStackFrame.go:6
↓ 1 callers
Function
operator
operator handles all tokens that qualify as an operator.
src/token/operator.go:4
↓ 1 callers
Function
operators
operators shows the entire list of operators grouped by precedence.
src/cli/operators.go:12
↓ 1 callers
Method
optimize
optimize applies various algorithms after the compilation.
src/core/optimize.go:10
↓ 1 callers
Function
parseAssert
(tokens token.List, file *fs.File)
src/ast/parseAssert.go:10
↓ 1 callers
Function
parseCases
parseCases generates the cases inside a switch statement.
src/ast/parseCases.go:10
↓ 1 callers
Function
parseElse
(tokens token.List, file *fs.File, nodes AST)
src/ast/parseElse.go:9
↓ 1 callers
Method
parseGlobals
parseGlobals parses the tokens of global variables.
src/core/parseGlobals.go:8
↓ 1 callers
Function
parseGo
(tokens token.List, file *fs.File)
src/ast/parseGo.go:9
↓ 1 callers
Function
parseIf
(tokens token.List, file *fs.File)
src/ast/parseIf.go:9
← previous
next →
501–600 of 1,095, ranked by callers