2 Types
LLVM types represent the type system of the intermediate representation. Every value in LLVM IR has a type.
2.1 Integer Types
procedure
procedure
procedure
procedure
procedure
procedure
procedure
(llvm-int-type num-bits) → LLVMTypeRef?
num-bits : exact-nonnegative-integer?
2.2 Floating-Point Types
procedure
procedure
procedure
2.3 Other Scalar Types
procedure
procedure
2.4 Composite Types
procedure
(llvm-function-type return-type [ param-types variadic?]) → LLVMTypeRef? return-type : LLVMTypeRef? param-types : (listof LLVMTypeRef?) = '() variadic? : boolean? = #f
procedure
(llvm-pointer-type type [address-space]) → LLVMTypeRef?
type : LLVMTypeRef? address-space : exact-nonnegative-integer? = 0
procedure
(llvm-array-type element-type count) → LLVMTypeRef?
element-type : LLVMTypeRef? count : exact-nonnegative-integer?
procedure
(llvm-vector-type element-type count) → LLVMTypeRef?
element-type : LLVMTypeRef? count : exact-nonnegative-integer?
procedure
(llvm-struct-type element-types [packed?]) → LLVMTypeRef?
element-types : (listof LLVMTypeRef?) packed? : boolean? = #f
procedure
(llvm-struct-create-named context name) → LLVMTypeRef?
context : LLVMContextRef? name : string?
procedure
(llvm-struct-set-body struct-type [ element-types pack?]) → void? struct-type : LLVMTypeRef? element-types : (listof LLVMTypeRef?) = (list) pack? : boolean? = #f
procedure
(llvm-add-struct-type mod element-types [ pack?]) → LLVMTypeRef? mod : LLVMModuleRef? element-types : (listof LLVMTypeRef?) pack? : boolean? = #f
2.5 Type Queries
procedure
type : LLVMTypeRef?
procedure
(llvm-get-return-type function-type) → LLVMTypeRef?
function-type : LLVMTypeRef?
procedure
(llvm-count-param-types function-type)
→ exact-nonnegative-integer? function-type : LLVMTypeRef?
procedure
(llvm-is-function-var-arg function-type) → boolean?
function-type : LLVMTypeRef?
procedure
(llvm-get-element-type type) → LLVMTypeRef?
type : LLVMTypeRef?
procedure
type : LLVMTypeRef?
procedure
type : LLVMTypeRef?
procedure
(llvm-print-type-to-string type) → string?
type : LLVMTypeRef?