package
1.7.0-dev-20191021
Repository: https://github.com/google/gapid.git
Documentation: pkg.go.dev

# Functions

DataLayout returns an LLVM data layout string for the given ABI, or an empty string if there is no known data layout for the given ABI.
IsBool returns true if ty is the boolean type.
IsEnum returns true if ty is an enum type.
IsFloat returns true if ty is a float type.
IsFunction returns true if ty is a function type.
IsInteger returns true if ty is an integer type.
IsIntegerOrEnum returns true if ty is an integer or enum type.
IsPointer returns true if ty is a pointer type.
IsSignedInteger returns true if ty is a signed integer type.
IsSignedIntegerOrEnum returns true if ty is a signed integer or enum type.
IsStruct returns true if ty is a struct type.
IsUnsignedInteger returns true if ty is an unsigned integer type.
IsVector returns true if ty is a vector type.
NewModule returns a new module with the specified name.
NewTriple returns a new Triple.
Scalar returns the element type if ty is a vector, otherwise it returns ty.
StrideInBits returns the number of bits per element when held in an array.
TargetTriple returns an LLVM target triple for the given ABI in the form: <arch><sub>-<vendor>-<os>-<abi> References: https://github.com/llvm-mirror/llvm/blob/master/lib/Support/Triple.cpp https://clang.llvm.org/docs/CrossCompilation.html.
Underlying returns the underlying non-aliased type for ty.

# Variables

Variadic is a type that can be used as the last parameter of a function definition to indicate a variadic function.

# Structs

Alias is a named type that aliases another type.
Array represents a static array type.
Builder is provided to the callback of Build() for building a function's body.
Const is an immutable value.
Enum is an enumerator.
Executor executes module functions.
Field is a single field in a struct.
Float represents a floating-point type.
Function represents a callable function.
FunctionType is the type of a function.
Global is a global value.
Integer represents an integer type.
Module is a JIT module.
Pointer represents a pointer type.
Signature holds signature information about a function.
Struct is the type of a structure.
SwitchCase is a single condition and block used as a case statement in a switch.
Triple represents an LLVM target triple.
Types contains all the types for a module.
Value represents a value.
Vector represents a vector type.

# Interfaces

IndexOrName can be an index (int) or field name (string).
Type represents a codegen type.
ValueIndexOrName can be an index (Value or int) or field name (string).

# Type aliases

TypeList is a slice of types.