Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/llir/llvm
/ functions
Functions
1,729 in github.com/llir/llvm
⨍
Functions
1,729
◇
Types & classes
270
↓ 367 callers
Method
Fprintf
Fprintf formats according to a format specifier and writes to w. It returns the number of bytes written and any write error encountered.
ir/helper.go:521
↓ 197 callers
Method
Ident
Ident returns the identifier associated with the value.
ir/value/value.go:25
↓ 129 callers
Method
Type
Type returns the type of the value.
ir/value/value.go:23
↓ 123 callers
Method
irType
### [ Helpers ] ############################################################# irType returns the IR type corresponding to the given AST type.
asm/type.go:525
↓ 78 callers
Method
irTypeConst
irTypeConst translates the AST type-constant pair into an equivalent IR constant.
asm/const.go:65
↓ 76 callers
Method
irMDField
irMDField returns the IR metadata field corresponding to the given AST metadata field.
asm/metadata.go:87
↓ 69 callers
Method
irTypeValue
irTypeConst translates the AST type-value pair into an equivalent IR value.
asm/value.go:39
↓ 68 callers
Method
irMetadataAttachments
irMetadataAttachments returns the IR metadata attachments corresponding to the given AST metadata attachments.
asm/metadata.go:14
↓ 66 callers
Method
Equal
Equal reports whether t and u are of equal type.
ir/types/types.go:154
↓ 52 callers
Function
stringLit
--- [ String literals ] ----------------------------------------------------- stringLit returns the string corresponding to the given string literal.
asm/helper.go:244
↓ 51 callers
Method
Name
Name returns the type name of the type.
ir/types/types.go:156
↓ 50 callers
Function
uintLit
uintLit returns the unsigned integer value corresponding to the given unsigned integer literal.
asm/helper.go:167
↓ 37 callers
Function
quote
quote returns s as a double-quoted string literal.
ir/metadata/helper.go:56
↓ 31 callers
Method
Ident
Ident returns the identifier associated with the metadata node.
ir/metadata/sumtypes.go:16
↓ 31 callers
Method
irValue
irValue translates the AST value into an equivalent IR value.
asm/value.go:13
↓ 30 callers
Method
String
String returns the LLVM syntax representation of the specialized metadata node.
ir/metadata/specialized_metadata.go:701
↓ 27 callers
Method
evalValue
evalValue evalutes v and returns the corresponding 32-bit integer.
ir/evaluator_test.go:122
↓ 23 callers
Function
NewVector
NewVector returns a new vector type based on the given vector length and element type.
ir/types/types.go:527
↓ 22 callers
Function
quote
### [ Helper functions ] #################################################### quote returns s as a double-quoted string literal.
ir/helper.go:466
↓ 21 callers
Method
String
String returns the string representation of the switch case.
ir/terminator.go:280
↓ 20 callers
Function
intLit
intLit returns the integer value corresponding to the given integer literal.
asm/helper.go:200
↓ 18 callers
Function
boolLit
=== [ Literals ] ============================================================ --- [ Integer literals ] -----------------------------------------------
asm/helper.go:153
↓ 17 callers
Method
String
String returns the string representation of the landingpad clause.
ir/inst_other.go:665
↓ 17 callers
Function
TypeName
TypeName encodes a type name to its LLVM IR assembly representation. Examples: "foo" -> "%foo" "a b" -> `%"a b"` "世" -> `%"\E4\B8\96"` "2" -> `%2` R
internal/enc/enc.go:125
↓ 15 callers
Function
NewPointer
NewPointer returns a new pointer type based on the given element type.
ir/types/types.go:457
↓ 15 callers
Function
unquote
### [ Helpers ] ############################################################# unquote returns the unquoted version of s if quoted, and the original st
asm/helper.go:749
↓ 14 callers
Method
Fprint
Fprint formats using the default formats for its operands and writes to w. Spaces are added between operands when neither is a string. It returns the
ir/helper.go:508
↓ 14 callers
Method
LLString
LLString returns the LLVM syntax representation of the value.
ir/ir.go:8
↓ 14 callers
Function
text
text returns the text of the given node.
asm/helper.go:757
↓ 13 callers
Function
NewInt
NewInt returns a new integer constant based on the given integer type and 64-bit interger value.
ir/constant/const_int.go:24
↓ 13 callers
Method
String
String returns the LLVM syntax representation of the instruction as a type-value pair.
ir/inst_conversion.go:117
↓ 13 callers
Method
String
String returns the LLVM syntax representation of the metadata tuple.
ir/metadata/metadata.go:70
↓ 13 callers
Method
irBlock
irBlock returns the IR basic block corresponding to the given AST label.
asm/helper.go:298
↓ 13 callers
Function
localIdent
--- [ Local identifiers ] --------------------------------------------------- localIdent returns the identifier (without '%' prefix) of the given loca
asm/helper.go:48
↓ 12 callers
Method
String
String returns the LLVM syntax representation of the instruction as a type-value pair.
ir/inst_binary.go:43
↓ 12 callers
Method
String
String returns the LLVM syntax representation of the function as a type-value pair.
ir/func.go:98
↓ 11 callers
Function
NewFunc
NewFunc returns a new function type based on the given return type and function parameter types.
ir/types/types.go:219
↓ 10 callers
Function
ParseFile
ParseFile parses the given LLVM IR assembly file into an LLVM IR module.
asm/asm.go:23
↓ 10 callers
Function
globalIdent
=== [ Identifiers ] ========================================================= --- [ Global identifiers ] ---------------------------------------------
asm/helper.go:26
↓ 10 callers
Function
irFastMathFlags
irFastMathFlags returns the IR fast math flags corresponding to the given AST fast math flags.
asm/helper.go:399
↓ 9 callers
Function
Exists
Exists reports whether the given file or directory exists.
internal/osutil/osutil.go:10
↓ 9 callers
Method
Fprintln
Fprintln formats using the default formats for its operands and writes to w. Spaces are always added between operands and a newline is appended. It re
ir/helper.go:535
↓ 9 callers
Method
SetName
SetName sets the type name of the type.
ir/types/types.go:158
↓ 9 callers
Method
String
String returns the string representation of the integer type.
ir/types/types.go:312
↓ 9 callers
Method
irConstant
=== [ Translate AST to IR ] ================================================= irConstant translates the AST constant into an equivalent IR constant.
asm/const.go:17
↓ 8 callers
Method
ID
ID returns the ID of the local identifier.
ir/helper.go:550
↓ 8 callers
Function
NewArray
NewArray returns a new array type based on the given array length and element type.
ir/types/types.go:720
↓ 8 callers
Function
NewIndex
NewIndex returns a new constant index with the given value.
internal/gep/gep.go:30
↓ 8 callers
Function
NewStruct
NewStruct returns a new struct type based on the given field types.
ir/types/types.go:780
↓ 8 callers
Function
irOverflowFlags
irOverflowFlags returns the IR overflow flags corresponding to the given AST overflow flags.
asm/helper.go:592
↓ 8 callers
Function
uintSlice
uintSlice returns the slice of unsigned integer value corresponding to the given unsigned integer slice.
asm/helper.go:190
↓ 7 callers
Function
ComdatName
ComdatName encodes a comdat name to its LLVM IR assembly representation. Examples: "foo" -> $%foo" "a b" -> `$"a b"` "世" -> `$"\E4\B8\96"` Reference
internal/enc/enc.go:150
↓ 7 callers
Function
MetadataID
MetadataID encodes a metadata ID to its LLVM IR assembly representation. Examples: "42" -> "!42" References: http://www.llvm.org/docs/LangRef.html#i
internal/enc/enc.go:182
↓ 7 callers
Method
String
String returns the LLVM syntax representation of the instruction as a type-value pair.
ir/inst_memory.go:141
↓ 7 callers
Function
dwarfTagString
TODO: fix string representation for all enums which are defined in the grammar as `FooEnum | FooInt`, in the same way as dwarfTagString. dwarfTagStrin
ir/metadata/helper.go:47
↓ 7 callers
Function
irAddrSpace
___ [ Helpers ] _____________________________________________________________ irAddrSpace returns the IR address space corresponding to the given AST
asm/helper.go:252
↓ 7 callers
Function
irDwarfTag
irDwarfTag returns the IR Dwarf tag corresponding to the given AST Dwarf tag.
asm/specialized_metadata.go:1793
↓ 6 callers
Method
LLString
LLString returns the LLVM syntax representation of the definition of the type.
ir/types/types.go:152
↓ 6 callers
Method
String
String returns the LLVM syntax representation of the instruction as a type-value pair.
ir/inst_bitwise.go:291
↓ 6 callers
Function
diFlagsString
diFlagsString returns the string representation of the given debug information flags.
ir/metadata/helper.go:12
↓ 6 callers
Function
irDIFlags
irDIFlags returns the IR debug info flags corresponding to the given AST debug info flags.
asm/specialized_metadata.go:1683
↓ 6 callers
Method
irFuncAttribute
irFuncAttribute returns the IR function attribute corresponding to the given AST function attribute.
asm/helper.go:413
↓ 5 callers
Function
AttrGroupID
AttrGroupID encodes a attribute group ID to its LLVM IR assembly representation. Examples: "42" -> "#42" References: http://www.llvm.org/docs/LangRe
internal/enc/enc.go:137
↓ 5 callers
Function
EscapeIdent
EscapeIdent replaces any characters which are not valid in identifiers with corresponding hexadecimal escape sequence (\XX).
internal/enc/enc.go:210
↓ 5 callers
Function
NewInsertValue
NewInsertValue returns a new insertvalue instruction based on the given aggregate value, element and indicies.
ir/inst_aggregate.go:100
↓ 5 callers
Function
NewInt
NewInt returns a new integer type based on the given integer bit size.
ir/types/types.go:297
↓ 5 callers
Method
String
String returns a string representation of the function argument.
ir/helper.go:66
↓ 5 callers
Method
String
String returns the string representation of the module in LLVM IR assembly syntax.
ir/module.go:70
↓ 5 callers
Method
String
String returns the LLVM syntax representation of the constant expression as a type-value pair.
ir/constant/expr_binary.go:38
↓ 5 callers
Function
Strings
Strings sorts the given slice of strings in natural order.
internal/natsort/natsort.go:13
↓ 5 callers
Function
irAlign
irAlign returns the IR alignment corresponding to the given AST alignment.
asm/helper.go:257
↓ 5 callers
Method
irMDFieldOrInt
### [ Helper functions ] #################################################### irMDFieldOrInt returns the IR metadata field or integer corresponding to
asm/specialized_metadata.go:1670
↓ 4 callers
Function
Equal
Equal reports whether t and u are of equal type.
ir/types/types.go:128
↓ 4 callers
Function
Escape
Escape replaces any characters in s categorized as invalid by the valid function with corresponding hexadecimal escape sequence (\XX).
internal/enc/enc.go:266
↓ 4 callers
Function
GlobalName
GlobalName encodes a global name to its LLVM IR assembly representation. Examples: "foo" -> "@foo" "a b" -> `@"a b"` "世" -> `@"\E4\B8\96"` "2" -> `@"
internal/enc/enc.go:20
↓ 4 callers
Function
LocalName
LocalName encodes a local name to its LLVM IR assembly representation. Examples: "foo" -> "%foo" "a b" -> `%"a b"` "世" -> `%"\E4\B8\96"` "2" -> `%"2"
internal/enc/enc.go:55
↓ 4 callers
Function
MetadataName
MetadataName encodes a metadata name to its LLVM IR assembly representation. Examples: "foo" -> "!foo" "a b" -> `!a\20b` "世" -> `!\E4\B8\96` Referen
internal/enc/enc.go:163
↓ 4 callers
Method
NewFunc
--- [ Functions ] ----------------------------------------------------------- NewFunc appends a new function to the module based on the given function
ir/module_func.go:11
↓ 4 callers
Function
NewModule
NewModule returns a new LLVM IR module.
ir/module.go:62
↓ 4 callers
Function
NewZeroInitializer
NewZeroInitializer returns a new zeroinitializer constant based on the given type.
ir/constant/const_zeroinitializer.go:19
↓ 4 callers
Function
Quote
Quote returns s as a double-quoted string literal.
internal/enc/enc.go:333
↓ 4 callers
Function
ResultType
ResultType computes the result type of a getelementptr instruction or constant expression. getelementptr (ElemType, Src, Indices)
internal/gep/gep.go:41
↓ 4 callers
Method
SetID
SetID sets the ID of the local identifier.
asm/local.go:75
↓ 4 callers
Method
Type
Type returns the type of the instruction.
ir/inst_other.go:442
↓ 4 callers
Method
Type
Type returns the type of the terminator.
ir/terminator.go:414
↓ 4 callers
Method
Type
Type returns the type of the terminator.
ir/terminator.go:573
↓ 4 callers
Method
addLocal
### [ Helper functions ] #################################################### addLocal adds the local variable with the given local identifier to the
asm/local.go:178
↓ 4 callers
Function
callingConvString
callingConvString returns the string representation of the given calling convention.
ir/helper.go:472
↓ 4 callers
Function
giveUnnamedIdentID
giveUnnamedIdentID assigns an unused ID to the global identifier if unnamed.
asm/module.go:97
↓ 4 callers
Function
irCallingConv
irCallingConv returns the IR calling convention corresponding to the given AST calling convention.
asm/helper.go:313
↓ 4 callers
Function
irReturnAttribute
irReturnAttribute returns the IR return attribute corresponding to the given AST return attribute.
asm/helper.go:674
↓ 4 callers
Function
isdigit
isdigit reports whether the given byte is a decimal digit.
internal/natsort/natsort.go:32
↓ 4 callers
Function
testSet
Get 1000 arrays of 10000-string-arrays (less if -short is specified).
internal/natsort/natsort_test.go:154
↓ 3 callers
Function
GlobalID
GlobalID encodes a global ID to its LLVM IR assembly representation. Examples: "42" -> "@42" References: http://www.llvm.org/docs/LangRef.html#ident
internal/enc/enc.go:38
↓ 3 callers
Method
ID
ID returns the ID of the local identifier.
asm/local.go:73
↓ 3 callers
Method
IsUnnamed
IsUnnamed reports whether the local identifier is unnamed.
asm/local.go:77
↓ 3 callers
Method
IsUnnamed
IsUnnamed reports whether the local identifier is unnamed.
ir/helper.go:554
↓ 3 callers
Method
Len
()
internal/natsort/natsort.go:27
↓ 3 callers
Function
Less
Less compares two strings using natural ordering. This means that e.g. "abc2" < "abc12". Non-digit sequences and numbers are compared separately. The
internal/natsort/natsort.go:44
↓ 3 callers
Function
LocalID
LocalID encodes a local ID to its LLVM IR assembly representation. Examples: "42" -> "%42" References: http://www.llvm.org/docs/LangRef.html#identif
internal/enc/enc.go:73
next →
1–100 of 1,729, ranked by callers