Categorygithub.com/llir/irutil
modulepackage
0.0.0-20230226050352-c20f75c375f9
Repository: https://github.com/llir/irutil.git
Documentation: pkg.go.dev

# README

irutil

GoDoc

LLVM IR utility functions.

The irutil repository provides utility functions for LLVM IR and is intended to supplement llir/llvm.

Experimental

Note: the API of irutil is to be considered experimental. We intend to iterate on the design of the API, so make sure to pin versions to ensure stability.

License

The llir/irutil project is dual-licensed to the public domain and under a zero-clause BSD license. You may choose either license to govern your use of llir/irutil.

# Functions

No description provided by the author
NewComment returns a new LLVM IR comment represented as a pseudo-instruction.
NewCString returns a new NULL-terminated character array constant based on the given UTF-8 string contents.
NewDataLayout returns an instance of DataLayout with default values taken from https://llvm.org/docs/LangRef.html#data-layout.
NewDataLayoutFromString parses a datalayout string and constructs a DataLayout object.
No description provided by the author
No description provided by the author
No description provided by the author
NewPascalString returns a length-prefixed string, also known as a Pascal string.
No description provided by the author
No description provided by the author
NewZero returns a new zero value of the given type.
ResetNames resets the IDs of unnamed local variables in the given function.
ResetTypes resets the (cached) types of instructions in the given function.
Simplify returns an equivalent (and potentially simplified) constant to the constant expression.
Walk walks the LLVM IR AST in depth-first order; invoking visit recursively for each non-nil child of root.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Comment is an LLVM IR comment represented as a pseudo-instruction.
DataLayout is a structural representation of the datalayout string from https://llvm.org/docs/LangRef.html#data-layout.
DefaultLayout provides a default implementation of data layout, which specifies the size of types and how data is to be laid out in memory.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Ident is the global or local identifier of a named value.
Layout specifies how data is to be laid out in memory.

# Type aliases

No description provided by the author