llvmlite の API リファレンス
llvmlite (numba/llvmlite) の公開 API 91 件 —— クラス 41、関数 12、メソッド 38。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: numba/llvmlite
| 種別 | 件数 |
|---|---|
| クラス | 41 |
| 関数 | 12 |
| メソッド | 38 |
API 一覧
func
llvmlite.binding.analysis.view_dot_graph(graph, filename=None, view=False)View the given DOT source.
func
llvmlite.binding.dylib.load_library_permanently(filename)Load an external library
class
llvmlite.binding.executionengine.ExecutionEngineAn ExecutionEngine owns all Modules associated with it.
method
llvmlite.binding.executionengine.ExecutionEngine.add_object_file(obj_file)Add object file to the jit.
class
llvmlite.binding.ffi.ObjectRefA wrapper around a ctypes pointer to a LLVM object ("resource").
method
llvmlite.binding.ffi.ObjectRef.closed()Whether this object has been closed.
class
llvmlite.binding.ffi.OutputStringObject for managing the char* output of LLVM APIs.
func
llvmlite.binding.ffi.ret_bytes(ptr)To wrap bytes return-value from C-API.
func
llvmlite.binding.ffi.ret_string(ptr)To wrap string return-value from C-API.
func
llvmlite.binding.initfini.initialize()Initialize the LLVM core (deprecated).
func
llvmlite.binding.initfini.initialize_all_asmprinters()Initialize all code generators.
func
llvmlite.binding.initfini.initialize_all_targets()Initialize all targets.
func
llvmlite.binding.initfini.initialize_native_asmparser()Initialize the native ASM parser.
func
llvmlite.binding.initfini.initialize_native_asmprinter()Initialize the native ASM printer.
class
llvmlite.binding.module.ModuleRefA reference to a LLVM module.
method
llvmlite.binding.module.ModuleRef.name()The module's identifier.
method
llvmlite.binding.module.ModuleRef.verify()Verify the module IR's correctness.
func
llvmlite.binding.module.parse_assembly(llvmir, context=None)Create Module from a LLVM IR string
class
llvmlite.binding.newpassmanagers.PruneStatsHolds statistics from reference count pruning.
func
llvmlite.binding.newpassmanagers.set_time_passes(enable)Enable or disable the pass timers.
class
llvmlite.binding.targets.TargetDataA TargetData provides structured access to a data layout.
method
llvmlite.binding.targets.TargetData.get_abi_size(ty)Get ABI size of LLVM type *ty*.
func
llvmlite.binding.targets.get_triple_parts(triple:str)Return a tuple of the parts of the given triple.
class
llvmlite.binding.typeref.TypeRefA weak reference to a LLVM type
method
llvmlite.binding.typeref.TypeRef.as_ir(ir_ctx:ir.Context) -> ir.TypeConvert into a ``llvmlite.ir.Type``.
method
llvmlite.binding.typeref.TypeRef.elements()Returns iterator over enclosing types
method
llvmlite.binding.typeref.TypeRef.name()Get type name
class
llvmlite.binding.value.ValueRefA weak reference to a LLVM value.
method
llvmlite.binding.value.ValueRef.global_value_type()Uses ``LLVMGlobalGetValueType()``.
method
llvmlite.binding.value.ValueRef.type()This value's LLVM type.
method
llvmlite.ir.builder.IRBuilder.add(lhs, rhs, name='')Integer addition: name = lhs + rhs
method
llvmlite.ir.builder.IRBuilder.and_(lhs, rhs, name='')Bitwise integer AND: name = lhs & rhs
method
llvmlite.ir.builder.IRBuilder.asm(ftype, asm, constraint, args, side_effect, name='')Inline assembler.
method
llvmlite.ir.builder.IRBuilder.block()The current basic block.
method
llvmlite.ir.builder.IRBuilder.branch(target)Unconditional branch to *target*.
method
llvmlite.ir.builder.IRBuilder.branch_indirect(addr)Indirect branch to target *addr*.
method
llvmlite.ir.builder.IRBuilder.convert_to_fp16(a)Convert the given FP number to an i16
method
llvmlite.ir.builder.IRBuilder.ctlz(cond, flag)Counts leading zero bits in *value*.
method
llvmlite.ir.builder.IRBuilder.cttz(cond, flag)Counts trailing zero bits in *value*.
method
llvmlite.ir.builder.IRBuilder.fneg(arg, name='', flags=())Floating-point negative: name = -arg
method
llvmlite.ir.builder.IRBuilder.function()The current function.
method
llvmlite.ir.builder.IRBuilder.module()The current module.
method
llvmlite.ir.builder.IRBuilder.neg(value, name='')Integer negative: name = -value
method
llvmlite.ir.builder.IRBuilder.or_(lhs, rhs, name='')Bitwise integer OR: name = lhs | rhs
method
llvmlite.ir.builder.IRBuilder.remove(instr)Remove the given instruction.
method
llvmlite.ir.builder.IRBuilder.resume(landingpad)Resume an in-flight exception.
method
llvmlite.ir.builder.IRBuilder.ret_void()Return from function without a value.
method
llvmlite.ir.builder.IRBuilder.shl(lhs, rhs, name='')Left integer shift: name = lhs << rhs
method
llvmlite.ir.builder.IRBuilder.sub(lhs, rhs, name='')Integer subtraction: name = lhs - rhs
method
llvmlite.ir.builder.IRBuilder.xor(lhs, rhs, name='')Bitwise integer XOR: name = lhs ^ rhs
class
llvmlite.ir.instructions.CmpXchgThis instruction has changed since llvm3.5.
class
llvmlite.ir.instructions.CommentA line comment.
class
llvmlite.ir.instructions.FenceThe `fence` instruction.
method
llvmlite.ir.module.Module.add_global(globalvalue)Add a new global value.
method
llvmlite.ir.module.Module.get_global(name)Get a global value by name.
class
llvmlite.ir.types.AggregateBase class for aggregate types.
class
llvmlite.ir.types.ArrayTypeThe type for fixed-size homogenous arrays (e.g.
class
llvmlite.ir.types.BaseStructTypeThe base type for heterogenous struct types.
class
llvmlite.ir.types.DoubleTypeThe type for double-precision floats.
class
llvmlite.ir.types.FloatTypeThe type for single-precision floats.
class
llvmlite.ir.types.FunctionTypeThe type for functions.
class
llvmlite.ir.types.HalfTypeThe type for single-precision floats.
class
llvmlite.ir.types.IntTypeThe type for integers.
class
llvmlite.ir.types.LabelTypeThe label type is the type of e.g.
class
llvmlite.ir.types.LiteralStructTypeThe type of "literal" structs, i.e.
class
llvmlite.ir.types.PointerTypeThe type of all pointer values.
method
llvmlite.ir.types.PointerType.from_llvm(typeref, ir_ctx)Create from a llvmlite.binding.TypeRef
class
llvmlite.ir.types.TypeThe base class for all LLVM types.
method
llvmlite.ir.types.Type.format_constant(value)Format constant *value* of this type.
method
llvmlite.ir.types.Type.wrap_constant_value(value)Wrap constant *value* if necessary.
class
llvmlite.ir.types.VectorTypeThe type for vectors of primitive data items (e.g.
class
llvmlite.ir.types.VoidTypeThe type for empty values (e.g.
class
llvmlite.ir.values.ArgumentThe specification of a function argument.
class
llvmlite.ir.values.AttributeSetA set of string attribute.
class
llvmlite.ir.values.BlockA LLVM IR basic block.
method
llvmlite.ir.values.Block.replace(old, new)Replace an instruction
class
llvmlite.ir.values.BlockAddressThe address of a basic block.
class
llvmlite.ir.values.ConstantA constant LLVM value.
class
llvmlite.ir.values.DIValueA debug information descriptor, containing key-value pairs.
class
llvmlite.ir.values.FormattedConstantA constant with an already formatted IR representation.
class
llvmlite.ir.values.FunctionRepresent a LLVM Function but does uses a Module as parent.
method
llvmlite.ir.values.Function.descr_body(buf)Describe of the body of the function.
method
llvmlite.ir.values.Function.insert_basic_block(before, name='')Insert block before
class
llvmlite.ir.values.GlobalValueA global value.
class
llvmlite.ir.values.GlobalVariableA global variable.
class
llvmlite.ir.values.MetaDataArgumentAn argument value to a function taking metadata arguments.
class
llvmlite.ir.values.MetaDataStringA metadata string, i.e.
class
llvmlite.ir.values.NamedMetaDataA named metadata node.
class
llvmlite.ir.values.NamedValueThe base class for named values.
class
llvmlite.ir.values.ReturnValueThe specification of a function's return value.
class
llvmlite.ir.values.ValueThe base class for all values.
この情報について
掲載しているシグネチャは numba/llvmlite の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。