Enums
The following enums are available globally.
-
Represents unsigned integral types and operations.
Declaration
Swift
public enum Unsigned: IntegralConstantRepresentation -
Represents signed integral types and operations.
Declaration
Swift
public enum Signed: IntegralConstantRepresentation -
Represents floating types and operations.
Declaration
Swift
public enum Floating: ConstantRepresentation
-
Enumerates the calling conventions supported by LLVM.
The raw values of this enumeration must match those in llvm-c/Core.h
See moreDeclaration
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 moreDeclaration
Swift
public enum ThreadLocalModel
-
Species the behavior that should occur on overflow during mathematical operations.
See moreDeclaration
Swift
public enum OverflowBehavior -
The condition codes available for integer comparison instructions.
See moreDeclaration
Swift
public enum IntPredicate -
The condition codes available for floating comparison instructions.
See moreDeclaration
Swift
public enum RealPredicate -
AtomicOrderingenumerates available memory ordering semantics.Atomic instructions (
See morecmpxchg,atomicrmw,fence,atomic load, andatomic 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.Declaration
Swift
public enum AtomicOrdering: Comparable -
See moreAtomicReadModifyWriteOperationenumerates the kinds of supported atomic read-write-modify operations.Declaration
Swift
public enum AtomicReadModifyWriteOperation
-
JITError represents the different kinds of errors the JIT compiler can throw.
See moreDeclaration
Swift
public enum JITError: Error, CustomStringConvertible
-
Enumerates the possible failures that can be thrown initializing a MemoryBuffer.
See moreDeclaration
Swift
public enum MemoryBufferError: Error
-
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 moreDeclaration
Swift
public enum OpCode: UInt32
-
A subset of supported LLVM IR optimizer passes.
See moreDeclaration
Swift
public enum FunctionPass
-
See moreByteOrderenumerates the ordering semantics of sequences of bytes on a particular target architecture.Declaration
Swift
public enum ByteOrder -
LLVM-provided high-level optimization levels.
Each level has a specific goal and rationale.
See moreDeclaration
Swift
public enum CodeGenOptLevel -
The relocation model types supported by LLVM.
See moreDeclaration
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 moreDeclaration
Swift
public enum CodeModel
-
The supported types of files codegen can produce.
See moreDeclaration
Swift
public enum CodegenFileType -
Represents one of a few errors that can be thrown by a
See moreTargetMachineDeclaration
Swift
public enum TargetMachineError: Error, CustomStringConvertible
Enums Reference