21 lines
666 B
Factor
21 lines
666 B
Factor
! Copyright (C) 2017 Björn Lindqvist.
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: help.markup help.syntax llvm.wrappers strings ;
|
|
|
|
IN: llvm.reader
|
|
|
|
HELP: buffer>module
|
|
{ $values { "buffer" buffer } { "module" module } }
|
|
{ $description "Creates a module from a buffer. The buffer is disposed of." } ;
|
|
|
|
HELP: load-module
|
|
{ $values { "path" string } { "module" module } }
|
|
{ $description "Parses a file containing llvm bitcode into an llvm module." }
|
|
{ $examples
|
|
{ $unchecked-example
|
|
"USING: io.pathnames llvm.reader ;"
|
|
"\"resource:extra/llvm/wrappers/add.bc\" absolute-path load-module"
|
|
"T{ module { value ALIEN: 1be7120 } }"
|
|
}
|
|
} ;
|