Enums

The following enums are available globally.

  • FloatType enumerates representations of a floating value of a particular bit width and semantics.

    See more

    Declaration

    Swift

    public enum FloatType: IRType
  • Enumerates the calling conventions supported by LLVM.

    The raw values of this enumeration must match those in llvm-c/Core.h

    See more

    Declaration

    Swift

    public enum CallingConvention: UInt32
  • Enumerates the supported models of reference of thread-local variables.

    These models are listed from the most general, but least optimized, to the fastest, but most restrictive.

    Documentation of these models quotes the Oracle Linker and Libraries Guide.

    See more

    Declaration

    Swift

    public enum ThreadLocalModel
  • Species the behavior that should occur on overflow during mathematical operations.

    See more

    Declaration

    Swift

    public enum OverflowBehavior
  • The condition codes available for integer comparison instructions.

    See more

    Declaration

    Swift

    public enum IntPredicate
  • The condition codes available for floating comparison instructions.

    See more

    Declaration

    Swift

    public enum RealPredicate
  • AtomicOrdering enumerates available memory ordering semantics.

    Atomic instructions (cmpxchg, atomicrmw, fence, atomic load, and atomic store) take ordering parameters that determine which other atomic instructions on the same address they synchronize with. These semantics are borrowed from Java and C++0x, but are somewhat more colloquial. If these descriptions aren’t precise enough, check those specs (see spec references in the atomics guide). fence instructions treat these orderings somewhat differently since they don’t take an address. See that instruction’s documentation for details.

    See more

    Declaration

    Swift

    public enum AtomicOrdering: Comparable
  • AtomicReadModifyWriteOperation enumerates the kinds of supported atomic read-write-modify operations.

    See more

    Declaration

    Swift

    public enum AtomicReadModifyWriteOperation
  • JITError represents the different kinds of errors the JIT compiler can throw.

    See more

    Declaration

    Swift

    public enum JITError: Error, CustomStringConvertible
  • Visibility enumerates available visibility styles.

    See more

    Declaration

    Swift

    public enum Visibility
  • Linkage enumerates the supported kinds of linkage for global values. All global variables and functions have a linkage.

    See more

    Declaration

    Swift

    public enum Linkage
  • Enumerates the possible failures that can be thrown initializing a MemoryBuffer.

    See more

    Declaration

    Swift

    public enum MemoryBufferError: Error
  • Represents the possible errors that can be thrown while interacting with a Module object.

    See more

    Declaration

    Swift

    public enum ModuleError: Error, CustomStringConvertible
  • Enumerates the opcodes of instructions available in the LLVM IR language.

    The raw values of this enumeration must match those in llvm-c/Core.h

    See more

    Declaration

    Swift

    public enum OpCode: UInt32
  • A subset of supported LLVM IR optimizer passes.

    See more

    Declaration

    Swift

    public enum FunctionPass
  • ByteOrder enumerates the ordering semantics of sequences of bytes on a particular target architecture.

    See more

    Declaration

    Swift

    public enum ByteOrder
  • LLVM-provided high-level optimization levels.

    Each level has a specific goal and rationale.

    See more

    Declaration

    Swift

    public enum CodeGenOptLevel
  • The relocation model types supported by LLVM.

    See more

    Declaration

    Swift

    public enum RelocMode
  • The model that generated code should follow. Code Models enables particular styles of generated code that may be more suitable for each enumerated domain. Code Models differ in addressing (absolute versus position independent), code size, data size and address range.

    Documentation of these modes paraphrases the Intel System V ABI AMD64 Architecture Processor Supplement.

    See more

    Declaration

    Swift

    public enum CodeModel