Handbook
Glossary
buffer>module ( buffer -- module )
Vocabulary
llvm
.
reader
Inputs
buffer
a
buffer
Outputs
module
a
module
Word description
Creates a module from a buffer. The buffer is disposed of.
Definition
USING:
accessors
alien.c-types
alien.data
destructors
kernel
llvm.ffi
llvm.wrappers
;
IN:
llvm.reader
:
buffer>module
( buffer -- module )
[
value>>
f
void*
<ref>
f
void*
<ref>
[
LLVMParseBitcode
drop
]
2keep
void*
deref
[
llvm-throw
]
when*
void*
deref
module
new
swap
>>value
]
with-disposal
;