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
↓ 2 callers
Function
SetIfEqual
SetIfEqual sets the register to 1 if the result was equal, otherwise to 0.
src/x86/Set.go:6
↓ 2 callers
Function
SetIfGreater
SetIfGreater sets the register to 1 if the result was greater, otherwise to 0.
src/arm/Set.go:16
↓ 2 callers
Function
SetIfGreater
SetIfGreater sets the register to 1 if the result was greater, otherwise to 0.
src/x86/Set.go:16
↓ 2 callers
Function
SetIfGreaterEqual
SetIfGreaterEqual sets the register to 1 if the result was greater or equal, otherwise to 0.
src/arm/Set.go:21
↓ 2 callers
Function
SetIfGreaterEqual
SetIfGreaterEqual sets the register to 1 if the result was greater or equal, otherwise to 0.
src/x86/Set.go:21
↓ 2 callers
Function
SetIfLess
SetIfLess sets the register to 1 if the result was less, otherwise to 0.
src/arm/Set.go:26
↓ 2 callers
Function
SetIfLess
SetIfLess sets the register to 1 if the result was less, otherwise to 0.
src/x86/Set.go:26
↓ 2 callers
Function
SetIfLessEqual
SetIfLessEqual sets the register to 1 if the result was less or equal, otherwise to 0.
src/arm/Set.go:31
↓ 2 callers
Function
SetIfLessEqual
SetIfLessEqual sets the register to 1 if the result was less or equal, otherwise to 0.
src/x86/Set.go:31
↓ 2 callers
Function
SetIfNotEqual
SetIfNotEqual sets the register to 1 if the result was not equal, otherwise to 0.
src/arm/Set.go:11
↓ 2 callers
Function
SetIfNotEqual
SetIfNotEqual sets the register to 1 if the result was not equal, otherwise to 0.
src/x86/Set.go:11
↓ 2 callers
Function
SetIfUnsignedGreater
SetIfUnsignedGreater sets the register to 1 if the result was greater using unsigned comparison, otherwise to 0.
src/arm/Set.go:36
↓ 2 callers
Function
SetIfUnsignedGreater
SetIfUnsignedGreater sets the register to 1 if the result was greater using unsigned comparison, otherwise to 0.
src/x86/Set.go:36
↓ 2 callers
Function
SetIfUnsignedGreaterEqual
SetIfUnsignedGreaterEqual sets the register to 1 if the result was greater or equal using unsigned comparison, otherwise to 0.
src/arm/Set.go:41
↓ 2 callers
Function
SetIfUnsignedGreaterEqual
SetIfUnsignedGreaterEqual sets the register to 1 if the result was greater or equal using unsigned comparison, otherwise to 0.
src/x86/Set.go:41
↓ 2 callers
Function
SetIfUnsignedLess
SetIfUnsignedLess sets the register to 1 if the result was less using unsigned comparison, otherwise to 0.
src/arm/Set.go:46
↓ 2 callers
Function
SetIfUnsignedLess
SetIfUnsignedLess sets the register to 1 if the result was less using unsigned comparison, otherwise to 0.
src/x86/Set.go:46
↓ 2 callers
Function
SetIfUnsignedLessEqual
SetIfUnsignedLessEqual sets the register to 1 if the result was less or equal using unsigned comparison, otherwise to 0.
src/arm/Set.go:51
↓ 2 callers
Function
SetIfUnsignedLessEqual
SetIfUnsignedLessEqual sets the register to 1 if the result was less or equal using unsigned comparison, otherwise to 0.
src/x86/Set.go:51
↓ 2 callers
Method
SetLast
SetLast sets the last instruction.
src/asm/Assembler.go:101
↓ 2 callers
Function
ShiftLeft
ShiftLeft shifts the register value a specified amount of bits to the left.
src/arm/Shift.go:8
↓ 2 callers
Function
ShiftLeft
ShiftLeft shifts the register value by the amount of bits defined in the lower byte of R1 to the left.
src/x86/Shift.go:8
↓ 2 callers
Function
ShiftLeftNumber
ShiftLeftNumber shifts the register value a specified amount of bits to the left.
src/arm/Shift.go:23
↓ 2 callers
Function
ShiftLeftNumber
ShiftLeftNumber shifts the register value by `bitCount` bits to the left.
src/x86/Shift.go:23
↓ 2 callers
Function
ShiftRight
ShiftRight shifts the register value a specified amount of bits to the right.
src/arm/Shift.go:13
↓ 2 callers
Function
ShiftRight
ShiftRight shifts the register value by the amount of bits defined in the lower byte of R1 to the right.
src/x86/Shift.go:13
↓ 2 callers
Function
ShiftRightNumber
ShiftRightNumber shifts the register value a specified amount of bits to the right.
src/arm/Shift.go:28
↓ 2 callers
Function
ShiftRightNumber
ShiftRightNumber shifts the register value by `bitCount` bits to the right.
src/x86/Shift.go:29
↓ 2 callers
Function
ShiftRightSigned
ShiftRightSigned shifts the signed register value a specified amount of bits to the right.
src/arm/Shift.go:18
↓ 2 callers
Function
ShiftRightSigned
ShiftRightSigned shifts the signed register value by the amount of bits defined in the lower byte of R1 to the right.
src/x86/Shift.go:18
↓ 2 callers
Function
ShiftRightSignedNumber
ShiftRightSignedNumber shifts the signed register value a specified amount of bits to the right.
src/arm/Shift.go:33
↓ 2 callers
Function
ShiftRightSignedNumber
ShiftRightSignedNumber shifts the signed register value by `bitCount` bits to the right.
src/x86/Shift.go:35
↓ 2 callers
Method
Skip
Skip returns true if appending the instruction can be skipped.
src/asm/Assembler.go:106
↓ 2 callers
Function
Slice
Slice creates a new slice type which is just a struct with a pointer and a length.
src/types/Slice.go:4
↓ 2 callers
Function
StoreFixedOffsetNumber
StoreFixedOffsetNumber writes a number to a memory address.
src/x86/StoreFixedOffset.go:8
↓ 2 callers
Function
StoreFixedOffsetRegister
StoreFixedOffsetRegister writes the contents of the register to a memory address.
src/x86/StoreFixedOffset.go:14
↓ 2 callers
Function
StoreNumber
StoreNumber writes a number to a memory address with a register offset.
src/x86/Store.go:8
↓ 2 callers
Function
StorePair
StorePair calculates an address from a base register value and an immediate offset multiplied by 8, and stores the values of two registers to the calc
src/arm/StorePair.go:10
↓ 2 callers
Function
StoreRegister
StoreRegister writes the contents of a register to a memory address with a register offset.
src/x86/Store.go:14
↓ 2 callers
Method
String
String returns the name of the struct.
src/types/Field.go:15
↓ 2 callers
Method
StringFrom
StringFrom returns the source code.
src/token/Source.go:35
↓ 2 callers
Method
Structs
Structs returns an iterator over all structs.
src/core/Environment.go:142
↓ 2 callers
Function
SubRegisterRegister
SubRegisterRegister subtracts a register from a register.
src/arm/Sub.go:15
↓ 2 callers
Function
SubRegisterRegister
SubRegisterRegister subtracts a register value from another register.
src/x86/Sub.go:13
↓ 2 callers
Function
Syscall
Syscall is the primary way to communicate with the OS kernel.
src/x86/Syscall.go:4
↓ 2 callers
Function
TestRegisterRegister
TestRegisterRegister computes the bitwise logical AND of the operands and sets the SF, ZF, and PF status flags according to the result.
src/x86/Test.go:7
↓ 2 callers
Function
Version
Version creates the version for the build version load command.
src/macho/Version.go:4
↓ 2 callers
Function
WriteFile
WriteFile writes an executable file to disk.
src/linker/WriteFile.go:10
↓ 2 callers
Method
WriteRaw
WriteRaw writes the raw file contents without the code signature.
src/macho/MachO.go:164
↓ 2 callers
Function
XorRegisterNumber
XorRegisterNumber performs a bitwise XOR using a register and a number.
src/x86/Xor.go:8
↓ 2 callers
Function
XorRegisterRegister
XorRegisterRegister performs a bitwise XOR using two registers.
src/arm/Xor.go:12
↓ 2 callers
Function
appendNumber
appendNumber appends the number for memory store instructions.
src/x86/appendNumber.go:6
↓ 2 callers
Function
buildInfo
buildInfo retrieves information about the build.
src/cli/show.go:73
↓ 2 callers
Method
clobberedRegisters
clobberedRegisters returns the registers that are clobbered by the given instruction.
src/codegen/clobberedRegisters.go:10
↓ 2 callers
Method
conditionalSet
conditionalSet sets the target register to 0 or 1 depending on the condition.
src/codegen/conditionalSet.go:11
↓ 2 callers
Method
copy
copy creates a copy of a value and appends it to the current block.
src/core/copy.go:6
↓ 2 callers
Method
define
define gives a value an identifier.
src/core/define.go:12
↓ 2 callers
Method
defineMulti
defineMulti creates SSA values from expressions and composes structs from their individual fields.
src/core/defineMulti.go:12
↓ 2 callers
Method
delete
delete frees an allocated value.
src/core/delete.go:10
↓ 2 callers
Function
div
div implements the encoding for the division operation.
src/x86/Div.go:16
↓ 2 callers
Method
evaluateArray
evaluateArray converts a array indexing expression to an SSA value.
src/core/evaluateArray.go:12
↓ 2 callers
Method
evaluateCall
evaluateCall converts a call expression to an SSA value.
src/core/evaluateCall.go:10
↓ 2 callers
Method
evaluateNew
evaluateNew converts a new call to an SSA value.
src/core/evaluateNew.go:11
↓ 2 callers
Method
extractField
extractField extracts the struct field and the value it is supposed to be initialized with.
src/core/extractField.go:12
↓ 2 callers
Method
fieldFromMemory
fieldFromMemory extracts a field from memory.
src/core/fieldFromMemory.go:11
↓ 2 callers
Function
handleLiteral
handleLiteral either adds a leaf to the cursor or becomes the cursor.
src/expression/handleLiteral.go:8
↓ 2 callers
Function
help
help shows the command line argument usage.
src/cli/help.go:11
↓ 2 callers
Method
insertPhiMoves
insertPhiMoves moves all live values that are part of a Phi instruction from their current register to the Phi target register. It must be called righ
src/codegen/insertPhiMoves.go:13
↓ 2 callers
Function
isLetter
isLetter returns true if the character is a lowercase or uppercase letter in the English alphabet.
src/token/identifier.go:69
↓ 2 callers
Function
isOperator
(c byte)
src/token/operator.go:38
↓ 2 callers
Function
isTrailing
isTrailing is used for trailing commas and returns true if an expression has an invalid token and is the last expression in the list.
src/core/isTrailing.go:10
↓ 2 callers
Method
loadFields
loadFields loads all fields from memory into a struct.
src/core/loadFields.go:9
↓ 2 callers
Method
loopNext
loopNext starts the next iteration of the loop.
src/core/loopNext.go:9
↓ 2 callers
Method
makeSlice
makeSlice creates a new slice.
src/core/makeSlice.go:10
↓ 2 callers
Method
makeStructFromTuple
makeStructFromTuple creates a struct from elements in a tuple.
src/core/makeStructFromTuple.go:9
↓ 2 callers
Function
memLoadExtend
memLoadExtend encodes a memory load with sign or zero extension.
src/x86/memLoadExtend.go:10
↓ 2 callers
Method
moveValuesToRegisters
moveValuesToRegisters moves the values to the destination registers.
src/codegen/moveValuesToRegisters.go:10
↓ 2 callers
Function
numOperands
(symbol token.Kind)
src/expression/operator.go:65
↓ 2 callers
Function
operatorKind
operatorKind returns the token kind for the given byte slice. The boolean value indicates if the next byte was used. A valid token always stops the se
src/token/operatorKind.go:8
↓ 2 callers
Function
pair
pair encodes an instruction using a register pair with memory.
src/arm/encode.go:13
↓ 2 callers
Function
parallel
parallel starts a goroutine for each function and waits for completion.
src/compiler/parallel.go:11
↓ 2 callers
Method
queueFile
queueFile queues a single file to be scanned.
src/scanner/queueFile.go:4
↓ 2 callers
Function
reg3Imm
reg3Imm encodes an instruction with 3 registers.
src/arm/encode.go:44
↓ 2 callers
Function
reg4
reg4 encodes an instruction with 4 registers.
src/arm/encode.go:49
↓ 2 callers
Function
regImmHw
regImmHw encodes an instruction with a register, an immediate and the 2-bit halfword specifying which 16-bit region of the register is addressed.
src/arm/encode.go:24
↓ 2 callers
Function
removeAssign
removeAssign removes the assignment part of an operator token and returns the raw operation.
src/core/removeAssign.go:6
↓ 2 callers
Function
reorderMoves
reorderMoves reorders the move instructions.
src/codegen/reorderMoves.go:9
↓ 2 callers
Function
run
run builds and runs the executable.
src/cli/run.go:10
↓ 2 callers
Method
runAll
runAll will run the specified function from each package if it exists.
src/core/runAll.go:10
↓ 2 callers
Function
scanFunctionSignature
scanFunctionSignature scans only the function signature without the body.
src/scanner/scanFunctionSignature.go:11
↓ 2 callers
Function
showError
showError shows an error on stderr.
src/cli/showError.go:12
↓ 2 callers
Function
stack
stack generates a stack trace.
src/errors/stack.go:9
↓ 2 callers
Method
storeFields
storeFields stores all struct fields into memory.
src/core/storeFields.go:9
↓ 2 callers
Function
subRegisterRegister
subRegisterRegister subtracts the registers and optionally updates the condition flags based on the result.
src/arm/Sub.go:40
↓ 2 callers
Function
test
(t *testing.T, path string)
src/errors/FileError_test.go:36
↓ 2 callers
Function
test
(t *testing.T, b *config.Build)
src/verbose/Function_test.go:43
↓ 2 callers
Function
tokenToCondition
(cond token.Kind, unsigned bool)
src/codegen/tokenToCondition.go:8
↓ 2 callers
Function
unescape
unescape replaces the escape sequences in the contents of a string token with the respective characters.
src/core/unescape.go:12
↓ 2 callers
Method
validateLeft
validateLeft validates the left side in a definition or an assignment. For a definition it expects that the name does not exist yet. For an assignment
src/core/validateLeft.go:13
↓ 1 callers
Method
AddDataLabels
AddDataLabels adds the data labels to the existing labels. This can only run after the code size is known.
src/asm/compiler.go:23
← previous
next →
301–400 of 1,095, ranked by callers