IRType

public protocol IRType

An IRType is a type that is capable of lowering itself to an LLVMTypeRef object for use with LLVM’s C API.

  • Retrieves the underlying LLVM type object.

    Declaration

    Swift

    func asLLVM() -> LLVMTypeRef
  • null() Extension method

    Returns the special null value for this type.

    Declaration

    Swift

    public func null() -> IRValue
  • undef() Extension method

    Returns the special LLVM undef value for this type.

    The undef value can be used anywhere a constant is expected, and indicates that the user of the value may receive an unspecified bit-pattern.

    Declaration

    Swift

    public func undef() -> IRValue
  • constPointerNull() Extension method

    Returns the special LLVM constant null pointer value for this type initialized to null.

    Declaration

    Swift

    public func constPointerNull() -> IRValue
  • dump() Extension method

    Dumps a representation of this type to stderr.

    Declaration

    Swift

    public func dump()