MCPcopy Create free account

hub / github.com/akyoto/q / functions

Functions1,095 in github.com/akyoto/q

↓ 222 callersMethodAppend
Append adds a new value to the last block.
src/ssa/IR.go:14
↓ 119 callersFunctionNew
New generates an error message at the current token position. The error message is clickable in popular editors and leads you directly to the faulty f
src/errors/New.go:10
↓ 110 callersMethodString
String returns a human-readable form of the value.
src/ssa/Value.go:19
↓ 102 callersMethodAppend
Append adds another instruction.
src/asm/Assembler.go:19
↓ 102 callersMethodSource
Source returns the byte offsets inside the file.
src/errors/FileError.go:105
↓ 88 callersMethodType
Type returns the data type of the value.
src/ssa/Value.go:22
↓ 71 callersMethodName
()
src/types/Type.go:5
↓ 70 callersFunctionTokenize
Tokenize turns the file contents into a list of tokens.
src/token/Tokenize.go:4
↓ 63 callersMethodappend
(code uint32)
src/asm/compilerARM.go:15
↓ 55 callersMethodStringFrom
([]byte)
src/errors/Source.go:9
↓ 48 callersFunctionNewAt
NewAt is the same as New but with an exact position.
src/errors/NewAt.go:9
↓ 48 callersFunctionString
String creates a static error message without parameters.
src/errors/String.go:4
↓ 47 callersMethodBlock
Block returns the last block.
src/ssa/IR.go:26
↓ 43 callersFunctionNewBlock
NewBlock creates a new basic block.
src/ssa/Block.go:24
↓ 42 callersMethodWrite
(_ []byte)
src/exe/Discard.go:6
↓ 41 callersFunctionIs
Is returns true if the encountered type `a` can be converted into the expected type `b`.
src/types/Is.go:4
↓ 38 callersMethodEquals
Equals check for equality which is useful for common subexpression elimination.
src/ssa/Value.go:7
↓ 37 callersMethodEnd
()
src/errors/Source.go:7
↓ 37 callersMethodSize
()
src/types/Type.go:6
↓ 34 callersMethodCanReachPredecessor
CanReachPredecessor checks if the `other` block appears as a predecessor or is the block itself.
src/ssa/Block.go:170
↓ 33 callersFunctionExec
Exec runs the command included in the first argument and returns the exit code.
src/cli/Exec.go:4
↓ 29 callersFunctionMoveRegisterRegister
MoveRegisterRegister copies a register to another register.
src/x86/Move.go:43
↓ 27 callersMethodevaluateRight
evaluateRight evaluates the expression and automatically dereferences it if needed.
src/core/evaluateRight.go:9
↓ 26 callersMethodAddBlock
AddBlock adds a new block to the function.
src/ssa/IR.go:9
↓ 25 callersFunctionUnwrap
Unwrap returns the underlying type without a resource wrapper.
src/types/Unwrap.go:4
↓ 24 callersFunctionSizeInt
SizeInt tells you how many bytes are needed to encode this signed number.
src/cpu/SizeInt.go:6
↓ 22 callersMethodContains
Contains returns true if the library exists.
src/dll/List.go:43
↓ 22 callersFunctionNew
New creates a new build.
src/config/New.go:8
↓ 22 callersFunctionParse
Parse generates an expression tree from tokens.
src/expression/Parse.go:8
↓ 22 callersFunctionencode
encode is the core function that encodes an instruction.
src/x86/encode.go:6
↓ 21 callersMethodAddSuccessor
AddSuccessor adds the given block as a successor.
src/ssa/Block.go:32
↓ 21 callersMethodIdentify
Identify adds a new identifier or changes an existing one.
src/ssa/Block.go:251
↓ 21 callersMethodStart
()
src/errors/Source.go:8
↓ 20 callersMethodFindIdentifier
FindIdentifier searches for all the possible values the identifier can have and combines them to a phi instruction if necessary.
src/ssa/Block.go:224
↓ 20 callersMethodIndex
Index returns the position of the given function name.
src/dll/List.go:59
↓ 19 callersFunctionCompile
Compile waits for the scan to finish and compiles all functions.
src/compiler/Compile.go:11
↓ 18 callersMethodSet
Set marks the given register as used.
src/codegen/bitset.go:9
↓ 16 callersMethodRun
Run compiles a debug and release version and tests both.
tests/run_test.go:28
↓ 16 callersMethodSourceString
SourceString returns the string that was parsed in this expression.
src/expression/Expression.go:123
↓ 16 callersFunctionexit
exit returns the exit code depending on the error type.
src/cli/exit.go:18
↓ 15 callersMethodAdd
Add adds a value to the set if it doesn't exist yet. It returns `false` if it already exists, `true` if it was added.
src/set/Ordered.go:15
↓ 15 callersMethodIsComparison
IsComparison returns true if the token is a comparison operator.
src/token/Kind.go:111
↓ 14 callersMethodCreateLabel
CreateLabel creates a label that is tied to this function by using a suffix.
src/codegen/CreateLabel.go:9
↓ 14 callersFunctionIsUnsigned
IsUnsigned returns true if the type represents an unsigned value.
src/types/IsUnsigned.go:4
↓ 13 callersMethodAddChild
AddChild adds a child to the expression.
src/expression/Expression.go:19
↓ 13 callersFunctionModRM
ModRM is used to generate a mode-register-memory suffix. - mod: 2 bits. The addressing mode. - reg: 3 bits. Second register operand or opcode extensio
src/x86/ModRM.go:7
↓ 12 callersFunctionNop
Nop instruction encodes a No Operation instruction with the given length, usually used for alignment. Source: Intel Software Developer Manual ("Recomm
src/x86/Nop.go:6
↓ 12 callersMethodSetImmutable
SetImmutable sets the readonly data for the given label.
src/data/Insert.go:4
↓ 12 callersMethodhint
hint adds a register hint to the step.
src/codegen/Step.go:21
↓ 11 callersFunctionreg3
reg3 encodes an instruction with 3 registers.
src/arm/encode.go:39
↓ 10 callersMethodMemoryAlign
MemoryAlign returns the memory alignment.
src/config/MemoryAlign.go:4
↓ 10 callersMethodUnidentify
Unidentify deletes the identifier for the given value.
src/ssa/Block.go:346
↓ 10 callersMethodassignFreeRegister
assignFreeRegister assigns a free registers to the step.
src/codegen/assignFreeRegister.go:4
↓ 10 callersFunctionbranchCond
branchCond performs a conditional branch to the new 19 bit offset multiplied by 4.
src/arm/Jump.go:63
↓ 10 callersFunctioncset
cset encodes a conditional set instruction.
src/arm/Set.go:56
↓ 9 callersFunctionCleanLabel
CleanLabel removes the function name from the label.
src/ssa/CleanLabel.go:6
↓ 9 callersMethodFieldByName
FieldByName returns the field with the given name if it exists.
src/types/Struct.go:28
↓ 9 callersFunctionNewSource
NewSource creates a new source region.
src/token/Source.go:10
↓ 9 callersMethodjump
jump inserts a `jump` instruction to the block and adds it as a successor if the last instruction was not a `jump` or `return`.
src/core/jump.go:7
↓ 8 callersMethodFunction
Function looks up a function by the package name and raw function name.
src/core/Environment.go:46
↓ 8 callersMethodHas
Has returns true if the given register is used.
src/codegen/bitset.go:14
↓ 8 callersMethodMerge
Merge combines the contents of this assembler with another one.
src/asm/Assembler.go:72
↓ 8 callersFunctionSizeUint
SizeUint tells you how many bytes are needed to encode this unsigned number.
src/cpu/SizeUint.go:6
↓ 8 callersMethodcompileAST
compileAST compiles an abstract syntax tree.
src/core/compileAST.go:8
↓ 8 callersMethodmakeStruct
makeStruct creates a struct and saves a reference to it for every field. This is later used in dead code removal to know if a value is part of a parti
src/core/makeStruct.go:10
↓ 7 callersMethodAppend
Append adds a new value to the block.
src/ssa/Block.go:165
↓ 7 callersFunctionBringToFront
BringToFront brings the element at `index` within the `slice` to the front.
src/set/BringToFront.go:4
↓ 7 callersMethodFileAlign
FileAlign returns the file alignment.
src/config/FileAlign.go:4
↓ 7 callersMethodIndex
Index returns the position of the child or `-1` if it's not a child of this expression.
src/expression/Expression.go:44
↓ 7 callersMethodIndex
Index returns the position of the value or -1 if it doesn't exist within the block.
src/ssa/Block.go:271
↓ 7 callersFunctionLoadAddress
LoadAddress calculates the address with the PC-relative offset in the range -1048576 to 1048575 and writes the result to the destination register.
src/arm/LoadAddress.go:7
↓ 7 callersMethodPatchLast4Bytes
PatchLast4Bytes creates a late patch for the last 4 bytes.
src/asm/patcher.go:58
↓ 7 callersMethodSeek
(_ int64, _ int)
src/exe/Discard.go:7
↓ 7 callersMethodUsers
Users returns all values that reference this value as an input.
src/ssa/HasUsers.go:11
↓ 7 callersFunctionWalk
Walk calls your callback function for every file name inside the directory. It doesn't distinguish between files and directories.
src/fs/Walk_slow.go:9
↓ 7 callersFunctionencodeNum
encodeNum encodes an instruction with up to two registers and a number parameter.
src/x86/encodeNum.go:10
↓ 7 callersFunctionmemAccess
memAccess encodes a memory access using the value of a register as an offset.
src/x86/memAccess.go:8
↓ 7 callersFunctionparse
(code string)
src/ast/ast_test.go:76
↓ 6 callersFunctionAddRegisterNumber
AddRegisterNumber adds a number to a register.
src/arm/Add.go:6
↓ 6 callersMethodAppend
Append adds a function for the given DLL if it doesn't exist yet.
src/dll/List.go:25
↓ 6 callersFunctionComplexity
Complexity returns the number of registers needed to evaluate the expression.
src/optimizer/Complexity.go:11
↓ 6 callersMethodCount
Count returns the number of elements in the set.
src/set/Ordered.go:36
↓ 6 callersMethodIndexKind
IndexKind returns the position of a token kind within a token list.
src/token/List.go:11
↓ 6 callersMethodIsOperator
IsOperator returns true if the token is an operator.
src/token/Kind.go:136
↓ 6 callersMethodIsPure
IsPure returns true if the calculation of the value has no side effects.
src/ssa/Value.go:13
↓ 6 callersMethodLeaves
Leaves iterates through all leaves in the tree.
src/expression/Expression.go:77
↓ 6 callersFunctionNew
New creates a new executable.
src/exe/Executable.go:14
↓ 6 callersMethodOptimize
Optimize enables or disables the optimizer.
src/config/Optimize.go:4
↓ 6 callersFunctionOrRegisterNumber
OrRegisterNumber performs a bitwise OR using a register and a number.
src/arm/Or.go:6
↓ 6 callersFunctionREX
REX is used to generate a REX prefix. w, r, x and b can only be set to either 0 or 1.
src/x86/REX.go:5
↓ 6 callersMethodReplace
Replace replaces the uses of a value with another value.
src/ssa/Value.go:16
↓ 6 callersFunctionScan
Scan scans all the files included in the build.
src/scanner/Scan.go:14
↓ 6 callersMethodSlice
Slice returns the type that is a slice of the given type.
src/core/typeCache.go:43
↓ 6 callersFunctionStoreFixedOffsetRegister
StoreFixedOffsetRegister writes the contents of the register to a memory address with a signed offset from -256 to 255.
src/arm/Store.go:13
↓ 6 callersMethodTypeFromTokens
TypeFromTokens returns the type with the given tokens or `nil` if it doesn't exist.
src/core/TypeFromTokens.go:11
↓ 6 callersFunctionWrite
Write writes an executable to the given writer.
src/linker/Write.go:17
↓ 6 callersFunctionnewBuild
newBuild creates a new build with the given arguments.
src/cli/newBuild.go:11
↓ 6 callersFunctionnewLeaf
newLeaf creates a new leaf node.
src/expression/newLeaf.go:6
↓ 6 callersMethodqueueDirectory
queueDirectory queues an entire directory to be scanned.
src/scanner/queueDirectory.go:12
↓ 6 callersFunctionreg2BitmaskImm
reg2BitmaskImm encodes an instruction with 2 registers and a bitmask immediate.
src/arm/encode.go:34
next →1–100 of 1,095, ranked by callers