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
↓ 1 callers
Function
NewSExt
NewSExt returns a new sext instruction based on the given source value and target type.
ir/inst_conversion.go:163
↓ 1 callers
Function
NewSExt
NewSExt returns a new sext expression based on the given source value and target type.
ir/constant/expr_conversion.go:95
↓ 1 callers
Function
NewSIToFP
NewSIToFP returns a new sitofp instruction based on the given source value and target type.
ir/inst_conversion.go:475
↓ 1 callers
Function
NewSIToFP
NewSIToFP returns a new sitofp expression based on the given source value and target type.
ir/constant/expr_conversion.go:311
↓ 1 callers
Function
NewSRem
NewSRem returns a new srem instruction based on the given operands.
ir/inst_binary.go:666
↓ 1 callers
Function
NewSRem
NewSRem returns a new srem expression based on the given operands.
ir/constant/expr_binary.go:487
↓ 1 callers
Function
NewSelect
NewSelect returns a new select instruction based on the given selection condition and true and false condition values.
ir/inst_other.go:283
↓ 1 callers
Function
NewSelect
NewSelect returns a new select expression based on the given selection condition and operands.
ir/constant/expr_other.go:133
↓ 1 callers
Function
NewShl
NewShl returns a new shl instruction based on the given operands.
ir/inst_bitwise.go:34
↓ 1 callers
Function
NewShl
NewShl returns a new shl expression based on the given operands.
ir/constant/expr_bitwise.go:29
↓ 1 callers
Function
NewShuffleVector
NewShuffleVector returns a new shufflevector instruction based on the given vectors and shuffle mask.
ir/inst_vector.go:167
↓ 1 callers
Function
NewShuffleVector
NewShuffleVector returns a new shufflevector expression based on the given vectors and shuffle mask.
ir/constant/expr_vector.go:128
↓ 1 callers
Function
NewStruct
NewStruct returns a new struct constant based on the given struct type and fields. The struct type is infered from the type of the fields if t is nil.
ir/constant/const_struct.go:22
↓ 1 callers
Function
NewSub
NewSub returns a new sub instruction based on the given operands.
ir/inst_binary.go:162
↓ 1 callers
Function
NewSub
NewSub returns a new sub expression based on the given operands.
ir/constant/expr_binary.go:121
↓ 1 callers
Function
NewSwitch
NewSwitch returns a new switch terminator based on the given control variable, default target basic block and switch cases.
ir/terminator.go:217
↓ 1 callers
Function
NewTrunc
NewTrunc returns a new trunc expression based on the given source value and target type.
ir/constant/expr_conversion.go:23
↓ 1 callers
Function
NewUDiv
NewUDiv returns a new udiv instruction based on the given operands.
ir/inst_binary.go:418
↓ 1 callers
Function
NewUDiv
NewUDiv returns a new udiv expression based on the given operands.
ir/constant/expr_binary.go:305
↓ 1 callers
Function
NewUIToFP
NewUIToFP returns a new uitofp instruction based on the given source value and target type.
ir/inst_conversion.go:423
↓ 1 callers
Function
NewUIToFP
NewUIToFP returns a new uitofp expression based on the given source value and target type.
ir/constant/expr_conversion.go:275
↓ 1 callers
Function
NewURem
NewURem returns a new urem instruction based on the given operands.
ir/inst_binary.go:608
↓ 1 callers
Function
NewURem
NewURem returns a new urem expression based on the given operands.
ir/constant/expr_binary.go:445
↓ 1 callers
Function
NewUnreachable
NewUnreachable returns a new unreachable terminator.
ir/terminator.go:966
↓ 1 callers
Function
NewVAArg
NewVAArg returns a new va_arg instruction based on the given variable argument list and argument type.
ir/inst_other.go:550
↓ 1 callers
Function
NewVector
NewVector returns a new vector constant based on the given vector type and elements. The vector type is infered from the type of the elements if t is
ir/constant/const_vector.go:23
↓ 1 callers
Function
NewXor
NewXor returns a new xor instruction based on the given operands.
ir/inst_bitwise.go:340
↓ 1 callers
Function
NewXor
NewXor returns a new xor expression based on the given operands.
ir/constant/expr_bitwise.go:263
↓ 1 callers
Function
NewZExt
NewZExt returns a new zext instruction based on the given source value and target type.
ir/inst_conversion.go:111
↓ 1 callers
Function
NewZExt
NewZExt returns a new zext expression based on the given source value and target type.
ir/constant/expr_conversion.go:59
↓ 1 callers
Method
NextString
Gets random random-length alphanumeric string.
internal/natsort/natsort_test.go:185
↓ 1 callers
Method
Operands
Operands returns a mutable list of operands of the given value user (instruction or terminator).
ir/value/value.go:52
↓ 1 callers
Function
ParseString
ParseString parses the given LLVM IR assembly file into an LLVM IR module, reading from content. An optional path to the source file may be specified
asm/asm.go:53
↓ 1 callers
Method
SetDistinct
SetDistinct specifies whether the metadata definition is dinstict.
ir/metadata/sumtypes.go:37
↓ 1 callers
Method
String
String returns the LLVM syntax representation of the global variable as a type-value pair.
ir/global.go:83
↓ 1 callers
Method
String
String returns the LLVM syntax representation of the instruction as a type-value pair.
ir/inst_unary.go:43
↓ 1 callers
Method
String
String returns the LLVM syntax representation of the inline assembler expression as a type-value pair.
ir/inline_asm.go:37
↓ 1 callers
Method
String
String returns the LLVM syntax representation of the IFunc as a type-value pair.
ir/ifunc.go:51
↓ 1 callers
Method
String
String returns the string representation of the pointer type.
ir/types/types.go:471
↓ 1 callers
Method
String
String returns a string representation of the getelementptr index.
ir/constant/expr_memory.go:95
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_memory.go:146
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:70
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:122
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:174
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:226
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:278
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:330
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:382
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:434
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:486
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:538
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:590
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:642
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_conversion.go:694
↓ 1 callers
Method
Type
Type returns the type of the function parameter.
ir/helper.go:435
↓ 1 callers
Method
Type
Type returns the type of the inline assembler expression.
ir/inline_asm.go:42
↓ 1 callers
Method
Type
Type returns the type of the basic block.
ir/block.go:47
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_other.go:561
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_other.go:616
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_other.go:703
↓ 1 callers
Method
Type
Type returns the type of the instruction.
ir/inst_other.go:771
↓ 1 callers
Method
Type
Type returns the type of the terminator.
ir/terminator.go:773
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_null.go:29
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_none.go:22
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_poison.go:29
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_array.go:95
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_undef.go:29
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_float.go:282
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_zeroinitializer.go:30
↓ 1 callers
Method
Type
Type returns the type of the constant.
ir/constant/const_int.go:111
↓ 1 callers
Method
Type
Type returns the type of the metadata value.
ir/metadata/metadata.go:124
↓ 1 callers
Method
WriteTo
WriteTo write the string representation of the module in LLVM IR assembly syntax to w.
ir/module.go:80
↓ 1 callers
Method
addAttrGroupDefsToModule
addAttrGroupDefsToModule adds IR attribute group definitions to the IR module in numeric order.
asm/translate.go:260
↓ 1 callers
Method
addComdatDefsToModule
addComdatDefsToModule adds IR comdat definitions to the IR module in natural sorting order.
asm/translate.go:212
↓ 1 callers
Method
addDefsToModule
addDefsToModule adds IR top-level declarations and definitions to the IR module in order of occurrence in the input.
asm/translate.go:167
↓ 1 callers
Method
addGlobalEntitiesToModule
addGlobalEntitiesToModule adds IR global variable declarations and definitions, indirect symbol definitions, and function declarations and definitions
asm/translate.go:234
↓ 1 callers
Method
addMetadataDefsToModule
addMetadataDefsToModule adds IR metadata definitions to the IR module in numeric order.
asm/translate.go:293
↓ 1 callers
Method
addNamedMetadataDefsToModule
addNamedMetadataDefsToModule adds IR named metadata definitions to the IR module.
asm/translate.go:284
↓ 1 callers
Method
addTypeDefsToModule
addTypeDefsToModule adds IR type definitions to the IR module in natural sorting order.
asm/translate.go:191
↓ 1 callers
Function
aggregateElemType
### [ Helper functions ] #################################################### aggregateElemType returns the element type at the position in the aggreg
asm/inst_aggregate.go:100
↓ 1 callers
Function
aggregateElemType
### [ Helper functions ] #################################################### aggregateElemType returns the element type at the position in the aggreg
ir/constant/expr_aggregate.go:121
↓ 1 callers
Function
bodyString
bodyString returns the string representation of the function body.
ir/func.go:287
↓ 1 callers
Function
calcMaxHexEntropy
### [ Helper functions ] #################################################### calcMaxHexEntropy returns the maximum allowed hexadecimal entropy based
ir/constant/const_int.go:181
↓ 1 callers
Method
createAttrGroupDefs
--- [ Attribute group definitions ] ----------------------------------------- createAttrGroupDefs indexes IR attribute group IDs and creates scaffoldi
asm/module.go:143
↓ 1 callers
Method
createGlobalEntities
=== [ Create and index IR ] ================================================= createGlobalEntities indexes global identifiers and creates scaffolding
asm/global.go:25
↓ 1 callers
Method
createLocals
createLocals indexes local identifiers and creates scaffolding IR local variables (without bodies but with types) of the given function. post-conditi
asm/local.go:85
↓ 1 callers
Method
createMetadataDefs
--- [ Metadata definitions ] ------------------------------------------------ createMetadataDefs indexes IR metadata IDs and creates scaffolding IR me
asm/module.go:175
↓ 1 callers
Method
createNamedMetadataDefs
--- [ Named metadata definitions ] ------------------------------------------ createNamedMetadataDefs indexes IR metadata names and creates scaffoldin
asm/module.go:159
↓ 1 callers
Method
createTopLevelEntities
=== [ Create and index IR ] ================================================= createTopLevelEntities indexes IR top-level identifiers and creates scaf
asm/module.go:111
↓ 1 callers
Method
createTypeDefs
=== [ Create and index IR ] ================================================= createTypeDefs indexes type identifiers and creates scaffolding IR type
asm/type.go:37
↓ 1 callers
Function
decimalEntropy
decimalEntropy returns the entropy of x when encoded in decimal notation. The entropy is in range (0.0, 1.0] and is determined by the number of unique
ir/constant/const_int.go:246
↓ 1 callers
Function
digitValue
digitValue returns the integer value of the given digit byte. As defined by *big.Int.Text, the digit uses the lower-case letters 'a' to 'z' for digit
ir/constant/const_int.go:290
↓ 1 callers
Function
dispFlagsString
dispFlagsString returns the string representation of the given subprogram specific flags.
ir/metadata/helper.go:30
↓ 1 callers
Method
evalInst
evalInst evaluates inst and returns the corresponding 32-bit integer.
ir/evaluator_test.go:72
↓ 1 callers
Function
fixBlockAddressConst
### [ Helper functions ] #################################################### fixBlockAddressConst fixes the basic block of the given blockaddress con
asm/translate.go:321
↓ 1 callers
Function
genCallgraph
genCallgraph returns the callgraph in Graphviz DOT format of the given LLVM IR module.
ir/callgraph_test.go:41
↓ 1 callers
Function
gepExprType
### [ Helper functions ] #################################################### gepExprType computes the result type of a getelementptr constant express
ir/constant/expr_memory.go:108
↓ 1 callers
Method
gepExprType
### [ Helper functions ] #################################################### gepExprType computes the result type of a getelementptr constant express
asm/global.go:626
↓ 1 callers
Function
gepInstType
### [ Helper functions ] #################################################### gepInstType computes the result type of a getelementptr instruction. ge
ir/inst_memory.go:562
↓ 1 callers
Method
gepInstType
### [ Helper functions ] #################################################### gepInstType computes the result type of a getelementptr instruction. ge
asm/inst_memory.go:371
← previous
next →
501–600 of 1,729, ranked by callers