Module: LLVM::C
- Extended by:
- FFI::Library
- Defined in:
- lib/llvm/core.rb,
lib/llvm/target.rb,
lib/llvm/core_ffi.rb,
lib/llvm/linker_ffi.rb,
lib/llvm/target_ffi.rb,
lib/llvm/analysis_ffi.rb,
lib/llvm/core/bitcode_ffi.rb,
lib/llvm/transforms/scalar.rb,
lib/llvm/transforms/ipo_ffi.rb,
lib/llvm/execution_engine_ffi.rb,
lib/llvm/transforms/scalar_ffi.rb,
lib/llvm/transforms/builder_ffi.rb,
lib/llvm/transforms/vectorize_ffi.rb
Defined Under Namespace
Modules: TargetWrappers Classes: MCJITCompilerOptions, OpaqueExecutionEngine, OpaqueGenericValue, OpaqueMCJITMemoryManager, OpaquePassManagerBuilder, OpaqueTargetData, OpaqueTargetLibraryInfotData, OpaqueTargetMachine, Target
Class Method Summary collapse
-
._callback_diagnostic_handler_(diagnostic_info_ref, void) ⇒ FFI::Pointer(DiagnosticInfoRef)
Contexts are execution states for the core LLVM IR system.
-
._callback_memory_manager_allocate_code_section_callback_(uint8_t, opaque, size, alignment, section_id, section_name) ⇒ Integer
– Operations on memory managers ————————————-===.
-
._callback_memory_manager_allocate_data_section_callback_(uint8_t, opaque, size, alignment, section_id, section_name, is_read_only) ⇒ Integer
(Not documented).
-
._callback_memory_manager_finalize_memory_callback_(bool, opaque, err_msg) ⇒ Integer
(Not documented).
-
._callback_yield_callback_(context_ref, void) ⇒ FFI::Pointer(ContextRef)
(Not documented).
-
._enum_atomic_ordering_ ⇒ Symbol
(Not documented).
-
._enum_atomic_rmw_bin_op_ ⇒ Symbol
(Not documented).
-
._enum_attribute_ ⇒ Symbol
(Not documented).
-
._enum_byte_ordering_ ⇒ Symbol
(Not documented).
-
._enum_call_conv_ ⇒ Symbol
(Not documented).
-
._enum_code_gen_file_type_ ⇒ Symbol
(Not documented).
-
._enum_code_gen_opt_level_ ⇒ Symbol
(Not documented).
-
._enum_code_model_ ⇒ Symbol
(Not documented).
-
._enum_diagnostic_severity_ ⇒ Symbol
(Not documented).
-
._enum_dll_storage_class_ ⇒ Symbol
(Not documented).
-
._enum_int_predicate_ ⇒ Symbol
(Not documented).
-
._enum_landing_pad_clause_ty_ ⇒ Symbol
(Not documented).
-
._enum_linkage_ ⇒ Symbol
(Not documented).
-
._enum_linker_mode_ ⇒ Symbol
This enum is provided for backwards-compatibility only.
-
._enum_opcode_ ⇒ Symbol
(Not documented).
-
._enum_real_predicate_ ⇒ Symbol
(Not documented).
-
._enum_reloc_mode_ ⇒ Symbol
(Not documented).
-
._enum_thread_local_mode_ ⇒ Symbol
(Not documented).
-
._enum_type_kind_ ⇒ Symbol
(Not documented).
-
._enum_verifier_failure_action_ ⇒ Symbol
@{.
-
._enum_visibility_ ⇒ Symbol
(Not documented).
-
.abi_alignment_of_type(td, ty) ⇒ Integer
(Not documented).
-
.abi_size_of_type(td, ty) ⇒ Integer
(Not documented).
-
.add_aggressive_dce_pass(pm) ⇒ nil
See llvm::createAggressiveDCEPass function.
-
.add_alias(m, ty, aliasee, name) ⇒ FFI::Pointer(ValueRef)
This group contains function that operate on global alias values.
-
.add_alignment_from_assumptions_pass(pm) ⇒ nil
See llvm::createAlignmentFromAssumptionsPass function.
-
.add_always_inliner_pass(pm) ⇒ nil
See llvm::createAlwaysInlinerPass function.
-
.add_analysis_passes(t, pm) ⇒ nil
Adds the target-specific analysis passes to the pass manager.
-
.add_argument_promotion_pass(pm) ⇒ nil
See llvm::createArgumentPromotionPass function.
-
.add_basic_alias_analysis_pass(pm) ⇒ nil
See llvm::createBasicAliasAnalysisPass function.
-
.add_bb_vectorize_pass(pm) ⇒ nil
DEPRECATED - Use LLVMAddSLPVectorizePass.
-
.add_bit_tracking_dce_pass(pm) ⇒ nil
See llvm::createBitTrackingDCEPass function.
-
.add_case(switch, on_val, dest) ⇒ nil
Add a case to the switch instruction.
-
.add_cfg_simplification_pass(pm) ⇒ nil
See llvm::createCFGSimplificationPass function.
-
.add_clause(landing_pad, clause_val) ⇒ nil
Add a catch or filter clause to the landingpad instruction.
-
.add_constant_merge_pass(pm) ⇒ nil
See llvm::createConstantMergePass function.
-
.add_constant_propagation_pass(pm) ⇒ nil
See llvm::createConstantPropagationPass function.
-
.add_correlated_value_propagation_pass(pm) ⇒ nil
See llvm::createCorrelatedValuePropagationPass function.
-
.add_dead_arg_elimination_pass(pm) ⇒ nil
See llvm::createDeadArgEliminationPass function.
-
.add_dead_store_elimination_pass(pm) ⇒ nil
See llvm::createDeadStoreEliminationPass function.
-
.add_demote_memory_to_register_pass(pm) ⇒ nil
See llvm::demotePromoteMemoryToRegisterPass function.
-
.add_destination(indirect_br, dest) ⇒ nil
Add a destination to the indirectbr instruction.
-
.add_early_cse_mem_ssa_pass(pm) ⇒ nil
See llvm::createEarlyCSEPass function.
-
.add_early_cse_pass(pm) ⇒ nil
See llvm::createEarlyCSEPass function.
-
.add_function(m, name, function_ty) ⇒ FFI::Pointer(ValueRef)
Add a function to a module under a specified name.
-
.add_function_attrs_pass(pm) ⇒ nil
See llvm::createFunctionAttrsPass function.
-
.add_function_inlining_pass(pm) ⇒ nil
See llvm::createFunctionInliningPass function.
-
.add_global(m, ty, name) ⇒ FFI::Pointer(ValueRef)
This group contains functions that operate on global variable values.
-
.add_global_dce_pass(pm) ⇒ nil
See llvm::createGlobalDCEPass function.
-
.add_global_in_address_space(m, ty, name, address_space) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.add_global_mapping(ee, global, addr) ⇒ nil
(Not documented).
-
.add_global_optimizer_pass(pm) ⇒ nil
See llvm::createGlobalOptimizerPass function.
-
.add_gvn_pass(pm) ⇒ nil
See llvm::createGVNPass function.
-
.add_incoming(phi_node, incoming_values, incoming_blocks, count) ⇒ nil
Add an incoming value to the end of a PHI list.
-
.add_ind_var_simplify_pass(pm) ⇒ nil
See llvm::createIndVarSimplifyPass function.
-
.add_instruction_combining_pass(pm) ⇒ nil
See llvm::createInstructionCombiningPass function.
-
.add_internalize_pass(pass_manager_ref, all_but_main) ⇒ nil
See llvm::createInternalizePass function.
-
.add_ip_constant_propagation_pass(pm) ⇒ nil
See llvm::createIPConstantPropagationPass function.
-
.add_ipsccp_pass(pm) ⇒ nil
See llvm::createIPSCCPPass function.
-
.add_jump_threading_pass(pm) ⇒ nil
See llvm::createJumpThreadingPass function.
-
.add_late_cfg_simplification_pass(pm) ⇒ nil
See llvm::createLateCFGSimplificationPass function.
-
.add_licm_pass(pm) ⇒ nil
See llvm::createLICMPass function.
-
.add_loop_deletion_pass(pm) ⇒ nil
See llvm::createLoopDeletionPass function.
-
.add_loop_idiom_pass(pm) ⇒ nil
See llvm::createLoopIdiomPass function.
-
.add_loop_reroll_pass(pm) ⇒ nil
See llvm::createLoopRerollPass function.
-
.add_loop_rotate_pass(pm) ⇒ nil
See llvm::createLoopRotatePass function.
-
.add_loop_unroll_pass(pm) ⇒ nil
See llvm::createLoopUnrollPass function.
-
.add_loop_unswitch_pass(pm) ⇒ nil
See llvm::createLoopUnswitchPass function.
-
.add_loop_vectorize_pass(pm) ⇒ nil
See llvm::createLoopVectorizePass function.
-
.add_lower_expect_intrinsic_pass(pm) ⇒ nil
See llvm::createLowerExpectIntrinsicPass function.
-
.add_lower_switch_pass(pm) ⇒ nil
See llvm::createLowerSwitchPass function.
-
.add_mem_cpy_opt_pass(pm) ⇒ nil
See llvm::createMemCpyOptPass function.
-
.add_merged_load_store_motion_pass(pm) ⇒ nil
See llvm::createMergedLoadStoreMotionPass function.
-
.add_module(ee, m) ⇒ nil
(Not documented).
-
.add_named_metadata_operand(m, name, val) ⇒ nil
Add an operand to named metadata.
-
.add_new_gvn_pass(pm) ⇒ nil
See llvm::createGVNPass function.
-
.add_partially_inline_lib_calls_pass(pm) ⇒ nil
See llvm::createPartiallyInlineLibCallsPass function.
-
.add_promote_memory_to_register_pass(pm) ⇒ nil
See llvm::createPromoteMemoryToRegisterPass function.
-
.add_prune_eh_pass(pm) ⇒ nil
See llvm::createPruneEHPass function.
-
.add_reassociate_pass(pm) ⇒ nil
See llvm::createReassociatePass function.
-
.add_scalar_repl_aggregates_pass(pm) ⇒ nil
See llvm::createSROAPass function.
-
.add_scalar_repl_aggregates_pass_ssa(pm) ⇒ nil
See llvm::createSROAPass function.
-
.add_scalar_repl_aggregates_pass_with_threshold(pm, threshold) ⇒ nil
See llvm::createSROAPass function.
-
.add_scalarizer_pass(pm) ⇒ nil
See llvm::createScalarizerPass function.
-
.add_sccp_pass(pm) ⇒ nil
See llvm::createSCCPPass function.
-
.add_scoped_no_alias_aa_pass(pm) ⇒ nil
See llvm::createScopedNoAliasAAPass function.
-
.add_simplify_lib_calls_pass(pm) ⇒ nil
See llvm::createSimplifyLibCallsPass function.
-
.add_slp_vectorize_pass(pm) ⇒ nil
See llvm::createSLPVectorizerPass function.
-
.add_strip_dead_prototypes_pass(pm) ⇒ nil
See llvm::createStripDeadPrototypesPass function.
-
.add_strip_symbols_pass(pm) ⇒ nil
See llvm::createStripSymbolsPass function.
-
.add_symbol(symbol_name, symbol_value) ⇒ nil
(Not documented).
-
.add_tail_call_elimination_pass(pm) ⇒ nil
See llvm::createTailCallEliminationPass function.
-
.add_target_dependent_function_attr(fn, a, v) ⇒ nil
Add a target-dependent attribute to a function.
-
.add_target_library_info(tli, pm) ⇒ nil
(Not documented).
-
.add_type_based_alias_analysis_pass(pm) ⇒ nil
See llvm::createTypeBasedAliasAnalysisPass function.
-
.add_verifier_pass(pm) ⇒ nil
See llvm::createVerifierPass function.
-
.align_of(ty) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.append_basic_block(fn, name) ⇒ FFI::Pointer(BasicBlockRef)
Append a basic block to the end of a function using the global context.
-
.append_basic_block_in_context(c, fn, name) ⇒ FFI::Pointer(BasicBlockRef)
Append a basic block to the end of a function.
-
.array_type(element_type, element_count) ⇒ FFI::Pointer(TypeRef)
Create a fixed size array type that refers to a specific type.
- .attach_function(name, *_) ⇒ Object
-
.basic_block_as_value(bb) ⇒ FFI::Pointer(ValueRef)
Convert a basic block instance to a value type.
-
.block_address(f, bb) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_a_shr(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
Arithmetic.
-
.build_addr_space_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_aggregate_ret(builder_ref, ret_vals, n) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_alloca(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_and(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_array_alloca(builder_ref, ty, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_array_malloc(builder_ref, ty, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_atomic_rmw(b, op, ptr, val, ordering, single_thread) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_bin_op(b, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_br(builder_ref, dest) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_call(builder_ref, fn, args, num_args, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_cast(b, op, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_cond_br(builder_ref, if_, then_, else_) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_exact_s_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_extract_element(builder_ref, vec_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_extract_value(builder_ref, agg_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_cmp(builder_ref, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_neg(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_f_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fence(b, ordering, single_thread, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fp_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fp_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fp_to_si(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fp_to_ui(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_fp_trunc(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_free(builder_ref, pointer_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_gep(b, pointer, indices, num_indices, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_global_string(b, str, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_global_string_ptr(b, str, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_i_cmp(builder_ref, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
Comparisons.
-
.build_in_bounds_gep(b, pointer, indices, num_indices, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_indirect_br(b, addr, num_dests) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_insert_element(builder_ref, vec_val, elt_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_insert_value(builder_ref, agg_val, elt_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_int_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_int_to_ptr(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_invoke(builder_ref, fn, args, num_args, then_, catch, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_is_not_null(builder_ref, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_is_null(builder_ref, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_l_shr(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_landing_pad(b, ty, pers_fn, num_clauses, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_load(builder_ref, pointer_val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_malloc(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
Memory.
-
.build_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_neg(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_not(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nsw_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nsw_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nsw_neg(b, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nsw_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nuw_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nuw_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nuw_neg(b, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_nuw_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_or(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_phi(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
Miscellaneous instructions.
-
.build_pointer_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_ptr_diff(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_ptr_to_int(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_resume(b, exn) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_ret(builder_ref, v) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_ret_void(builder_ref) ⇒ FFI::Pointer(ValueRef)
Terminators.
-
.build_s_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_s_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_s_ext_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_s_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_select(builder_ref, if_, then_, else_, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_shl(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_shuffle_vector(builder_ref, v1, v2, mask, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_si_to_fp(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_store(builder_ref, val, ptr) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_struct_gep(b, pointer, idx, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_switch(builder_ref, v, else_, num_cases) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_trunc(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
Casts.
-
.build_trunc_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_u_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_u_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_ui_to_fp(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_unreachable(builder_ref) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_va_arg(builder_ref, list, ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_xor(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_z_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.build_z_ext_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.byte_order(td) ⇒ Symbol from _enum_byte_ordering_
(Not documented).
-
.call_frame_alignment_of_type(td, ty) ⇒ Integer
(Not documented).
-
.clear_insertion_position(builder) ⇒ nil
(Not documented).
-
.clone_module(m) ⇒ FFI::Pointer(ModuleRef)
Return an exact copy of the specified module.
-
.const_a_shr(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_addr_space_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_all_ones(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to the instance of a type consisting of all ones.
-
.const_and(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_array(element_ty, constant_vals, length) ⇒ FFI::Pointer(ValueRef)
Create a ConstantArray from values.
-
.const_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_extract_element(vector_constant, index_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_f_cmp(predicate, lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_f_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_fp_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_fp_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_fp_to_si(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_fp_to_ui(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_fp_trunc(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_gep(constant_val, constant_indices, num_indices) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_i_cmp(predicate, lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_in_bounds_gep(constant_val, constant_indices, num_indices) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_inline_asm(ty, asm_string, constraints, has_side_effects, is_align_stack) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_insert_element(vector_constant, element_value_constant, index_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_int(int_ty, n, sign_extend) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer type.
-
.const_int_cast(constant_val, to_type, is_signed) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_int_get_s_ext_value(constant_val) ⇒ Integer
Obtain the sign extended value for an integer constant value.
-
.const_int_get_z_ext_value(constant_val) ⇒ Integer
Obtain the zero extended value for an integer constant value.
-
.const_int_of_arbitrary_precision(int_ty, num_words, words) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer of arbitrary precision.
-
.const_int_of_string(int_ty, text, radix) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer parsed from a string.
-
.const_int_of_string_and_size(int_ty, text, s_len, radix) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer parsed from a string with specified length.
-
.const_int_to_ptr(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_l_shr(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_named_struct(struct_ty, constant_vals, count) ⇒ FFI::Pointer(ValueRef)
Create a non-anonymous ConstantStruct from values.
-
.const_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_not(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nsw_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nsw_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nsw_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nsw_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_null(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to the null instance of a type.
-
.const_nuw_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nuw_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nuw_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_nuw_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_or(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_pointer_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_pointer_null(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant that is a constant pointer pointing to NULL for a specified type.
-
.const_ptr_to_int(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_real(real_ty, n) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to a double floating point value.
-
.const_real_get_double(constant_val, loses_info) ⇒ Float
Obtain the double value for an floating point constant value.
-
.const_real_of_string(real_ty, text) ⇒ FFI::Pointer(ValueRef)
Obtain a constant for a floating point value parsed from a string.
-
.const_real_of_string_and_size(real_ty, text, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a constant for a floating point value parsed from a string.
-
.const_s_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_s_ext_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_select(constant_condition, constant_if_true, constant_if_false) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_shl(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_shuffle_vector(vector_a_constant, vector_b_constant, mask_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_si_to_fp(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_string(str, length, dont_null_terminate) ⇒ FFI::Pointer(ValueRef)
Create a ConstantDataSequential with string content in the global context.
-
.const_string_in_context(c, str, length, dont_null_terminate) ⇒ FFI::Pointer(ValueRef)
Create a ConstantDataSequential and initialize it with a string.
-
.const_struct(constant_vals, count, packed) ⇒ FFI::Pointer(ValueRef)
Create a ConstantStruct in the global Context.
-
.const_struct_in_context(c, constant_vals, count, packed) ⇒ FFI::Pointer(ValueRef)
Create an anonymous ConstantStruct with the specified values.
-
.const_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_trunc(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_trunc_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_ui_to_fp(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_vector(scalar_constant_vals, size) ⇒ FFI::Pointer(ValueRef)
Create a ConstantVector from values.
-
.const_xor(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_z_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.const_z_ext_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.context_create ⇒ FFI::Pointer(ContextRef)
Create a new context.
-
.context_dispose(c) ⇒ nil
Destroy a context instance.
-
.context_set_diagnostic_handler(c, handler, diagnostic_context) ⇒ nil
Set the diagnostic handler for this context.
-
.context_set_yield_callback(c, callback, opaque_handle) ⇒ nil
Set the yield callback function for this context.
-
.copy_string_rep_of_target_data(td) ⇒ String
(Not documented).
-
.count_basic_blocks(fn) ⇒ Integer
Obtain the number of basic blocks in a function.
-
.count_incoming(phi_node) ⇒ Integer
Obtain the number of incoming basic blocks to a PHI node.
-
.count_param_types(function_ty) ⇒ Integer
Obtain the number of parameters this function accepts.
-
.count_params(fn) ⇒ Integer
Obtain the number of parameters in a function.
-
.count_struct_element_types(struct_ty) ⇒ Integer
Get the number of elements defined inside the structure.
-
.create_builder ⇒ FFI::Pointer(BuilderRef)
(Not documented).
-
.create_builder_in_context(c) ⇒ FFI::Pointer(BuilderRef)
An instruction builder represents a point within a basic block and is the exclusive means of building instructions using the C interface.
-
.create_execution_engine_for_module(out_ee, m, out_error) ⇒ Integer
– Operations on execution engines ———————————–===.
-
.create_function_pass_manager(mp) ⇒ FFI::Pointer(PassManagerRef)
Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.
-
.create_function_pass_manager_for_module(m) ⇒ FFI::Pointer(PassManagerRef)
Constructs a new function-by-function pass pipeline over the module provider.
-
.create_generic_value_of_float(ty, n) ⇒ OpaqueGenericValue
(Not documented).
-
.create_generic_value_of_int(ty, n, is_signed) ⇒ OpaqueGenericValue
– Operations on generic values ————————————–===.
-
.create_generic_value_of_pointer(p) ⇒ OpaqueGenericValue
(Not documented).
-
.create_interpreter_for_module(out_interp, m, out_error) ⇒ Integer
(Not documented).
-
.create_jit_compiler_for_module(out_jit, m, opt_level, out_error) ⇒ Integer
(Not documented).
-
.create_mcjit_compiler_for_module(out_jit, m, options, size_of_options, out_error) ⇒ Integer
Create an MCJIT execution engine for a module, with the given options.
-
.create_memory_buffer_with_contents_of_file(path, out_mem_buf, out_message) ⇒ Integer
@{.
-
.create_memory_buffer_with_memory_range(input_data, input_data_length, buffer_name, requires_null_terminator) ⇒ FFI::Pointer(MemoryBufferRef)
(Not documented).
-
.create_memory_buffer_with_memory_range_copy(input_data, input_data_length, buffer_name) ⇒ FFI::Pointer(MemoryBufferRef)
(Not documented).
-
.create_memory_buffer_with_stdin(out_mem_buf, out_message) ⇒ Integer
(Not documented).
-
.create_message(message) ⇒ String
– Error handling —————————————————-===.
-
.create_module_provider_for_existing_module(m) ⇒ FFI::Pointer(ModuleProviderRef)
Changes the type of M so it can be passed to FunctionPassManagers and the JIT.
-
.create_pass_manager ⇒ FFI::Pointer(PassManagerRef)
Constructs a new whole-module pass pipeline.
-
.create_simple_mcjit_memory_manager(opaque, allocate_code_section, allocate_data_section, finalize_memory, destroy) ⇒ OpaqueMCJITMemoryManager
Create a simple custom MCJIT memory manager.
-
.create_target_data(string_rep) ⇒ OpaqueTargetData
(Not documented).
-
.create_target_data_layout(t) ⇒ OpaqueTargetData
Create a DataLayout based on the targetMachine.
-
.create_target_machine(t, triple, cpu, features, level, reloc, code_model) ⇒ OpaqueTargetMachine
Creates a new llvm::TargetMachine.
-
.delete_basic_block(bb) ⇒ nil
Remove a basic block from a function and delete it.
-
.delete_function(fn) ⇒ nil
Remove a function from its containing module and deletes it.
-
.delete_global(global_var) ⇒ nil
(Not documented).
-
.dispose_builder(builder) ⇒ nil
(Not documented).
-
.dispose_execution_engine(ee) ⇒ nil
(Not documented).
-
.dispose_generic_value(gen_val) ⇒ nil
(Not documented).
-
.dispose_mcjit_memory_manager(mm) ⇒ nil
(Not documented).
-
.dispose_memory_buffer(mem_buf) ⇒ nil
(Not documented).
-
.dispose_message(message) ⇒ nil
(Not documented).
-
.dispose_module(m) ⇒ nil
Destroy a module instance.
-
.dispose_module_provider(m) ⇒ nil
Destroys the module M.
-
.dispose_pass_manager(pm) ⇒ nil
Frees the memory of a pass pipeline.
-
.dispose_target_data(td) ⇒ nil
(Not documented).
-
.dispose_target_machine(t) ⇒ nil
Dispose the LLVMTargetMachineRef instance generated by LLVMCreateTargetMachine.
-
.double_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.double_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 64-bit floating point type from a context.
-
.dump_module(m) ⇒ nil
Dump a representation of a module to stderr.
-
.dump_type(val) ⇒ nil
Dump a representation of a type to stderr.
-
.dump_value(val) ⇒ nil
Dump a representation of a value to stderr.
-
.element_at_offset(td, struct_ty, offset) ⇒ Integer
(Not documented).
-
.finalize_function_pass_manager(fpm) ⇒ Integer
Finalizes all of the function passes scheduled in in the function pass manager.
-
.find_function(ee, name, out_fn) ⇒ Integer
(Not documented).
-
.float_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.float_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 32-bit floating point type from a context.
-
.fp128_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.fp128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 128-bit floating point type (112-bit mantissa) from a context.
-
.free_machine_code_for_function(ee, f) ⇒ nil
(Not documented).
-
.function_type(return_type, param_types, param_count, is_var_arg) ⇒ FFI::Pointer(TypeRef)
Obtain a function type consisting of a specified signature.
-
.generic_value_int_width(gen_val_ref) ⇒ Integer
(Not documented).
-
.generic_value_to_float(ty_ref, gen_val) ⇒ Float
(Not documented).
-
.generic_value_to_int(gen_val, is_signed) ⇒ Integer
(Not documented).
-
.generic_value_to_pointer(gen_val) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.get_alignment(v) ⇒ Integer
Obtain the preferred alignment of the value.
-
.get_array_length(array_ty) ⇒ Integer
Obtain the length of an array type.
-
.get_as_string(c, out) ⇒ String
Get the given constant data sequential as a string.
-
.get_basic_block_parent(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the function to which a basic block belongs.
-
.get_basic_block_terminator(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the terminator instruction for a basic block.
-
.get_basic_blocks(fn, basic_blocks) ⇒ nil
Obtain all of the basic blocks in a function.
-
.get_bitcode_module(mem_buf, out_m, out_message) ⇒ Integer
(Not documented).
-
.get_bitcode_module2(mem_buf, out_m) ⇒ Integer
(Not documented).
-
.get_bitcode_module_in_context(context_ref, mem_buf, out_m, out_message) ⇒ Integer
(Not documented).
-
.get_bitcode_module_in_context2(context_ref, mem_buf, out_m) ⇒ Integer
(Not documented).
-
.get_buffer_size(mem_buf) ⇒ Integer
(Not documented).
-
.get_buffer_start(mem_buf) ⇒ String
(Not documented).
-
.get_condition(branch) ⇒ FFI::Pointer(ValueRef)
Return the condition of a branch instruction.
-
.get_const_opcode(constant_val) ⇒ Symbol from _enum_opcode_
Functions in this group correspond to APIs on llvm::ConstantExpr.
-
.get_current_debug_location(builder) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_data_layout(m) ⇒ String
Obtain the data layout for a module.
-
.get_default_target_triple ⇒ String
Get a triple for the host machine as a string.
-
.get_diag_info_description(di) ⇒ String
Return a string representation of the DiagnosticInfo.
-
.get_diag_info_severity(di) ⇒ Symbol from _enum_diagnostic_severity_
Return an enum LLVMDiagnosticSeverity.
-
.get_dll_storage_class(global) ⇒ Symbol from _enum_dll_storage_class_
(Not documented).
-
.get_element_as_constant(c, idx) ⇒ FFI::Pointer(ValueRef)
Get an element at specified index as a constant.
-
.get_element_type(ty) ⇒ FFI::Pointer(TypeRef)
Obtain the type of elements within a sequential type.
-
.get_entry_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the basic block that corresponds to the entry point of a function.
-
.get_execution_engine_target_data(ee) ⇒ FFI::Pointer(TargetDataRef)
(Not documented).
-
.get_execution_engine_target_machine(ee) ⇒ FFI::Pointer(TargetMachineRef)
(Not documented).
-
.get_f_cmp_predicate(inst) ⇒ Symbol from _enum_real_predicate_
Obtain the float predicate of an instruction.
-
.get_first_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the first basic block in a function.
-
.get_first_function(m) ⇒ FFI::Pointer(ValueRef)
Obtain an iterator to the first Function in a Module.
-
.get_first_global(m) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_first_instruction(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the first instruction in a basic block.
-
.get_first_param(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the first parameter to a function.
-
.get_first_target ⇒ Target
Returns the first llvm::Target in the registered targets list.
-
.get_first_use(val) ⇒ FFI::Pointer(UseRef)
Obtain the first use of a value.
-
.get_function_address(ee, name) ⇒ Integer
(Not documented).
-
.get_function_call_conv(fn) ⇒ Integer
Obtain the calling function of a function.
-
.get_gc(fn) ⇒ String
Obtain the name of the garbage collector to use during code generation.
-
.get_global_context ⇒ FFI::Pointer(ContextRef)
Obtain the global context instance.
-
.get_global_parent(global) ⇒ FFI::Pointer(ModuleRef)
This group contains functions that operate on global values.
-
.get_global_pass_registry ⇒ FFI::Pointer(PassRegistryRef)
Return the global pass registry, for use with initialization functions.
-
.get_global_value_address(ee, name) ⇒ Integer
(Not documented).
-
.get_i_cmp_predicate(inst) ⇒ Symbol from _enum_int_predicate_
Obtain the predicate of an instruction.
-
.get_incoming_block(phi_node, index) ⇒ FFI::Pointer(BasicBlockRef)
Obtain an incoming value to a PHI node as an LLVMBasicBlockRef.
-
.get_incoming_value(phi_node, index) ⇒ FFI::Pointer(ValueRef)
Obtain an incoming value to a PHI node as an LLVMValueRef.
-
.get_initializer(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_insert_block(builder) ⇒ FFI::Pointer(BasicBlockRef)
(Not documented).
-
.get_instruction_call_conv(instr) ⇒ Integer
Obtain the calling convention for a call instruction.
-
.get_instruction_opcode(inst) ⇒ Symbol from _enum_opcode_
Obtain the code opcode for an individual instruction.
-
.get_instruction_parent(inst) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the basic block to which an instruction belongs.
-
.get_int_type_width(integer_ty) ⇒ Integer
(Not documented).
-
.get_intrinsic_id(fn) ⇒ Integer
Obtain the ID number from a function instance.
-
.get_last_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the last basic block in a function.
-
.get_last_function(m) ⇒ FFI::Pointer(ValueRef)
Obtain an iterator to the last Function in a Module.
-
.get_last_global(m) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_last_instruction(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the last instruction in a basic block.
-
.get_last_param(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the last parameter to a function.
-
.get_linkage(global) ⇒ Symbol from _enum_linkage_
(Not documented).
-
.get_md_kind_id(name, s_len) ⇒ Integer
(Not documented).
-
.get_md_kind_id_in_context(c, name, s_len) ⇒ Integer
(Not documented).
-
.get_md_node_num_operands(v) ⇒ Object
Obtain the number of operands from an MDNode value.
-
.get_md_node_operands(v, dest) ⇒ nil
Obtain the given MDNode’s operands.
-
.get_md_string(v, len) ⇒ Object
Obtain the underlying string from a MDString value.
-
.get_metadata(val, kind_id) ⇒ FFI::Pointer(ValueRef)
Return metadata associated with an instruction value.
-
.get_module_context(m) ⇒ FFI::Pointer(ContextRef)
Obtain the context to which this module is associated.
-
.get_module_data_layout(m) ⇒ OpaqueTargetData
(Not documented).
-
.get_named_function(m, name) ⇒ FFI::Pointer(ValueRef)
Obtain a Function value from a Module by its name.
-
.get_named_global(m, name) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_named_metadata_num_operands(m, name) ⇒ Integer
Obtain the number of operands for named metadata in a module.
-
.get_named_metadata_operands(m, name, dest) ⇒ nil
Obtain the named metadata operands for a module.
-
.get_next_basic_block(bb) ⇒ FFI::Pointer(BasicBlockRef)
Advance a basic block iterator.
-
.get_next_function(fn) ⇒ FFI::Pointer(ValueRef)
Advance a Function iterator to the next Function.
-
.get_next_global(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_next_instruction(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the instruction that occurs after the one specified.
-
.get_next_param(arg) ⇒ FFI::Pointer(ValueRef)
Obtain the next parameter to a function.
-
.get_next_target(t) ⇒ Target
Returns the next llvm::Target given a previous one (or null if there’s none).
-
.get_next_use(u) ⇒ FFI::Pointer(UseRef)
Obtain the next use of a value.
-
.get_num_operands(val) ⇒ Integer
Obtain the number of operands in a llvm::User value.
-
.get_num_successors(term) ⇒ Integer
Return the number of successors that this terminator has.
-
.get_operand(val, index) ⇒ FFI::Pointer(ValueRef)
Obtain an operand at a specific index in a llvm::User value.
-
.get_operand_use(val, index) ⇒ FFI::Pointer(UseRef)
Obtain the use of an operand at a specific index in a llvm::User value.
-
.get_ordering(memory_access_inst) ⇒ Symbol from _enum_atomic_ordering_
(Not documented).
-
.get_param(fn, index) ⇒ FFI::Pointer(ValueRef)
Obtain the parameter at the specified index.
-
.get_param_parent(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the function to which this argument belongs.
-
.get_param_types(function_ty, dest) ⇒ nil
Obtain the types of a function’s parameters.
-
.get_params(fn, params) ⇒ nil
Obtain the parameters in a function.
-
.get_personality_fn(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the personality function attached to the function.
-
.get_pointer_address_space(pointer_ty) ⇒ Integer
Obtain the address space of a pointer type.
-
.get_pointer_to_global(ee, global) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.get_previous_basic_block(bb) ⇒ FFI::Pointer(BasicBlockRef)
Go backwards in a basic block iterator.
-
.get_previous_function(fn) ⇒ FFI::Pointer(ValueRef)
Decrement a Function iterator to the previous Function.
-
.get_previous_global(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.get_previous_instruction(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the instruction that occurred before this one.
-
.get_previous_param(arg) ⇒ FFI::Pointer(ValueRef)
Obtain the previous parameter to a function.
-
.get_return_type(function_ty) ⇒ FFI::Pointer(TypeRef)
Obtain the Type this function Type returns.
-
.get_section(global) ⇒ String
(Not documented).
-
.get_struct_element_types(struct_ty, dest) ⇒ nil
Get the elements within a structure.
-
.get_struct_name(ty) ⇒ String
Obtain the name of a structure.
-
.get_successor(term, i) ⇒ FFI::Pointer(BasicBlockRef)
Return the specified successor.
-
.get_switch_default_dest(switch_instr) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the default destination basic block of a switch instruction.
-
.get_target(m) ⇒ String
Obtain the target triple for a module.
-
.get_target_description(t) ⇒ String
Returns the description of a target.
-
.get_target_from_name(name) ⇒ Target
Finds the target corresponding to the given name and stores it in p T.
-
.get_target_from_triple(triple, t, error_message) ⇒ Integer
Finds the target corresponding to the given triple and stores it in p T.
-
.get_target_machine_cpu(t) ⇒ String
Returns the cpu used creating this target machine.
-
.get_target_machine_feature_string(t) ⇒ String
Returns the feature string used creating this target machine.
-
.get_target_machine_target(t) ⇒ Target
Returns the Target used in a TargetMachine.
-
.get_target_machine_triple(t) ⇒ String
Returns the triple used creating this target machine.
-
.get_target_name(t) ⇒ String
Returns the name of a target.
-
.get_thread_local_mode(global_var) ⇒ Symbol from _enum_thread_local_mode_
(Not documented).
-
.get_type_by_name(m, name) ⇒ FFI::Pointer(TypeRef)
Obtain a Type from a module by its registered name.
-
.get_type_context(ty) ⇒ FFI::Pointer(ContextRef)
Obtain the context to which this type instance is associated.
-
.get_type_kind(ty) ⇒ Symbol from _enum_type_kind_
Obtain the enumerated type of a Type instance.
-
.get_undef(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to an undefined value of a type.
-
.get_used_value(u) ⇒ FFI::Pointer(ValueRef)
Obtain the value this use corresponds to.
-
.get_user(u) ⇒ FFI::Pointer(ValueRef)
Obtain the user value for a user.
-
.get_value_name(val) ⇒ String
Obtain the string name of a value.
-
.get_vector_size(vector_ty) ⇒ Integer
Obtain the number of elements in a vector type.
-
.get_visibility(global) ⇒ Symbol from _enum_visibility_
(Not documented).
-
.get_volatile(memory_access_inst) ⇒ Integer
(Not documented).
-
.half_type ⇒ FFI::Pointer(TypeRef)
Obtain a floating point type from the global context.
-
.half_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 16-bit floating point type from a context.
-
.has_metadata(val) ⇒ Integer
Determine whether an instruction has any metadata attached.
-
.has_unnamed_addr(global) ⇒ Integer
(Not documented).
-
.initialize_all_asm_parsers ⇒ nil
(Not documented).
-
.initialize_all_asm_printers ⇒ nil
(Not documented).
-
.initialize_all_disassemblers ⇒ nil
(Not documented).
-
.initialize_all_target_infos ⇒ nil
(Not documented).
-
.initialize_all_target_m_cs ⇒ nil
(Not documented).
-
.initialize_all_targets ⇒ nil
(Not documented).
-
.initialize_core(r) ⇒ nil
@}.
-
.initialize_function_pass_manager(fpm) ⇒ Integer
Initializes all of the function passes scheduled in the function pass manager.
-
.initialize_mcjit_compiler_options(options, size_of_options) ⇒ nil
(Not documented).
-
.initialize_native_asm_parser ⇒ Integer
(Not documented).
-
.initialize_native_asm_printer ⇒ Integer
(Not documented).
-
.initialize_native_disassembler ⇒ Integer
(Not documented).
-
.initialize_native_target ⇒ Integer
(Not documented).
-
.insert_basic_block(insert_before_bb, name) ⇒ FFI::Pointer(BasicBlockRef)
Insert a basic block in a function using the global context.
-
.insert_basic_block_in_context(c, bb, name) ⇒ FFI::Pointer(BasicBlockRef)
Insert a basic block in a function before another basic block.
-
.insert_into_builder(builder, instr) ⇒ nil
(Not documented).
-
.insert_into_builder_with_name(builder, instr, name) ⇒ nil
(Not documented).
-
.instruction_clone(inst) ⇒ FFI::Pointer(ValueRef)
Create a copy of ‘this’ instruction that is identical in all ways except the following: * The instruction has no parent * The instruction has no name.
-
.instruction_erase_from_parent(inst) ⇒ nil
Remove and delete an instruction.
-
.int128_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int16_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int16_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int1_type ⇒ FFI::Pointer(TypeRef)
Obtain an integer type from the global context with a specified bit width.
-
.int1_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain an integer type from a context with specified bit width.
-
.int32_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int32_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int64_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int64_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int8_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int8_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_ptr_type(td) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_ptr_type_for_as(td, as) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_ptr_type_for_as_in_context(c, td, as) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_ptr_type_in_context(c, td) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_type(num_bits) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.int_type_in_context(c, num_bits) ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.is_a_addr_space_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_alloca_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_argument(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_basic_block(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_binary_operator(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_bit_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_block_address(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_branch_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_call_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_catch_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_catch_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_cleanup_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_cleanup_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_aggregate_zero(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_array(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_data_array(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_data_sequential(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_data_vector(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_expr(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_fp(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_int(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_pointer_null(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_struct(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_token_none(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_constant_vector(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_dbg_declare_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_dbg_info_intrinsic(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_extract_element_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_extract_value_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_funclet_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_function(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_get_element_ptr_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_global_alias(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_global_object(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_global_value(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_global_variable(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_indirect_br_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_inline_asm(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_insert_element_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_insert_value_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_instruction(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_int_to_ptr_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_intrinsic_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_invoke_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_landing_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_load_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_mem_cpy_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_mem_intrinsic(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_mem_move_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_mem_set_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_ptr_to_int_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_resume_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_select_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_shuffle_vector_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_store_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_switch_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_terminator_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_trunc_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_unary_instruction(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_undef_value(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_unreachable_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_a_user(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_af_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_afp_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_afp_to_si_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_afp_to_ui_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_afp_trunc_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_ai_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_amd_node(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_amd_string(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_aphi_node(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_as_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_asi_to_fp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_aui_to_fp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_ava_arg_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_az_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.is_conditional(branch) ⇒ Integer
Return if a branch is conditional.
-
.is_constant(val) ⇒ Integer
Determine whether the specified constant instance is constant.
-
.is_constant_string(c) ⇒ Integer
Returns true if the specified constant is an array of i8.
-
.is_declaration(global) ⇒ Integer
(Not documented).
-
.is_externally_initialized(global_var) ⇒ Integer
(Not documented).
-
.is_function_var_arg(function_ty) ⇒ Integer
Returns whether a function type is variadic.
-
.is_global_constant(global_var) ⇒ Integer
(Not documented).
-
.is_multithreaded ⇒ Integer
Check whether LLVM is executing in thread-safe mode or not.
-
.is_null(val) ⇒ Integer
Determine whether a value instance is null.
-
.is_opaque_struct(struct_ty) ⇒ Integer
Determine whether a structure is opaque.
-
.is_packed_struct(struct_ty) ⇒ Integer
Determine whether a structure is packed.
-
.is_tail_call(call_inst) ⇒ Integer
Obtain whether a call instruction is a tail call.
-
.is_thread_local(global_var) ⇒ Integer
(Not documented).
-
.is_undef(val) ⇒ Integer
Determine whether a value instance is undefined.
-
.label_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.label_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a label type in a context.
-
.link_in_interpreter ⇒ nil
(Not documented).
-
.link_in_mcjit ⇒ nil
@{.
-
.link_modules2(dest, src) ⇒ Integer
Links the source module into the destination module.
-
.load_library_permanently(filename) ⇒ Integer
(Not documented).
-
.md_node(vals, count) ⇒ FFI::Pointer(ValueRef)
Obtain a MDNode value from the global context.
-
.md_node_in_context(c, vals, count) ⇒ FFI::Pointer(ValueRef)
Obtain a MDNode value from a context.
-
.md_string(str, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a MDString value from the global context.
-
.md_string_in_context(c, str, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a MDString value from a context.
-
.module_create_with_name(module_id) ⇒ FFI::Pointer(ModuleRef)
Create a new, empty module in the global context.
-
.module_create_with_name_in_context(module_id, c) ⇒ FFI::Pointer(ModuleRef)
Create a new, empty module in a specific context.
-
.move_basic_block_after(bb, move_pos) ⇒ nil
Move a basic block to after another one.
-
.move_basic_block_before(bb, move_pos) ⇒ nil
Move a basic block to before another one.
-
.offset_of_element(td, struct_ty, element) ⇒ Integer
(Not documented).
-
.parse_bitcode(mem_buf, out_module, out_message) ⇒ Integer
(Not documented).
-
.parse_bitcode2(mem_buf, out_module) ⇒ Integer
(Not documented).
-
.parse_bitcode_in_context(context_ref, mem_buf, out_module, out_message) ⇒ Integer
(Not documented).
-
.parse_bitcode_in_context2(context_ref, mem_buf, out_module) ⇒ Integer
(Not documented).
-
.parse_command_line_options(argc, argv, overview) ⇒ nil
This function parses the given arguments using the LLVM command line parser.
-
.pass_manager_builder_create ⇒ OpaquePassManagerBuilder
See llvm::PassManagerBuilder.
-
.pass_manager_builder_dispose(pmb) ⇒ nil
(Not documented).
-
.pass_manager_builder_populate_function_pass_manager(pmb, pm) ⇒ nil
See llvm::PassManagerBuilder::populateFunctionPassManager.
-
.pass_manager_builder_populate_module_pass_manager(pmb, pm) ⇒ nil
See llvm::PassManagerBuilder::populateModulePassManager.
-
.pass_manager_builder_set_disable_simplify_lib_calls(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableSimplifyLibCalls.
-
.pass_manager_builder_set_disable_unit_at_a_time(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableUnitAtATime.
-
.pass_manager_builder_set_disable_unroll_loops(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableUnrollLoops.
-
.pass_manager_builder_set_opt_level(pmb, opt_level) ⇒ nil
See llvm::PassManagerBuilder::OptLevel.
-
.pass_manager_builder_set_size_level(pmb, size_level) ⇒ nil
See llvm::PassManagerBuilder::SizeLevel.
-
.pass_manager_builder_use_inliner_with_threshold(pmb, threshold) ⇒ nil
See llvm::PassManagerBuilder::Inliner.
-
.pointer_size(td) ⇒ Integer
(Not documented).
-
.pointer_size_for_as(td, as) ⇒ Integer
(Not documented).
-
.pointer_type(element_type, address_space) ⇒ FFI::Pointer(TypeRef)
Create a pointer type that points to a defined type.
-
.position_builder(builder, block, instr) ⇒ nil
(Not documented).
-
.position_builder_at_end(builder, block) ⇒ nil
(Not documented).
-
.position_builder_before(builder, instr) ⇒ nil
(Not documented).
-
.ppcfp128_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.ppcfp128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 128-bit floating point type (two 64-bits) from a context.
-
.preferred_alignment_of_global(td, global_var) ⇒ Integer
(Not documented).
-
.preferred_alignment_of_type(td, ty) ⇒ Integer
(Not documented).
-
.print_module_to_file(m, filename, error_message) ⇒ Integer
Print a representation of a module to a file.
-
.print_module_to_string(m) ⇒ String
Return a string representation of the module.
-
.print_type_to_string(val) ⇒ String
Return a string representation of the type.
-
.print_value_to_string(val) ⇒ String
Return a string representation of the value.
-
.recompile_and_relink_function(ee, fn) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.remove_basic_block_from_parent(bb) ⇒ nil
Remove a basic block from a function.
-
.remove_module(ee, m, out_mod, out_error) ⇒ Integer
(Not documented).
-
.replace_all_uses_with(old_val, new_val) ⇒ nil
Replace all uses of a value with another one.
-
.run_function(ee, f, num_args, args) ⇒ OpaqueGenericValue
(Not documented).
-
.run_function_as_main(ee, f, arg_c, arg_v, env_p) ⇒ Integer
(Not documented).
-
.run_function_pass_manager(fpm, f) ⇒ Integer
Executes all of the function passes scheduled in the function pass manager on the provided function.
-
.run_pass_manager(pm, m) ⇒ Integer
Initializes, executes on the provided module, and finalizes all of the passes scheduled in the pass manager.
-
.run_static_constructors(ee) ⇒ nil
(Not documented).
-
.run_static_destructors(ee) ⇒ nil
(Not documented).
-
.search_for_address_of_symbol(symbol_name) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.set_alignment(v, bytes) ⇒ nil
Set the preferred alignment of the value.
-
.set_cleanup(landing_pad, val) ⇒ nil
Set the ‘cleanup’ flag in the landingpad instruction.
-
.set_condition(branch, cond) ⇒ nil
Set the condition of a branch instruction.
-
.set_current_debug_location(builder, l) ⇒ nil
Metadata.
-
.set_data_layout(m, triple) ⇒ nil
Set the data layout for a module.
-
.set_dll_storage_class(global, class_) ⇒ nil
(Not documented).
-
.set_externally_initialized(global_var, is_ext_init) ⇒ nil
(Not documented).
-
.set_function_call_conv(fn, cc) ⇒ nil
Set the calling convention of a function.
-
.set_gc(fn, name) ⇒ nil
Define the garbage collector to use during code generation.
-
.set_global_constant(global_var, is_constant) ⇒ nil
(Not documented).
-
.set_initializer(global_var, constant_val) ⇒ nil
(Not documented).
-
.set_inst_debug_location(builder, inst) ⇒ nil
(Not documented).
-
.set_instr_param_alignment(instr, index, align) ⇒ nil
(Not documented).
-
.set_instruction_call_conv(instr, cc) ⇒ nil
Set the calling convention for a call instruction.
-
.set_linkage(global, linkage) ⇒ nil
(Not documented).
-
.set_metadata(val, kind_id, node) ⇒ nil
Set metadata associated with an instruction value.
-
.set_module_data_layout(m, dl) ⇒ nil
(Not documented).
-
.set_module_inline_asm(m, asm) ⇒ nil
Set inline assembly for a module.
-
.set_operand(user, index, val) ⇒ nil
Set an operand at a specific index in a llvm::User value.
-
.set_ordering(memory_access_inst, ordering) ⇒ nil
(Not documented).
-
.set_param_alignment(arg, align) ⇒ nil
Set the alignment for a function parameter.
-
.set_personality_fn(fn, personality_fn) ⇒ nil
Set the personality function attached to the function.
-
.set_section(global, section) ⇒ nil
(Not documented).
-
.set_successor(term, i, block) ⇒ nil
Update the specified successor to point at the provided block.
-
.set_tail_call(call_inst, is_tail_call) ⇒ nil
Set whether a call instruction is a tail call.
-
.set_target(m, triple) ⇒ nil
Set the target triple for a module.
-
.set_target_machine_asm_verbosity(t, verbose_asm) ⇒ nil
Set the target machine’s ASM verbosity.
-
.set_thread_local(global_var, is_thread_local) ⇒ nil
(Not documented).
-
.set_thread_local_mode(global_var, mode) ⇒ nil
(Not documented).
-
.set_unnamed_addr(global, has_unnamed_addr) ⇒ nil
(Not documented).
-
.set_value_name(val, name) ⇒ nil
Set the string name of a value.
-
.set_visibility(global, viz) ⇒ nil
(Not documented).
-
.set_volatile(memory_access_inst, is_volatile) ⇒ nil
(Not documented).
-
.shutdown ⇒ nil
Deallocate and destroy all ManagedStatic variables.
-
.size_of(ty) ⇒ FFI::Pointer(ValueRef)
(Not documented).
-
.size_of_type_in_bits(td, ty) ⇒ Integer
(Not documented).
-
.start_multithreaded ⇒ Integer
Deprecated: Multi-threading can only be enabled/disabled with the compile time define LLVM_ENABLE_THREADS.
-
.stop_multithreaded ⇒ nil
Deprecated: Multi-threading can only be enabled/disabled with the compile time define LLVM_ENABLE_THREADS.
-
.store_size_of_type(td, ty) ⇒ Integer
(Not documented).
-
.struct_create_named(c, name) ⇒ FFI::Pointer(TypeRef)
Create an empty structure in a context having a specified name.
-
.struct_get_type_at_index(struct_ty, i) ⇒ FFI::Pointer(TypeRef)
Get the type of the element at a given index in the structure.
-
.struct_set_body(struct_ty, element_types, element_count, packed) ⇒ nil
Set the contents of a structure type.
-
.struct_type(element_types, element_count, packed) ⇒ FFI::Pointer(TypeRef)
Create a new structure type in the global context.
-
.struct_type_in_context(c, element_types, element_count, packed) ⇒ FFI::Pointer(TypeRef)
Create a new structure type in a context.
-
.target_has_asm_backend(t) ⇒ Integer
Returns if the target as an ASM backend (required for emitting output).
-
.target_has_jit(t) ⇒ Integer
Returns if the target has a JIT.
-
.target_has_target_machine(t) ⇒ Integer
Returns if the target has a TargetMachine associated.
-
.target_machine_emit_to_file(t, m, filename, codegen, error_message) ⇒ Integer
Emits an asm or object file for the given module to the filename.
-
.target_machine_emit_to_memory_buffer(t, m, codegen, error_message, out_mem_buf) ⇒ Integer
Compile the LLVM IR stored in p M and store the result in p OutMemBuf.
-
.type_is_sized(ty) ⇒ Integer
Whether the type has a known size.
-
.type_of(val) ⇒ FFI::Pointer(TypeRef)
Obtain the type of a value.
-
.value_as_basic_block(val) ⇒ FFI::Pointer(BasicBlockRef)
Convert an LLVMValueRef to an LLVMBasicBlockRef instance.
-
.value_is_basic_block(val) ⇒ Integer
Determine whether an LLVMValueRef is itself a basic block.
-
.vector_type(element_type, element_count) ⇒ FFI::Pointer(TypeRef)
Create a vector type that contains a defined type and has a specific number of elements.
-
.verify_function(fn, action) ⇒ Integer
Verifies that a single function is valid, taking the specified action.
-
.verify_module(m, action, out_message) ⇒ Integer
Verifies that a module is valid, taking the specified action if not.
-
.view_function_cfg(fn) ⇒ nil
Open up a ghostview window that displays the CFG of the current function.
-
.view_function_cfg_only(fn) ⇒ nil
(Not documented).
-
.void_type ⇒ FFI::Pointer(TypeRef)
These are similar to the above functions except they operate on the global context.
-
.void_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a void type in a context.
-
.write_bitcode_to_fd(m, fd, should_close, unbuffered) ⇒ Integer
Writes a module to an open file descriptor.
-
.write_bitcode_to_file(m, path) ⇒ Integer
Writes a module to the specified path.
-
.write_bitcode_to_file_handle(m, handle) ⇒ Integer
Deprecated for LLVMWriteBitcodeToFD.
-
.write_bitcode_to_memory_buffer(m) ⇒ FFI::Pointer(MemoryBufferRef)
Writes a module to a new memory buffer and returns it.
-
.x86amx_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.x86fp80_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.x86fp80_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 80-bit floating point type (X87) from a context.
-
.x86mmx_type ⇒ FFI::Pointer(TypeRef)
(Not documented).
-
.x86mmx_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a X86 MMX type in a context.
Instance Method Summary collapse
Class Method Details
._callback_diagnostic_handler_(diagnostic_info_ref, void) ⇒ FFI::Pointer(DiagnosticInfoRef)
Contexts are execution states for the core LLVM IR system.
Most types are tied to a context instance. Multiple contexts can exist simultaneously. A single context is not thread safe. However, different contexts can execute on different threads simultaneously.
@{
This entry is only for documentation and no real method.
875 |
# File 'lib/llvm/core_ffi.rb', line 875 callback :diagnostic_handler, [:pointer, :pointer], :pointer |
._callback_memory_manager_allocate_code_section_callback_(uint8_t, opaque, size, alignment, section_id, section_name) ⇒ Integer
– Operations on memory managers ————————————-===
This entry is only for documentation and no real method.
364 |
# File 'lib/llvm/execution_engine_ffi.rb', line 364 callback :memory_manager_allocate_code_section_callback, [:uchar, :pointer, :ulong, :uint, :uint, :string], :uchar |
._callback_memory_manager_allocate_data_section_callback_(uint8_t, opaque, size, alignment, section_id, section_name, is_read_only) ⇒ Integer
(Not documented)
This entry is only for documentation and no real method.
380 |
# File 'lib/llvm/execution_engine_ffi.rb', line 380 callback :memory_manager_allocate_data_section_callback, [:uchar, :pointer, :ulong, :uint, :uint, :string, :int], :uchar |
._callback_memory_manager_finalize_memory_callback_(bool, opaque, err_msg) ⇒ Integer
(Not documented)
This entry is only for documentation and no real method.
392 |
# File 'lib/llvm/execution_engine_ffi.rb', line 392 callback :memory_manager_finalize_memory_callback, [:int, :pointer, :pointer], :int |
._callback_yield_callback_(context_ref, void) ⇒ FFI::Pointer(ContextRef)
(Not documented)
This entry is only for documentation and no real method.
886 |
# File 'lib/llvm/core_ffi.rb', line 886 callback :yield_callback, [:pointer, :pointer], :pointer |
._enum_atomic_ordering_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:atomic_ordering).
Options:
- :not_atomic
- :unordered
-
< A load or store which is not atomic
- :monotonic
-
< Lowest level of atomicity, guarantees
somewhat sane results, lock free.
- :acquire
-
< guarantees that if you take all the
operations affecting a specific address, a consistent ordering exists
- :release
-
< Acquire provides a barrier of the sort
necessary to acquire a lock to access other memory with normal loads and stores.
- :acquire_release
-
< Release is similar to Acquire, but with
a barrier of the sort necessary to release a lock.
- :sequentially_consistent
-
< provides both an Acquire and a
Release barrier (for fences and operations which both read and write memory).
740 741 742 743 744 745 746 747 748 |
# File 'lib/llvm/core_ffi.rb', line 740 enum :atomic_ordering, [ :not_atomic, 0, :unordered, 1, :monotonic, 2, :acquire, 4, :release, 5, :acquire_release, 6, :sequentially_consistent, 7 ] |
._enum_atomic_rmw_bin_op_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:atomic_rmw_bin_op).
Options:
- :xchg
- :add
-
< Set the new value and return the one old
- :sub
-
< Add a value and return the old one
- :and_
-
< Subtract a value and return the old one
- :nand
-
< And a value and return the old one
- :or_
-
< Not-And a value and return the old one
- :xor
-
< OR a value and return the old one
- :max
-
< Xor a value and return the old one
- :min
-
< Sets the value if it’s greater than the
original using a signed comparison and return the old one
- :u_max
-
< Sets the value if it’s Smaller than the
original using a signed comparison and return the old one
- :u_min
-
< Sets the value if it’s greater than the
original using an unsigned comparison and return the old one
787 788 789 790 791 792 793 794 795 796 797 798 799 |
# File 'lib/llvm/core_ffi.rb', line 787 enum :atomic_rmw_bin_op, [ :xchg, 0, :add, 1, :sub, 2, :and_, 3, :nand, 4, :or_, 5, :xor, 6, :max, 7, :min, 8, :u_max, 9, :u_min, 10 ] |
._enum_attribute_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:attribute).
Options:
- :z_ext_attribute
- :s_ext_attribute
- :no_return_attribute
- :in_reg_attribute
- :struct_ret_attribute
- :no_unwind_attribute
- :no_alias_attribute
- :by_val_attribute
- :nest_attribute
- :read_none_attribute
- :read_only_attribute
- :no_inline_attribute
- :always_inline_attribute
- :optimize_for_size_attribute
- :stack_protect_attribute
- :stack_protect_req_attribute
- :alignment
- :no_capture_attribute
- :no_red_zone_attribute
- :no_implicit_float_attribute
- :naked_attribute
- :inline_hint_attribute
- :stack_alignment
- :returns_twice
- :uw_table
- :non_lazy_bind
- :s_ext_attribute
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/llvm/core_ffi.rb', line 120 enum :attribute, [ :z_ext_attribute, 1, :s_ext_attribute, 2, :no_return_attribute, 4, :in_reg_attribute, 8, :struct_ret_attribute, 16, :no_unwind_attribute, 32, :no_alias_attribute, 64, :by_val_attribute, 128, :nest_attribute, 256, :read_none_attribute, 512, :read_only_attribute, 1024, :no_inline_attribute, 2048, :always_inline_attribute, 4096, :optimize_for_size_attribute, 8192, :stack_protect_attribute, 16384, :stack_protect_req_attribute, 32768, :alignment, 2031616, :no_capture_attribute, 2097152, :no_red_zone_attribute, 4194304, :no_implicit_float_attribute, 8388608, :naked_attribute, 16777216, :inline_hint_attribute, 33554432, :stack_alignment, 469762048, :returns_twice, 536870912, :uw_table, 1073741824, :non_lazy_bind, 2147483648 ] |
._enum_byte_ordering_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:byte_ordering).
Options:
- :big_endian
- :little_endian
28 29 30 31 |
# File 'lib/llvm/target_ffi.rb', line 28 enum :byte_ordering, [ :big_endian, 0, :little_endian, 1 ] |
._enum_call_conv_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:call_conv).
Options:
- :c
- :fast
- :cold
- :web_kit_js
- :any_reg
- :x86_stdcall
- :x86_fastcall
- :fast
550 551 552 553 554 555 556 557 558 |
# File 'lib/llvm/core_ffi.rb', line 550 enum :call_conv, [ :c, 0, :fast, 8, :cold, 9, :web_kit_js, 12, :any_reg, 13, :x86_stdcall, 64, :x86_fastcall, 65 ] |
._enum_code_gen_file_type_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:code_gen_file_type).
Options:
- :assembly
- :object
426 427 428 429 |
# File 'lib/llvm/target_ffi.rb', line 426 enum :code_gen_file_type, [ :assembly, 0, :object, 1 ] |
._enum_code_gen_opt_level_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:code_gen_opt_level).
Options:
- :none
- :less
- :default
- :aggressive
- :less
352 353 354 355 356 357 |
# File 'lib/llvm/target_ffi.rb', line 352 enum :code_gen_opt_level, [ :none, 0, :less, 1, :default, 2, :aggressive, 3 ] |
._enum_code_model_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:code_model).
Options:
- :default
- :jit_default
- :small
- :kernel
- :medium
- :large
- :jit_default
404 405 406 407 408 409 410 411 |
# File 'lib/llvm/target_ffi.rb', line 404 enum :code_model, [ :default, 0, :jit_default, 1, :small, 2, :kernel, 3, :medium, 4, :large, 5 ] |
._enum_diagnostic_severity_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:diagnostic_severity).
Options:
- :ds_error
- :ds_warning
- :ds_remark
- :ds_note
- :ds_warning
818 819 820 821 822 823 |
# File 'lib/llvm/core_ffi.rb', line 818 enum :diagnostic_severity, [ :ds_error, 0, :ds_warning, 1, :ds_remark, 2, :ds_note, 3 ] |
._enum_dll_storage_class_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:dll_storage_class).
Options:
- :default
- :dll_import
- :dll_export
- :dll_import
-
< Function to be imported from DLL.
521 522 523 524 525 |
# File 'lib/llvm/core_ffi.rb', line 521 enum :dll_storage_class, [ :default, 0, :dll_import, 1, :dll_export, 2 ] |
._enum_int_predicate_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:int_predicate).
Options:
- :eq
- :ne
-
< equal
- :ugt
-
< not equal
- :uge
-
< unsigned greater than
- :ult
-
< unsigned greater or equal
- :ule
-
< unsigned less than
- :sgt
-
< unsigned less or equal
- :sge
-
< signed greater than
- :slt
-
< signed greater or equal
- :sle
-
< signed less than
589 590 591 592 593 594 595 596 597 598 599 600 |
# File 'lib/llvm/core_ffi.rb', line 589 enum :int_predicate, [ :eq, 32, :ne, 33, :ugt, 34, :uge, 35, :ult, 36, :ule, 37, :sgt, 38, :sge, 39, :slt, 40, :sle, 41 ] |
._enum_landing_pad_clause_ty_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:landing_pad_clause_ty).
Options:
- :catch
- :filter
-
< A catch clause
675 676 677 678 |
# File 'lib/llvm/core_ffi.rb', line 675 enum :landing_pad_clause_ty, [ :catch, 0, :filter, 1 ] |
._enum_linkage_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:linkage).
Options:
- :external
- :available_externally
-
< Externally visible function
- :link_once_any
- :link_once_odr
-
< Keep one copy of function when linking (inline)
- :link_once_odr_auto_hide
-
< Same, but only replaced by something
equivalent.
- :weak_any
-
< Obsolete
- :weak_odr
-
< Keep one copy of function when linking (weak)
- :appending
-
< Same, but only replaced by something
equivalent.
- :internal
-
< Special purpose, only applies to global arrays
- :private
-
< Rename collisions when linking (static
functions)
- :dll_import
-
< Like Internal, but omit from symbol table
- :dll_export
-
< Obsolete
- :external_weak
-
< Obsolete
- :ghost
-
< ExternalWeak linkage description
- :common
-
< Obsolete
- :linker_private
-
< Tentative definitions
- :linker_private_weak
-
< Like Private, but linker removes.
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/llvm/core_ffi.rb', line 465 enum :linkage, [ :external, 0, :available_externally, 1, :link_once_any, 2, :link_once_odr, 3, :link_once_odr_auto_hide, 4, :weak_any, 5, :weak_odr, 6, :appending, 7, :internal, 8, :private, 9, :dll_import, 10, :dll_export, 11, :external_weak, 12, :ghost, 13, :common, 14, :linker_private, 15, :linker_private_weak, 16 ] |
._enum_linker_mode_ ⇒ Symbol
This enum is provided for backwards-compatibility only. It has no effect.
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:linker_mode).
Options:
- :destroy_source
- :preserve_source_removed
-
This is the default behavior.
28 29 30 31 |
# File 'lib/llvm/linker_ffi.rb', line 28 enum :linker_mode, [ :destroy_source, 0, :preserve_source_removed, 1 ] |
._enum_opcode_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:opcode).
Options:
- :ret
-
Terminator Instructions
- :br
- :switch
- :indirect_br
- :invoke
- :unreachable
- :switch
-
removed 6 due to API changes
- :add
-
Standard Binary Operators
- :f_add
- :sub
- :f_sub
- :mul
- :f_mul
- :u_div
- :s_div
- :f_div
- :u_rem
- :s_rem
- :f_rem
- :shl
- :sub
-
Logical Operators
- :l_shr
- :a_shr
- :and_
- :or_
- :xor
- :alloca
- :a_shr
-
Memory Operators
- :load
- :store
- :get_element_ptr
- :trunc
- :store
-
Cast Operators
- :z_ext
- :s_ext
- :fp_to_ui
- :fp_to_si
- :ui_to_fp
- :si_to_fp
- :fp_trunc
- :fp_ext
- :ptr_to_int
- :int_to_ptr
- :bit_cast
- :addr_space_cast
- :i_cmp
- :s_ext
-
Other Operators
- :f_cmp
- :phi
- :call
- :select
- :user_op1
- :user_op2
- :va_arg
- :extract_element
- :insert_element
- :shuffle_vector
- :extract_value
- :insert_value
- :fence
- :phi
-
Atomic operators
- :atomic_cmp_xchg
- :atomic_rmw
- :resume
- :atomic_rmw
-
Exception Handling Operators
- :landing_pad
- :cleanup_ret
- :catch_ret
- :catch_pad
- :cleanup_pad
- :catch_switch
- :cleanup_ret
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/llvm/core_ffi.rb', line 286 enum :opcode, [ :ret, 1, :br, 2, :switch, 3, :indirect_br, 4, :invoke, 5, :unreachable, 7, :add, 8, :f_add, 9, :sub, 10, :f_sub, 11, :mul, 12, :f_mul, 13, :u_div, 14, :s_div, 15, :f_div, 16, :u_rem, 17, :s_rem, 18, :f_rem, 19, :shl, 20, :l_shr, 21, :a_shr, 22, :and_, 23, :or_, 24, :xor, 25, :alloca, 26, :load, 27, :store, 28, :get_element_ptr, 29, :trunc, 30, :z_ext, 31, :s_ext, 32, :fp_to_ui, 33, :fp_to_si, 34, :ui_to_fp, 35, :si_to_fp, 36, :fp_trunc, 37, :fp_ext, 38, :ptr_to_int, 39, :int_to_ptr, 40, :bit_cast, 41, :addr_space_cast, 60, :i_cmp, 42, :f_cmp, 43, :phi, 44, :call, 45, :select, 46, :user_op1, 47, :user_op2, 48, :va_arg, 49, :extract_element, 50, :insert_element, 51, :shuffle_vector, 52, :extract_value, 53, :insert_value, 54, :fence, 55, :atomic_cmp_xchg, 56, :atomic_rmw, 57, :resume, 58, :landing_pad, 59, :cleanup_ret, 61, :catch_ret, 62, :catch_pad, 63, :cleanup_pad, 64, :catch_switch, 65 ] |
._enum_real_predicate_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:real_predicate).
Options:
- :predicate_false
- :oeq
-
< Always false (always folded)
- :ogt
-
< True if ordered and equal
- :oge
-
< True if ordered and greater than
- :olt
-
< True if ordered and greater than or equal
- :ole
-
< True if ordered and less than
- :one
-
< True if ordered and less than or equal
- :ord
-
< True if ordered and operands are unequal
- :uno
-
< True if ordered (no nans)
- :ueq
-
< True if unordered: isnan(X) | isnan(Y)
- :ugt
-
< True if unordered or equal
- :uge
-
< True if unordered or greater than
- :ult
-
< True if unordered, greater than, or equal
- :ule
-
< True if unordered or less than
- :une
-
< True if unordered, less than, or equal
- :predicate_true
-
< True if unordered or not equal
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 |
# File 'lib/llvm/core_ffi.rb', line 643 enum :real_predicate, [ :predicate_false, 0, :oeq, 1, :ogt, 2, :oge, 3, :olt, 4, :ole, 5, :one, 6, :ord, 7, :uno, 8, :ueq, 9, :ugt, 10, :uge, 11, :ult, 12, :ule, 13, :une, 14, :predicate_true, 15 ] |
._enum_reloc_mode_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:reloc_mode).
Options:
- :default
- :static
- :pic
- :dynamic_no_pic
- :static
376 377 378 379 380 381 |
# File 'lib/llvm/target_ffi.rb', line 376 enum :reloc_mode, [ :default, 0, :static, 1, :pic, 2, :dynamic_no_pic, 3 ] |
._enum_thread_local_mode_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:thread_local_mode).
Options:
- :not_thread_local
- :general_dynamic_tls_model
- :local_dynamic_tls_model
- :initial_exec_tls_model
- :local_exec_tls_model
- :general_dynamic_tls_model
699 700 701 702 703 704 705 |
# File 'lib/llvm/core_ffi.rb', line 699 enum :thread_local_mode, [ :not_thread_local, 0, :general_dynamic_tls_model, 1, :local_dynamic_tls_model, 2, :initial_exec_tls_model, 3, :local_exec_tls_model, 4 ] |
._enum_type_kind_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:type_kind).
Options:
- :void
- :half
-
< type with no size
- :float
-
< 16 bit floating point type
- :double
-
< 32 bit floating point type
- :x86_fp80
-
< 64 bit floating point type
- :fp128
-
< 80 bit floating point type (X87)
- :ppc_fp128
-
< 128 bit floating point type (112-bit mantissa)
- :label
-
< 128 bit floating point type (two 64-bits)
- :integer
-
< Labels
- :function
-
< Arbitrary bit width integers
- :struct
-
< Functions
- :array
-
< Structures
- :pointer
-
< Arrays
- :vector
-
< Pointers
- :metadata
-
< SIMD ‘packed’ format, or other vector type
- :x86_mmx
-
< Metadata
- :token
-
< X86 MMX
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/llvm/core_ffi.rb', line 396 enum :type_kind, [ :void, 0, :half, 1, :float, 2, :double, 3, :x86_fp80, 4, :fp128, 5, :ppc_fp128, 6, :label, 7, :integer, 8, :function, 9, :struct, 10, :array, 11, :pointer, 12, :vector, 13, :metadata, 14, :x86_mmx, 15, :token, 16, :scalable_vector, 17, :bfloat, 18, :x86_amx, 19, ] |
._enum_verifier_failure_action_ ⇒ Symbol
@{
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:verifier_failure_action).
Options:
- :abort_process
- :print_message
-
verifier will print to stderr and abort()
- :return_status
-
verifier will print to stderr and return 1
33 34 35 36 37 |
# File 'lib/llvm/analysis_ffi.rb', line 33 enum :verifier_failure_action, [ :abort_process, 0, :print_message, 1, :return_status, 2 ] |
._enum_visibility_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:visibility).
Options:
- :default
- :hidden
-
< The GV is visible
- :protected
-
< The GV is hidden
500 501 502 503 504 |
# File 'lib/llvm/core_ffi.rb', line 500 enum :visibility, [ :default, 0, :hidden, 1, :protected, 2 ] |
.abi_alignment_of_type(td, ty) ⇒ Integer
(Not documented)
258 |
# File 'lib/llvm/target_ffi.rb', line 258 attach_function :abi_alignment_of_type, :LLVMABIAlignmentOfType, [OpaqueTargetData, :pointer], :uint |
.abi_size_of_type(td, ty) ⇒ Integer
(Not documented)
249 |
# File 'lib/llvm/target_ffi.rb', line 249 attach_function :abi_size_of_type, :LLVMABISizeOfType, [OpaqueTargetData, :pointer], :ulong_long |
.add_aggressive_dce_pass(pm) ⇒ nil
See llvm::createAggressiveDCEPass function.
21 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 21 attach_function :add_aggressive_dce_pass, :LLVMAddAggressiveDCEPass, [:pointer], :void |
.add_alias(m, ty, aliasee, name) ⇒ FFI::Pointer(ValueRef)
This group contains function that operate on global alias values.
@{
3707 |
# File 'lib/llvm/core_ffi.rb', line 3707 attach_function :add_alias, :LLVMAddAlias, [:pointer, :pointer, :pointer, :string], :pointer |
.add_alignment_from_assumptions_pass(pm) ⇒ nil
See llvm::createAlignmentFromAssumptionsPass function.
37 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 37 attach_function :add_alignment_from_assumptions_pass, :LLVMAddAlignmentFromAssumptionsPass, [:pointer], :void |
.add_always_inliner_pass(pm) ⇒ nil
See llvm::createAlwaysInlinerPass function.
61 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 61 attach_function :add_always_inliner_pass, :LLVMAddAlwaysInlinerPass, [:pointer], :void |
.add_analysis_passes(t, pm) ⇒ nil
Adds the target-specific analysis passes to the pass manager.
626 |
# File 'lib/llvm/target_ffi.rb', line 626 attach_function :add_analysis_passes, :LLVMAddAnalysisPasses, [OpaqueTargetMachine, :pointer], :void |
.add_argument_promotion_pass(pm) ⇒ nil
See llvm::createArgumentPromotionPass function.
21 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 21 attach_function :add_argument_promotion_pass, :LLVMAddArgumentPromotionPass, [:pointer], :void |
.add_basic_alias_analysis_pass(pm) ⇒ nil
See llvm::createBasicAliasAnalysisPass function
342 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 342 attach_function :add_basic_alias_analysis_pass, :LLVMAddBasicAliasAnalysisPass, [:pointer], :void |
.add_bb_vectorize_pass(pm) ⇒ nil
DEPRECATED - Use LLVMAddSLPVectorizePass
21 |
# File 'lib/llvm/transforms/vectorize_ffi.rb', line 21 attach_function :add_bb_vectorize_pass, :LLVMAddBBVectorizePass, [:pointer], :void |
.add_bit_tracking_dce_pass(pm) ⇒ nil
See llvm::createBitTrackingDCEPass function.
29 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 29 attach_function :add_bit_tracking_dce_pass, :LLVMAddBitTrackingDCEPass, [:pointer], :void |
.add_case(switch, on_val, dest) ⇒ nil
Add a case to the switch instruction
4787 |
# File 'lib/llvm/core_ffi.rb', line 4787 attach_function :add_case, :LLVMAddCase, [:pointer, :pointer, :pointer], :void |
.add_cfg_simplification_pass(pm) ⇒ nil
See llvm::createCFGSimplificationPass function.
45 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 45 attach_function :add_cfg_simplification_pass, :LLVMAddCFGSimplificationPass, [:pointer], :void |
.add_clause(landing_pad, clause_val) ⇒ nil
Add a catch or filter clause to the landingpad instruction
4805 |
# File 'lib/llvm/core_ffi.rb', line 4805 attach_function :add_clause, :LLVMAddClause, [:pointer, :pointer], :void |
.add_constant_merge_pass(pm) ⇒ nil
See llvm::createConstantMergePass function.
29 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 29 attach_function :add_constant_merge_pass, :LLVMAddConstantMergePass, [:pointer], :void |
.add_constant_propagation_pass(pm) ⇒ nil
See llvm::createConstantPropagationPass function.
270 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 270 attach_function :add_constant_propagation_pass, :LLVMAddConstantPropagationPass, [:pointer], :void |
.add_correlated_value_propagation_pass(pm) ⇒ nil
See llvm::createCorrelatedValuePropagationPass function
294 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 294 attach_function :add_correlated_value_propagation_pass, :LLVMAddCorrelatedValuePropagationPass, [:pointer], :void |
.add_dead_arg_elimination_pass(pm) ⇒ nil
See llvm::createDeadArgEliminationPass function.
37 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 37 attach_function :add_dead_arg_elimination_pass, :LLVMAddDeadArgEliminationPass, [:pointer], :void |
.add_dead_store_elimination_pass(pm) ⇒ nil
See llvm::createDeadStoreEliminationPass function.
61 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 61 attach_function :add_dead_store_elimination_pass, :LLVMAddDeadStoreEliminationPass, [:pointer], :void |
.add_demote_memory_to_register_pass(pm) ⇒ nil
See llvm::demotePromoteMemoryToRegisterPass function.
278 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 278 attach_function :add_demote_memory_to_register_pass, :LLVMAddDemoteMemoryToRegisterPass, [:pointer], :void |
.add_destination(indirect_br, dest) ⇒ nil
Add a destination to the indirectbr instruction
4796 |
# File 'lib/llvm/core_ffi.rb', line 4796 attach_function :add_destination, :LLVMAddDestination, [:pointer, :pointer], :void |
.add_early_cse_mem_ssa_pass(pm) ⇒ nil
See llvm::createEarlyCSEPass function
310 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 310 attach_function :add_early_cse_mem_ssa_pass, :LLVMAddEarlyCSEMemSSAPass, [:pointer], :void |
.add_early_cse_pass(pm) ⇒ nil
See llvm::createEarlyCSEPass function
302 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 302 attach_function :add_early_cse_pass, :LLVMAddEarlyCSEPass, [:pointer], :void |
.add_function(m, name, function_ty) ⇒ FFI::Pointer(ValueRef)
Add a function to a module under a specified name.
1181 |
# File 'lib/llvm/core_ffi.rb', line 1181 attach_function :add_function, :LLVMAddFunction, [:pointer, :string, :pointer], :pointer |
.add_function_attrs_pass(pm) ⇒ nil
See llvm::createFunctionAttrsPass function.
45 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 45 attach_function :add_function_attrs_pass, :LLVMAddFunctionAttrsPass, [:pointer], :void |
.add_function_inlining_pass(pm) ⇒ nil
See llvm::createFunctionInliningPass function.
53 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 53 attach_function :add_function_inlining_pass, :LLVMAddFunctionInliningPass, [:pointer], :void |
.add_global(m, ty, name) ⇒ FFI::Pointer(ValueRef)
This group contains functions that operate on global variable values.
@{
3545 |
# File 'lib/llvm/core_ffi.rb', line 3545 attach_function :add_global, :LLVMAddGlobal, [:pointer, :pointer, :string], :pointer |
.add_global_dce_pass(pm) ⇒ nil
See llvm::createGlobalDCEPass function.
69 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 69 attach_function :add_global_dce_pass, :LLVMAddGlobalDCEPass, [:pointer], :void |
.add_global_in_address_space(m, ty, name, address_space) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3556 |
# File 'lib/llvm/core_ffi.rb', line 3556 attach_function :add_global_in_address_space, :LLVMAddGlobalInAddressSpace, [:pointer, :pointer, :string, :uint], :pointer |
.add_global_mapping(ee, global, addr) ⇒ nil
(Not documented)
322 |
# File 'lib/llvm/execution_engine_ffi.rb', line 322 attach_function :add_global_mapping, :LLVMAddGlobalMapping, [OpaqueExecutionEngine, :pointer, :pointer], :void |
.add_global_optimizer_pass(pm) ⇒ nil
See llvm::createGlobalOptimizerPass function.
77 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 77 attach_function :add_global_optimizer_pass, :LLVMAddGlobalOptimizerPass, [:pointer], :void |
.add_gvn_pass(pm) ⇒ nil
See llvm::createGVNPass function.
85 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 85 attach_function :add_gvn_pass, :LLVMAddGVNPass, [:pointer], :void |
.add_incoming(phi_node, incoming_values, incoming_blocks, count) ⇒ nil
Add an incoming value to the end of a PHI list.
4523 |
# File 'lib/llvm/core_ffi.rb', line 4523 attach_function :add_incoming, :LLVMAddIncoming, [:pointer, :pointer, :pointer, :uint], :void |
.add_ind_var_simplify_pass(pm) ⇒ nil
See llvm::createIndVarSimplifyPass function.
101 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 101 attach_function :add_ind_var_simplify_pass, :LLVMAddIndVarSimplifyPass, [:pointer], :void |
.add_instruction_combining_pass(pm) ⇒ nil
See llvm::createInstructionCombiningPass function.
109 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 109 attach_function :add_instruction_combining_pass, :LLVMAddInstructionCombiningPass, [:pointer], :void |
.add_internalize_pass(pass_manager_ref, all_but_main) ⇒ nil
See llvm::createInternalizePass function.
110 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 110 attach_function :add_internalize_pass, :LLVMAddInternalizePass, [:pointer, :uint], :void |
.add_ip_constant_propagation_pass(pm) ⇒ nil
See llvm::createIPConstantPropagationPass function.
85 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 85 attach_function :add_ip_constant_propagation_pass, :LLVMAddIPConstantPropagationPass, [:pointer], :void |
.add_ipsccp_pass(pm) ⇒ nil
See llvm::createIPSCCPPass function.
101 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 101 attach_function :add_ipsccp_pass, :LLVMAddIPSCCPPass, [:pointer], :void |
.add_jump_threading_pass(pm) ⇒ nil
See llvm::createJumpThreadingPass function.
117 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 117 attach_function :add_jump_threading_pass, :LLVMAddJumpThreadingPass, [:pointer], :void |
.add_late_cfg_simplification_pass(pm) ⇒ nil
See llvm::createLateCFGSimplificationPass function.
53 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 53 attach_function :add_late_cfg_simplification_pass, :LLVMAddLateCFGSimplificationPass, [:pointer], :void |
.add_licm_pass(pm) ⇒ nil
See llvm::createLICMPass function.
125 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 125 attach_function :add_licm_pass, :LLVMAddLICMPass, [:pointer], :void |
.add_loop_deletion_pass(pm) ⇒ nil
See llvm::createLoopDeletionPass function.
133 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 133 attach_function :add_loop_deletion_pass, :LLVMAddLoopDeletionPass, [:pointer], :void |
.add_loop_idiom_pass(pm) ⇒ nil
See llvm::createLoopIdiomPass function
141 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 141 attach_function :add_loop_idiom_pass, :LLVMAddLoopIdiomPass, [:pointer], :void |
.add_loop_reroll_pass(pm) ⇒ nil
See llvm::createLoopRerollPass function.
157 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 157 attach_function :add_loop_reroll_pass, :LLVMAddLoopRerollPass, [:pointer], :void |
.add_loop_rotate_pass(pm) ⇒ nil
See llvm::createLoopRotatePass function.
149 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 149 attach_function :add_loop_rotate_pass, :LLVMAddLoopRotatePass, [:pointer], :void |
.add_loop_unroll_pass(pm) ⇒ nil
See llvm::createLoopUnrollPass function.
165 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 165 attach_function :add_loop_unroll_pass, :LLVMAddLoopUnrollPass, [:pointer], :void |
.add_loop_unswitch_pass(pm) ⇒ nil
See llvm::createLoopUnswitchPass function.
173 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 173 attach_function :add_loop_unswitch_pass, :LLVMAddLoopUnswitchPass, [:pointer], :void |
.add_loop_vectorize_pass(pm) ⇒ nil
See llvm::createLoopVectorizePass function.
29 |
# File 'lib/llvm/transforms/vectorize_ffi.rb', line 29 attach_function :add_loop_vectorize_pass, :LLVMAddLoopVectorizePass, [:pointer], :void |
.add_lower_expect_intrinsic_pass(pm) ⇒ nil
See llvm::createLowerExpectIntrinsicPass function
318 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 318 attach_function :add_lower_expect_intrinsic_pass, :LLVMAddLowerExpectIntrinsicPass, [:pointer], :void |
.add_lower_switch_pass(pm) ⇒ nil
See llvm::createLowerSwitchPass function.
197 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 197 attach_function :add_lower_switch_pass, :LLVMAddLowerSwitchPass, [:pointer], :void |
.add_mem_cpy_opt_pass(pm) ⇒ nil
See llvm::createMemCpyOptPass function.
181 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 181 attach_function :add_mem_cpy_opt_pass, :LLVMAddMemCpyOptPass, [:pointer], :void |
.add_merged_load_store_motion_pass(pm) ⇒ nil
See llvm::createMergedLoadStoreMotionPass function.
77 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 77 attach_function :add_merged_load_store_motion_pass, :LLVMAddMergedLoadStoreMotionPass, [:pointer], :void |
.add_module(ee, m) ⇒ nil
(Not documented)
266 |
# File 'lib/llvm/execution_engine_ffi.rb', line 266 attach_function :add_module, :LLVMAddModule, [OpaqueExecutionEngine, :pointer], :void |
.add_named_metadata_operand(m, name, val) ⇒ nil
Add an operand to named metadata.
1169 |
# File 'lib/llvm/core_ffi.rb', line 1169 attach_function :add_named_metadata_operand, :LLVMAddNamedMetadataOperand, [:pointer, :string, :pointer], :void |
.add_new_gvn_pass(pm) ⇒ nil
See llvm::createGVNPass function.
93 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 93 attach_function :add_new_gvn_pass, :LLVMAddNewGVNPass, [:pointer], :void |
.add_partially_inline_lib_calls_pass(pm) ⇒ nil
See llvm::createPartiallyInlineLibCallsPass function.
189 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 189 attach_function :add_partially_inline_lib_calls_pass, :LLVMAddPartiallyInlineLibCallsPass, [:pointer], :void |
.add_promote_memory_to_register_pass(pm) ⇒ nil
See llvm::createPromoteMemoryToRegisterPass function.
205 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 205 attach_function :add_promote_memory_to_register_pass, :LLVMAddPromoteMemoryToRegisterPass, [:pointer], :void |
.add_prune_eh_pass(pm) ⇒ nil
See llvm::createPruneEHPass function.
93 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 93 attach_function :add_prune_eh_pass, :LLVMAddPruneEHPass, [:pointer], :void |
.add_reassociate_pass(pm) ⇒ nil
See llvm::createReassociatePass function.
213 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 213 attach_function :add_reassociate_pass, :LLVMAddReassociatePass, [:pointer], :void |
.add_scalar_repl_aggregates_pass(pm) ⇒ nil
See llvm::createSROAPass function.
229 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 229 attach_function :add_scalar_repl_aggregates_pass, :LLVMAddScalarReplAggregatesPass, [:pointer], :void |
.add_scalar_repl_aggregates_pass_ssa(pm) ⇒ nil
See llvm::createSROAPass function.
237 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 237 attach_function :add_scalar_repl_aggregates_pass_ssa, :LLVMAddScalarReplAggregatesPassSSA, [:pointer], :void |
.add_scalar_repl_aggregates_pass_with_threshold(pm, threshold) ⇒ nil
See llvm::createSROAPass function.
246 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 246 attach_function :add_scalar_repl_aggregates_pass_with_threshold, :LLVMAddScalarReplAggregatesPassWithThreshold, [:pointer, :int], :void |
.add_scalarizer_pass(pm) ⇒ nil
See llvm::createScalarizerPass function.
69 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 69 attach_function :add_scalarizer_pass, :LLVMAddScalarizerPass, [:pointer], :void |
.add_sccp_pass(pm) ⇒ nil
See llvm::createSCCPPass function.
221 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 221 attach_function :add_sccp_pass, :LLVMAddSCCPPass, [:pointer], :void |
.add_scoped_no_alias_aa_pass(pm) ⇒ nil
See llvm::createScopedNoAliasAAPass function
334 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 334 attach_function :add_scoped_no_alias_aa_pass, :LLVMAddScopedNoAliasAAPass, [:pointer], :void |
.add_simplify_lib_calls_pass(pm) ⇒ nil
See llvm::createSimplifyLibCallsPass function.
254 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 254 attach_function :add_simplify_lib_calls_pass, :LLVMAddSimplifyLibCallsPass, [:pointer], :void |
.add_slp_vectorize_pass(pm) ⇒ nil
See llvm::createSLPVectorizerPass function.
37 |
# File 'lib/llvm/transforms/vectorize_ffi.rb', line 37 attach_function :add_slp_vectorize_pass, :LLVMAddSLPVectorizePass, [:pointer], :void |
.add_strip_dead_prototypes_pass(pm) ⇒ nil
See llvm::createStripDeadPrototypesPass function.
118 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 118 attach_function :add_strip_dead_prototypes_pass, :LLVMAddStripDeadPrototypesPass, [:pointer], :void |
.add_strip_symbols_pass(pm) ⇒ nil
See llvm::createStripSymbolsPass function.
126 |
# File 'lib/llvm/transforms/ipo_ffi.rb', line 126 attach_function :add_strip_symbols_pass, :LLVMAddStripSymbolsPass, [:pointer], :void |
.add_symbol(symbol_name, symbol_value) ⇒ nil
(Not documented)
57 |
# File 'lib/llvm/core_ffi.rb', line 57 attach_function :add_symbol, :LLVMAddSymbol, [:string, :pointer], :void |
.add_tail_call_elimination_pass(pm) ⇒ nil
See llvm::createTailCallEliminationPass function.
262 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 262 attach_function :add_tail_call_elimination_pass, :LLVMAddTailCallEliminationPass, [:pointer], :void |
.add_target_dependent_function_attr(fn, a, v) ⇒ nil
Add a target-dependent attribute to a function
3807 |
# File 'lib/llvm/core_ffi.rb', line 3807 attach_function :add_target_dependent_function_attr, :LLVMAddTargetDependentFunctionAttr, [:pointer, :string, :string], :void |
.add_target_library_info(tli, pm) ⇒ nil
(Not documented)
153 |
# File 'lib/llvm/target_ffi.rb', line 153 attach_function :add_target_library_info, :LLVMAddTargetLibraryInfo, [OpaqueTargetLibraryInfotData, :pointer], :void |
.add_type_based_alias_analysis_pass(pm) ⇒ nil
See llvm::createTypeBasedAliasAnalysisPass function
326 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 326 attach_function :add_type_based_alias_analysis_pass, :LLVMAddTypeBasedAliasAnalysisPass, [:pointer], :void |
.add_verifier_pass(pm) ⇒ nil
See llvm::createVerifierPass function.
286 |
# File 'lib/llvm/transforms/scalar_ffi.rb', line 286 attach_function :add_verifier_pass, :LLVMAddVerifierPass, [:pointer], :void |
.align_of(ty) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2941 |
# File 'lib/llvm/core_ffi.rb', line 2941 attach_function :align_of, :LLVMAlignOf, [:pointer], :pointer |
.append_basic_block(fn, name) ⇒ FFI::Pointer(BasicBlockRef)
Append a basic block to the end of a function using the global context.
4149 |
# File 'lib/llvm/core_ffi.rb', line 4149 attach_function :append_basic_block, :LLVMAppendBasicBlock, [:pointer, :string], :pointer |
.append_basic_block_in_context(c, fn, name) ⇒ FFI::Pointer(BasicBlockRef)
Append a basic block to the end of a function.
4137 |
# File 'lib/llvm/core_ffi.rb', line 4137 attach_function :append_basic_block_in_context, :LLVMAppendBasicBlockInContext, [:pointer, :pointer, :string], :pointer |
.array_type(element_type, element_count) ⇒ FFI::Pointer(TypeRef)
Create a fixed size array type that refers to a specific type.
The created type will exist in the context that its element type exists in.
1698 |
# File 'lib/llvm/core_ffi.rb', line 1698 attach_function :array_type, :LLVMArrayType, [:pointer, :uint], :pointer |
.attach_function(name, *_) ⇒ Object
9 10 11 12 13 |
# File 'lib/llvm/core_ffi.rb', line 9 def self.attach_function(name, *_) begin; super; rescue FFI::NotFoundError => e (class << self; self; end).class_eval { define_method(name) { |*_| raise e } } end end |
.basic_block_as_value(bb) ⇒ FFI::Pointer(ValueRef)
Convert a basic block instance to a value type.
4010 |
# File 'lib/llvm/core_ffi.rb', line 4010 attach_function :basic_block_as_value, :LLVMBasicBlockAsValue, [:pointer], :pointer |
.block_address(f, bb) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3396 |
# File 'lib/llvm/core_ffi.rb', line 3396 attach_function :block_address, :LLVMBlockAddress, [:pointer, :pointer], :pointer |
.build_a_shr(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5056 |
# File 'lib/llvm/core_ffi.rb', line 5056 attach_function :build_a_shr, :LLVMBuildAShr, [:pointer, :pointer, :pointer, :string], :pointer |
.build_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
Arithmetic
4825 |
# File 'lib/llvm/core_ffi.rb', line 4825 attach_function :build_add, :LLVMBuildAdd, [:pointer, :pointer, :pointer, :string], :pointer |
.build_addr_space_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5454 |
# File 'lib/llvm/core_ffi.rb', line 5454 attach_function :build_addr_space_cast, :LLVMBuildAddrSpaceCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_aggregate_ret(builder_ref, ret_vals, n) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4693 |
# File 'lib/llvm/core_ffi.rb', line 4693 attach_function :build_aggregate_ret, :LLVMBuildAggregateRet, [:pointer, :pointer, :uint], :pointer |
.build_alloca(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5182 |
# File 'lib/llvm/core_ffi.rb', line 5182 attach_function :build_alloca, :LLVMBuildAlloca, [:pointer, :pointer, :string], :pointer |
.build_and(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5067 |
# File 'lib/llvm/core_ffi.rb', line 5067 attach_function :build_and, :LLVMBuildAnd, [:pointer, :pointer, :pointer, :string], :pointer |
.build_array_alloca(builder_ref, ty, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5193 |
# File 'lib/llvm/core_ffi.rb', line 5193 attach_function :build_array_alloca, :LLVMBuildArrayAlloca, [:pointer, :pointer, :pointer, :string], :pointer |
.build_array_malloc(builder_ref, ty, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5172 |
# File 'lib/llvm/core_ffi.rb', line 5172 attach_function :build_array_malloc, :LLVMBuildArrayMalloc, [:pointer, :pointer, :pointer, :string], :pointer |
.build_atomic_rmw(b, op, ptr, val, ordering, single_thread) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5714 |
# File 'lib/llvm/core_ffi.rb', line 5714 attach_function :build_atomic_rmw, :LLVMBuildAtomicRMW, [:pointer, :atomic_rmw_bin_op, :pointer, :pointer, :atomic_ordering, :int], :pointer |
.build_bin_op(b, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5101 |
# File 'lib/llvm/core_ffi.rb', line 5101 attach_function :build_bin_op, :LLVMBuildBinOp, [:pointer, :opcode, :pointer, :pointer, :string], :pointer |
.build_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5443 |
# File 'lib/llvm/core_ffi.rb', line 5443 attach_function :build_bit_cast, :LLVMBuildBitCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_br(builder_ref, dest) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4702 |
# File 'lib/llvm/core_ffi.rb', line 4702 attach_function :build_br, :LLVMBuildBr, [:pointer, :pointer], :pointer |
.build_call(builder_ref, fn, args, num_args, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5578 |
# File 'lib/llvm/core_ffi.rb', line 5578 attach_function :build_call, :LLVMBuildCall, [:pointer, :pointer, :pointer, :uint, :string], :pointer |
.build_cast(b, op, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5499 |
# File 'lib/llvm/core_ffi.rb', line 5499 attach_function :build_cast, :LLVMBuildCast, [:pointer, :opcode, :pointer, :pointer, :string], :pointer |
.build_cond_br(builder_ref, if_, then_, else_) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4713 |
# File 'lib/llvm/core_ffi.rb', line 4713 attach_function :build_cond_br, :LLVMBuildCondBr, [:pointer, :pointer, :pointer, :pointer], :pointer |
.build_exact_s_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4979 |
# File 'lib/llvm/core_ffi.rb', line 4979 attach_function :build_exact_s_div, :LLVMBuildExactSDiv, [:pointer, :pointer, :pointer, :string], :pointer |
.build_extract_element(builder_ref, vec_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5612 |
# File 'lib/llvm/core_ffi.rb', line 5612 attach_function :build_extract_element, :LLVMBuildExtractElement, [:pointer, :pointer, :pointer, :string], :pointer |
.build_extract_value(builder_ref, agg_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5647 |
# File 'lib/llvm/core_ffi.rb', line 5647 attach_function :build_extract_value, :LLVMBuildExtractValue, [:pointer, :pointer, :uint, :string], :pointer |
.build_f_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4858 |
# File 'lib/llvm/core_ffi.rb', line 4858 attach_function :build_f_add, :LLVMBuildFAdd, [:pointer, :pointer, :pointer, :string], :pointer |
.build_f_cmp(builder_ref, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5556 |
# File 'lib/llvm/core_ffi.rb', line 5556 attach_function :build_f_cmp, :LLVMBuildFCmp, [:pointer, :real_predicate, :pointer, :pointer, :string], :pointer |
.build_f_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4990 |
# File 'lib/llvm/core_ffi.rb', line 4990 attach_function :build_f_div, :LLVMBuildFDiv, [:pointer, :pointer, :pointer, :string], :pointer |
.build_f_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4946 |
# File 'lib/llvm/core_ffi.rb', line 4946 attach_function :build_f_mul, :LLVMBuildFMul, [:pointer, :pointer, :pointer, :string], :pointer |
.build_f_neg(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5141 |
# File 'lib/llvm/core_ffi.rb', line 5141 attach_function :build_f_neg, :LLVMBuildFNeg, [:pointer, :pointer, :string], :pointer |
.build_f_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5023 |
# File 'lib/llvm/core_ffi.rb', line 5023 attach_function :build_f_rem, :LLVMBuildFRem, [:pointer, :pointer, :pointer, :string], :pointer |
.build_f_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4902 |
# File 'lib/llvm/core_ffi.rb', line 4902 attach_function :build_f_sub, :LLVMBuildFSub, [:pointer, :pointer, :pointer, :string], :pointer |
.build_fence(b, ordering, single_thread, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5701 |
# File 'lib/llvm/core_ffi.rb', line 5701 attach_function :build_fence, :LLVMBuildFence, [:pointer, :atomic_ordering, :int, :string], :pointer |
.build_fp_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5532 |
# File 'lib/llvm/core_ffi.rb', line 5532 attach_function :build_fp_cast, :LLVMBuildFPCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_fp_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5410 |
# File 'lib/llvm/core_ffi.rb', line 5410 attach_function :build_fp_ext, :LLVMBuildFPExt, [:pointer, :pointer, :pointer, :string], :pointer |
.build_fp_to_si(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5366 |
# File 'lib/llvm/core_ffi.rb', line 5366 attach_function :build_fp_to_si, :LLVMBuildFPToSI, [:pointer, :pointer, :pointer, :string], :pointer |
.build_fp_to_ui(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5355 |
# File 'lib/llvm/core_ffi.rb', line 5355 attach_function :build_fp_to_ui, :LLVMBuildFPToUI, [:pointer, :pointer, :pointer, :string], :pointer |
.build_fp_trunc(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5399 |
# File 'lib/llvm/core_ffi.rb', line 5399 attach_function :build_fp_trunc, :LLVMBuildFPTrunc, [:pointer, :pointer, :pointer, :string], :pointer |
.build_free(builder_ref, pointer_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5202 |
# File 'lib/llvm/core_ffi.rb', line 5202 attach_function :build_free, :LLVMBuildFree, [:pointer, :pointer], :pointer |
.build_gep(b, pointer, indices, num_indices, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5234 |
# File 'lib/llvm/core_ffi.rb', line 5234 attach_function :build_gep, :LLVMBuildGEP, [:pointer, :pointer, :pointer, :uint, :string], :pointer |
.build_global_string(b, str, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5267 |
# File 'lib/llvm/core_ffi.rb', line 5267 attach_function :build_global_string, :LLVMBuildGlobalString, [:pointer, :string, :string], :pointer |
.build_global_string_ptr(b, str, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5277 |
# File 'lib/llvm/core_ffi.rb', line 5277 attach_function :build_global_string_ptr, :LLVMBuildGlobalStringPtr, [:pointer, :string, :string], :pointer |
.build_i_cmp(builder_ref, op, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
Comparisons
5544 |
# File 'lib/llvm/core_ffi.rb', line 5544 attach_function :build_i_cmp, :LLVMBuildICmp, [:pointer, :int_predicate, :pointer, :pointer, :string], :pointer |
.build_in_bounds_gep(b, pointer, indices, num_indices, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5246 |
# File 'lib/llvm/core_ffi.rb', line 5246 attach_function :build_in_bounds_gep, :LLVMBuildInBoundsGEP, [:pointer, :pointer, :pointer, :uint, :string], :pointer |
.build_indirect_br(b, addr, num_dests) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4734 |
# File 'lib/llvm/core_ffi.rb', line 4734 attach_function :build_indirect_br, :LLVMBuildIndirectBr, [:pointer, :pointer, :uint], :pointer |
.build_insert_element(builder_ref, vec_val, elt_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5624 |
# File 'lib/llvm/core_ffi.rb', line 5624 attach_function :build_insert_element, :LLVMBuildInsertElement, [:pointer, :pointer, :pointer, :pointer, :string], :pointer |
.build_insert_value(builder_ref, agg_val, elt_val, index, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5659 |
# File 'lib/llvm/core_ffi.rb', line 5659 attach_function :build_insert_value, :LLVMBuildInsertValue, [:pointer, :pointer, :pointer, :uint, :string], :pointer |
.build_int_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5521 |
# File 'lib/llvm/core_ffi.rb', line 5521 attach_function :build_int_cast, :LLVMBuildIntCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_int_to_ptr(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5432 |
# File 'lib/llvm/core_ffi.rb', line 5432 attach_function :build_int_to_ptr, :LLVMBuildIntToPtr, [:pointer, :pointer, :pointer, :string], :pointer |
.build_invoke(builder_ref, fn, args, num_args, then_, catch, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4748 |
# File 'lib/llvm/core_ffi.rb', line 4748 attach_function :build_invoke, :LLVMBuildInvoke, [:pointer, :pointer, :pointer, :uint, :pointer, :pointer, :string], :pointer |
.build_is_not_null(builder_ref, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5679 |
# File 'lib/llvm/core_ffi.rb', line 5679 attach_function :build_is_not_null, :LLVMBuildIsNotNull, [:pointer, :pointer, :string], :pointer |
.build_is_null(builder_ref, val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5669 |
# File 'lib/llvm/core_ffi.rb', line 5669 attach_function :build_is_null, :LLVMBuildIsNull, [:pointer, :pointer, :string], :pointer |
.build_l_shr(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5045 |
# File 'lib/llvm/core_ffi.rb', line 5045 attach_function :build_l_shr, :LLVMBuildLShr, [:pointer, :pointer, :pointer, :string], :pointer |
.build_landing_pad(b, ty, pers_fn, num_clauses, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4760 |
# File 'lib/llvm/core_ffi.rb', line 4760 attach_function :build_landing_pad, :LLVMBuildLandingPad, [:pointer, :pointer, :pointer, :uint, :string], :pointer |
.build_load(builder_ref, pointer_val, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5212 |
# File 'lib/llvm/core_ffi.rb', line 5212 attach_function :build_load, :LLVMBuildLoad, [:pointer, :pointer, :string], :pointer |
.build_malloc(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
Memory
5161 |
# File 'lib/llvm/core_ffi.rb', line 5161 attach_function :build_malloc, :LLVMBuildMalloc, [:pointer, :pointer, :string], :pointer |
.build_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4913 |
# File 'lib/llvm/core_ffi.rb', line 4913 attach_function :build_mul, :LLVMBuildMul, [:pointer, :pointer, :pointer, :string], :pointer |
.build_neg(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5111 |
# File 'lib/llvm/core_ffi.rb', line 5111 attach_function :build_neg, :LLVMBuildNeg, [:pointer, :pointer, :string], :pointer |
.build_not(builder_ref, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5151 |
# File 'lib/llvm/core_ffi.rb', line 5151 attach_function :build_not, :LLVMBuildNot, [:pointer, :pointer, :string], :pointer |
.build_nsw_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4836 |
# File 'lib/llvm/core_ffi.rb', line 4836 attach_function :build_nsw_add, :LLVMBuildNSWAdd, [:pointer, :pointer, :pointer, :string], :pointer |
.build_nsw_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4924 |
# File 'lib/llvm/core_ffi.rb', line 4924 attach_function :build_nsw_mul, :LLVMBuildNSWMul, [:pointer, :pointer, :pointer, :string], :pointer |
.build_nsw_neg(b, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5121 |
# File 'lib/llvm/core_ffi.rb', line 5121 attach_function :build_nsw_neg, :LLVMBuildNSWNeg, [:pointer, :pointer, :string], :pointer |
.build_nsw_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4880 |
# File 'lib/llvm/core_ffi.rb', line 4880 attach_function :build_nsw_sub, :LLVMBuildNSWSub, [:pointer, :pointer, :pointer, :string], :pointer |
.build_nuw_add(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4847 |
# File 'lib/llvm/core_ffi.rb', line 4847 attach_function :build_nuw_add, :LLVMBuildNUWAdd, [:pointer, :pointer, :pointer, :string], :pointer |
.build_nuw_mul(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4935 |
# File 'lib/llvm/core_ffi.rb', line 4935 attach_function :build_nuw_mul, :LLVMBuildNUWMul, [:pointer, :pointer, :pointer, :string], :pointer |
.build_nuw_neg(b, v, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5131 |
# File 'lib/llvm/core_ffi.rb', line 5131 attach_function :build_nuw_neg, :LLVMBuildNUWNeg, [:pointer, :pointer, :string], :pointer |
.build_nuw_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4891 |
# File 'lib/llvm/core_ffi.rb', line 4891 attach_function :build_nuw_sub, :LLVMBuildNUWSub, [:pointer, :pointer, :pointer, :string], :pointer |
.build_or(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5078 |
# File 'lib/llvm/core_ffi.rb', line 5078 attach_function :build_or, :LLVMBuildOr, [:pointer, :pointer, :pointer, :string], :pointer |
.build_phi(builder_ref, ty, name) ⇒ FFI::Pointer(ValueRef)
Miscellaneous instructions
5566 |
# File 'lib/llvm/core_ffi.rb', line 5566 attach_function :build_phi, :LLVMBuildPhi, [:pointer, :pointer, :string], :pointer |
.build_pointer_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5510 |
# File 'lib/llvm/core_ffi.rb', line 5510 attach_function :build_pointer_cast, :LLVMBuildPointerCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_ptr_diff(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5690 |
# File 'lib/llvm/core_ffi.rb', line 5690 attach_function :build_ptr_diff, :LLVMBuildPtrDiff, [:pointer, :pointer, :pointer, :string], :pointer |
.build_ptr_to_int(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5421 |
# File 'lib/llvm/core_ffi.rb', line 5421 attach_function :build_ptr_to_int, :LLVMBuildPtrToInt, [:pointer, :pointer, :pointer, :string], :pointer |
.build_resume(b, exn) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4769 |
# File 'lib/llvm/core_ffi.rb', line 4769 attach_function :build_resume, :LLVMBuildResume, [:pointer, :pointer], :pointer |
.build_ret(builder_ref, v) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4683 |
# File 'lib/llvm/core_ffi.rb', line 4683 attach_function :build_ret, :LLVMBuildRet, [:pointer, :pointer], :pointer |
.build_ret_void(builder_ref) ⇒ FFI::Pointer(ValueRef)
Terminators
4674 |
# File 'lib/llvm/core_ffi.rb', line 4674 attach_function :build_ret_void, :LLVMBuildRetVoid, [:pointer], :pointer |
.build_s_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4968 |
# File 'lib/llvm/core_ffi.rb', line 4968 attach_function :build_s_div, :LLVMBuildSDiv, [:pointer, :pointer, :pointer, :string], :pointer |
.build_s_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5344 |
# File 'lib/llvm/core_ffi.rb', line 5344 attach_function :build_s_ext, :LLVMBuildSExt, [:pointer, :pointer, :pointer, :string], :pointer |
.build_s_ext_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5476 |
# File 'lib/llvm/core_ffi.rb', line 5476 attach_function :build_s_ext_or_bit_cast, :LLVMBuildSExtOrBitCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_s_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5012 |
# File 'lib/llvm/core_ffi.rb', line 5012 attach_function :build_s_rem, :LLVMBuildSRem, [:pointer, :pointer, :pointer, :string], :pointer |
.build_select(builder_ref, if_, then_, else_, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5590 |
# File 'lib/llvm/core_ffi.rb', line 5590 attach_function :build_select, :LLVMBuildSelect, [:pointer, :pointer, :pointer, :pointer, :string], :pointer |
.build_shl(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5034 |
# File 'lib/llvm/core_ffi.rb', line 5034 attach_function :build_shl, :LLVMBuildShl, [:pointer, :pointer, :pointer, :string], :pointer |
.build_shuffle_vector(builder_ref, v1, v2, mask, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5636 |
# File 'lib/llvm/core_ffi.rb', line 5636 attach_function :build_shuffle_vector, :LLVMBuildShuffleVector, [:pointer, :pointer, :pointer, :pointer, :string], :pointer |
.build_si_to_fp(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5388 |
# File 'lib/llvm/core_ffi.rb', line 5388 attach_function :build_si_to_fp, :LLVMBuildSIToFP, [:pointer, :pointer, :pointer, :string], :pointer |
.build_store(builder_ref, val, ptr) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5222 |
# File 'lib/llvm/core_ffi.rb', line 5222 attach_function :build_store, :LLVMBuildStore, [:pointer, :pointer, :pointer], :pointer |
.build_struct_gep(b, pointer, idx, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5257 |
# File 'lib/llvm/core_ffi.rb', line 5257 attach_function :build_struct_gep, :LLVMBuildStructGEP, [:pointer, :pointer, :uint, :string], :pointer |
.build_sub(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4869 |
# File 'lib/llvm/core_ffi.rb', line 4869 attach_function :build_sub, :LLVMBuildSub, [:pointer, :pointer, :pointer, :string], :pointer |
.build_switch(builder_ref, v, else_, num_cases) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4724 |
# File 'lib/llvm/core_ffi.rb', line 4724 attach_function :build_switch, :LLVMBuildSwitch, [:pointer, :pointer, :pointer, :uint], :pointer |
.build_trunc(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
Casts
5322 |
# File 'lib/llvm/core_ffi.rb', line 5322 attach_function :build_trunc, :LLVMBuildTrunc, [:pointer, :pointer, :pointer, :string], :pointer |
.build_trunc_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5487 |
# File 'lib/llvm/core_ffi.rb', line 5487 attach_function :build_trunc_or_bit_cast, :LLVMBuildTruncOrBitCast, [:pointer, :pointer, :pointer, :string], :pointer |
.build_u_div(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4957 |
# File 'lib/llvm/core_ffi.rb', line 4957 attach_function :build_u_div, :LLVMBuildUDiv, [:pointer, :pointer, :pointer, :string], :pointer |
.build_u_rem(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5001 |
# File 'lib/llvm/core_ffi.rb', line 5001 attach_function :build_u_rem, :LLVMBuildURem, [:pointer, :pointer, :pointer, :string], :pointer |
.build_ui_to_fp(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5377 |
# File 'lib/llvm/core_ffi.rb', line 5377 attach_function :build_ui_to_fp, :LLVMBuildUIToFP, [:pointer, :pointer, :pointer, :string], :pointer |
.build_unreachable(builder_ref) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4777 |
# File 'lib/llvm/core_ffi.rb', line 4777 attach_function :build_unreachable, :LLVMBuildUnreachable, [:pointer], :pointer |
.build_va_arg(builder_ref, list, ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5601 |
# File 'lib/llvm/core_ffi.rb', line 5601 attach_function :build_va_arg, :LLVMBuildVAArg, [:pointer, :pointer, :pointer, :string], :pointer |
.build_xor(builder_ref, lhs, rhs, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5089 |
# File 'lib/llvm/core_ffi.rb', line 5089 attach_function :build_xor, :LLVMBuildXor, [:pointer, :pointer, :pointer, :string], :pointer |
.build_z_ext(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5333 |
# File 'lib/llvm/core_ffi.rb', line 5333 attach_function :build_z_ext, :LLVMBuildZExt, [:pointer, :pointer, :pointer, :string], :pointer |
.build_z_ext_or_bit_cast(builder_ref, val, dest_ty, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
5465 |
# File 'lib/llvm/core_ffi.rb', line 5465 attach_function :build_z_ext_or_bit_cast, :LLVMBuildZExtOrBitCast, [:pointer, :pointer, :pointer, :string], :pointer |
.byte_order(td) ⇒ Symbol from _enum_byte_ordering_
(Not documented)
169 |
# File 'lib/llvm/target_ffi.rb', line 169 attach_function :byte_order, :LLVMByteOrder, [OpaqueTargetData], :byte_ordering |
.call_frame_alignment_of_type(td, ty) ⇒ Integer
(Not documented)
267 |
# File 'lib/llvm/target_ffi.rb', line 267 attach_function :call_frame_alignment_of_type, :LLVMCallFrameAlignmentOfType, [OpaqueTargetData, :pointer], :uint |
.clear_insertion_position(builder) ⇒ nil
(Not documented)
4613 |
# File 'lib/llvm/core_ffi.rb', line 4613 attach_function :clear_insertion_position, :LLVMClearInsertionPosition, [:pointer], :void |
.clone_module(m) ⇒ FFI::Pointer(ModuleRef)
Return an exact copy of the specified module.
1010 |
# File 'lib/llvm/core_ffi.rb', line 1010 attach_function :clone_module, :LLVMCloneModule, [:pointer], :pointer |
.const_a_shr(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3144 |
# File 'lib/llvm/core_ffi.rb', line 3144 attach_function :const_a_shr, :LLVMConstAShr, [:pointer, :pointer], :pointer |
.const_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2998 |
# File 'lib/llvm/core_ffi.rb', line 2998 attach_function :const_add, :LLVMConstAdd, [:pointer, :pointer], :pointer |
.const_addr_space_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3281 |
# File 'lib/llvm/core_ffi.rb', line 3281 attach_function :const_addr_space_cast, :LLVMConstAddrSpaceCast, [:pointer, :pointer], :pointer |
.const_all_ones(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to the instance of a type consisting of all ones.
This is only valid for integer types.
2643 |
# File 'lib/llvm/core_ffi.rb', line 2643 attach_function :const_all_ones, :LLVMConstAllOnes, [:pointer], :pointer |
.const_and(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3079 |
# File 'lib/llvm/core_ffi.rb', line 3079 attach_function :const_and, :LLVMConstAnd, [:pointer, :pointer], :pointer |
.const_array(element_ty, constant_vals, length) ⇒ FFI::Pointer(ValueRef)
Create a ConstantArray from values.
2885 |
# File 'lib/llvm/core_ffi.rb', line 2885 attach_function :const_array, :LLVMConstArray, [:pointer, :pointer, :uint], :pointer |
.const_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3272 |
# File 'lib/llvm/core_ffi.rb', line 3272 attach_function :const_bit_cast, :LLVMConstBitCast, [:pointer, :pointer], :pointer |
.const_extract_element(vector_constant, index_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3355 |
# File 'lib/llvm/core_ffi.rb', line 3355 attach_function :const_extract_element, :LLVMConstExtractElement, [:pointer, :pointer], :pointer |
.const_f_cmp(predicate, lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3117 |
# File 'lib/llvm/core_ffi.rb', line 3117 attach_function :const_f_cmp, :LLVMConstFCmp, [:real_predicate, :pointer, :pointer], :pointer |
.const_f_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2981 |
# File 'lib/llvm/core_ffi.rb', line 2981 attach_function :const_f_neg, :LLVMConstFNeg, [:pointer], :pointer |
.const_fp_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3336 |
# File 'lib/llvm/core_ffi.rb', line 3336 attach_function :const_fp_cast, :LLVMConstFPCast, [:pointer, :pointer], :pointer |
.const_fp_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3209 |
# File 'lib/llvm/core_ffi.rb', line 3209 attach_function :const_fp_ext, :LLVMConstFPExt, [:pointer, :pointer], :pointer |
.const_fp_to_si(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3245 |
# File 'lib/llvm/core_ffi.rb', line 3245 attach_function :const_fp_to_si, :LLVMConstFPToSI, [:pointer, :pointer], :pointer |
.const_fp_to_ui(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3236 |
# File 'lib/llvm/core_ffi.rb', line 3236 attach_function :const_fp_to_ui, :LLVMConstFPToUI, [:pointer, :pointer], :pointer |
.const_fp_trunc(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3200 |
# File 'lib/llvm/core_ffi.rb', line 3200 attach_function :const_fp_trunc, :LLVMConstFPTrunc, [:pointer, :pointer], :pointer |
.const_gep(constant_val, constant_indices, num_indices) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3154 |
# File 'lib/llvm/core_ffi.rb', line 3154 attach_function :const_gep, :LLVMConstGEP, [:pointer, :pointer, :uint], :pointer |
.const_i_cmp(predicate, lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3107 |
# File 'lib/llvm/core_ffi.rb', line 3107 attach_function :const_i_cmp, :LLVMConstICmp, [:int_predicate, :pointer, :pointer], :pointer |
.const_in_bounds_gep(constant_val, constant_indices, num_indices) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3164 |
# File 'lib/llvm/core_ffi.rb', line 3164 attach_function :const_in_bounds_gep, :LLVMConstInBoundsGEP, [:pointer, :pointer, :uint], :pointer |
.const_inline_asm(ty, asm_string, constraints, has_side_effects, is_align_stack) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3387 |
# File 'lib/llvm/core_ffi.rb', line 3387 attach_function :const_inline_asm, :LLVMConstInlineAsm, [:pointer, :string, :string, :int, :int], :pointer |
.const_insert_element(vector_constant, element_value_constant, index_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3365 |
# File 'lib/llvm/core_ffi.rb', line 3365 attach_function :const_insert_element, :LLVMConstInsertElement, [:pointer, :pointer, :pointer], :pointer |
.const_int(int_ty, n, sign_extend) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer type.
The returned value corresponds to a llvm::ConstantInt.
2690 |
# File 'lib/llvm/core_ffi.rb', line 2690 attach_function :const_int, :LLVMConstInt, [:pointer, :ulong_long, :int], :pointer |
.const_int_cast(constant_val, to_type, is_signed) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3327 |
# File 'lib/llvm/core_ffi.rb', line 3327 attach_function :const_int_cast, :LLVMConstIntCast, [:pointer, :pointer, :int], :pointer |
.const_int_get_s_ext_value(constant_val) ⇒ Integer
Obtain the sign extended value for an integer constant value.
2783 |
# File 'lib/llvm/core_ffi.rb', line 2783 attach_function :const_int_get_s_ext_value, :LLVMConstIntGetSExtValue, [:pointer], :long_long |
.const_int_get_z_ext_value(constant_val) ⇒ Integer
Obtain the zero extended value for an integer constant value.
2773 |
# File 'lib/llvm/core_ffi.rb', line 2773 attach_function :const_int_get_z_ext_value, :LLVMConstIntGetZExtValue, [:pointer], :ulong_long |
.const_int_of_arbitrary_precision(int_ty, num_words, words) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer of arbitrary precision.
2702 |
# File 'lib/llvm/core_ffi.rb', line 2702 attach_function :const_int_of_arbitrary_precision, :LLVMConstIntOfArbitraryPrecision, [:pointer, :uint, :pointer], :pointer |
.const_int_of_string(int_ty, text, radix) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer parsed from a string.
A similar API, LLVMConstIntOfStringAndSize is also available. If the string’s length is available, it is preferred to call that function instead.
2718 |
# File 'lib/llvm/core_ffi.rb', line 2718 attach_function :const_int_of_string, :LLVMConstIntOfString, [:pointer, :string, :uchar], :pointer |
.const_int_of_string_and_size(int_ty, text, s_len, radix) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value for an integer parsed from a string with specified length.
2732 |
# File 'lib/llvm/core_ffi.rb', line 2732 attach_function :const_int_of_string_and_size, :LLVMConstIntOfStringAndSize, [:pointer, :string, :uint, :uchar], :pointer |
.const_int_to_ptr(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3263 |
# File 'lib/llvm/core_ffi.rb', line 3263 attach_function :const_int_to_ptr, :LLVMConstIntToPtr, [:pointer, :pointer], :pointer |
.const_l_shr(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3135 |
# File 'lib/llvm/core_ffi.rb', line 3135 attach_function :const_l_shr, :LLVMConstLShr, [:pointer, :pointer], :pointer |
.const_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3052 |
# File 'lib/llvm/core_ffi.rb', line 3052 attach_function :const_mul, :LLVMConstMul, [:pointer, :pointer], :pointer |
.const_named_struct(struct_ty, constant_vals, count) ⇒ FFI::Pointer(ValueRef)
Create a non-anonymous ConstantStruct from values.
2897 |
# File 'lib/llvm/core_ffi.rb', line 2897 attach_function :const_named_struct, :LLVMConstNamedStruct, [:pointer, :pointer, :uint], :pointer |
.const_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2957 |
# File 'lib/llvm/core_ffi.rb', line 2957 attach_function :const_neg, :LLVMConstNeg, [:pointer], :pointer |
.const_not(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2989 |
# File 'lib/llvm/core_ffi.rb', line 2989 attach_function :const_not, :LLVMConstNot, [:pointer], :pointer |
.const_nsw_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3007 |
# File 'lib/llvm/core_ffi.rb', line 3007 attach_function :const_nsw_add, :LLVMConstNSWAdd, [:pointer, :pointer], :pointer |
.const_nsw_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3061 |
# File 'lib/llvm/core_ffi.rb', line 3061 attach_function :const_nsw_mul, :LLVMConstNSWMul, [:pointer, :pointer], :pointer |
.const_nsw_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2965 |
# File 'lib/llvm/core_ffi.rb', line 2965 attach_function :const_nsw_neg, :LLVMConstNSWNeg, [:pointer], :pointer |
.const_nsw_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3034 |
# File 'lib/llvm/core_ffi.rb', line 3034 attach_function :const_nsw_sub, :LLVMConstNSWSub, [:pointer, :pointer], :pointer |
.const_null(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to the null instance of a type.
2630 |
# File 'lib/llvm/core_ffi.rb', line 2630 attach_function :const_null, :LLVMConstNull, [:pointer], :pointer |
.const_nuw_add(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3016 |
# File 'lib/llvm/core_ffi.rb', line 3016 attach_function :const_nuw_add, :LLVMConstNUWAdd, [:pointer, :pointer], :pointer |
.const_nuw_mul(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3070 |
# File 'lib/llvm/core_ffi.rb', line 3070 attach_function :const_nuw_mul, :LLVMConstNUWMul, [:pointer, :pointer], :pointer |
.const_nuw_neg(constant_val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2973 |
# File 'lib/llvm/core_ffi.rb', line 2973 attach_function :const_nuw_neg, :LLVMConstNUWNeg, [:pointer], :pointer |
.const_nuw_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3043 |
# File 'lib/llvm/core_ffi.rb', line 3043 attach_function :const_nuw_sub, :LLVMConstNUWSub, [:pointer, :pointer], :pointer |
.const_or(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3088 |
# File 'lib/llvm/core_ffi.rb', line 3088 attach_function :const_or, :LLVMConstOr, [:pointer, :pointer], :pointer |
.const_pointer_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3317 |
# File 'lib/llvm/core_ffi.rb', line 3317 attach_function :const_pointer_cast, :LLVMConstPointerCast, [:pointer, :pointer], :pointer |
.const_pointer_null(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant that is a constant pointer pointing to NULL for a specified type.
2672 |
# File 'lib/llvm/core_ffi.rb', line 2672 attach_function :const_pointer_null, :LLVMConstPointerNull, [:pointer], :pointer |
.const_ptr_to_int(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3254 |
# File 'lib/llvm/core_ffi.rb', line 3254 attach_function :const_ptr_to_int, :LLVMConstPtrToInt, [:pointer, :pointer], :pointer |
.const_real(real_ty, n) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to a double floating point value.
2741 |
# File 'lib/llvm/core_ffi.rb', line 2741 attach_function :const_real, :LLVMConstReal, [:pointer, :double], :pointer |
.const_real_get_double(constant_val, loses_info) ⇒ Float
Obtain the double value for an floating point constant value. losesInfo indicates if some precision was lost in the conversion.
2795 |
# File 'lib/llvm/core_ffi.rb', line 2795 attach_function :const_real_get_double, :LLVMConstRealGetDouble, [:pointer, :pointer], :double |
.const_real_of_string(real_ty, text) ⇒ FFI::Pointer(ValueRef)
Obtain a constant for a floating point value parsed from a string.
A similar API, LLVMConstRealOfStringAndSize is also available. It should be used if the input string’s length is known.
2753 |
# File 'lib/llvm/core_ffi.rb', line 2753 attach_function :const_real_of_string, :LLVMConstRealOfString, [:pointer, :string], :pointer |
.const_real_of_string_and_size(real_ty, text, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a constant for a floating point value parsed from a string.
2763 |
# File 'lib/llvm/core_ffi.rb', line 2763 attach_function :const_real_of_string_and_size, :LLVMConstRealOfStringAndSize, [:pointer, :string, :uint], :pointer |
.const_s_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3182 |
# File 'lib/llvm/core_ffi.rb', line 3182 attach_function :const_s_ext, :LLVMConstSExt, [:pointer, :pointer], :pointer |
.const_s_ext_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3299 |
# File 'lib/llvm/core_ffi.rb', line 3299 attach_function :const_s_ext_or_bit_cast, :LLVMConstSExtOrBitCast, [:pointer, :pointer], :pointer |
.const_select(constant_condition, constant_if_true, constant_if_false) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3346 |
# File 'lib/llvm/core_ffi.rb', line 3346 attach_function :const_select, :LLVMConstSelect, [:pointer, :pointer, :pointer], :pointer |
.const_shl(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3126 |
# File 'lib/llvm/core_ffi.rb', line 3126 attach_function :const_shl, :LLVMConstShl, [:pointer, :pointer], :pointer |
.const_shuffle_vector(vector_a_constant, vector_b_constant, mask_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3375 |
# File 'lib/llvm/core_ffi.rb', line 3375 attach_function :const_shuffle_vector, :LLVMConstShuffleVector, [:pointer, :pointer, :pointer], :pointer |
.const_si_to_fp(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3227 |
# File 'lib/llvm/core_ffi.rb', line 3227 attach_function :const_si_to_fp, :LLVMConstSIToFP, [:pointer, :pointer], :pointer |
.const_string(str, length, dont_null_terminate) ⇒ FFI::Pointer(ValueRef)
Create a ConstantDataSequential with string content in the global context.
This is the same as LLVMConstStringInContext except it operates on the global context.
2824 |
# File 'lib/llvm/core_ffi.rb', line 2824 attach_function :const_string, :LLVMConstString, [:string, :uint, :int], :pointer |
.const_string_in_context(c, str, length, dont_null_terminate) ⇒ FFI::Pointer(ValueRef)
Create a ConstantDataSequential and initialize it with a string.
2808 |
# File 'lib/llvm/core_ffi.rb', line 2808 attach_function :const_string_in_context, :LLVMConstStringInContext, [:pointer, :string, :uint, :int], :pointer |
.const_struct(constant_vals, count, packed) ⇒ FFI::Pointer(ValueRef)
Create a ConstantStruct in the global Context.
This is the same as LLVMConstStructInContext except it operates on the global Context.
2873 |
# File 'lib/llvm/core_ffi.rb', line 2873 attach_function :const_struct, :LLVMConstStruct, [:pointer, :uint, :int], :pointer |
.const_struct_in_context(c, constant_vals, count, packed) ⇒ FFI::Pointer(ValueRef)
Create an anonymous ConstantStruct with the specified values.
2858 |
# File 'lib/llvm/core_ffi.rb', line 2858 attach_function :const_struct_in_context, :LLVMConstStructInContext, [:pointer, :pointer, :uint, :int], :pointer |
.const_sub(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3025 |
# File 'lib/llvm/core_ffi.rb', line 3025 attach_function :const_sub, :LLVMConstSub, [:pointer, :pointer], :pointer |
.const_trunc(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3173 |
# File 'lib/llvm/core_ffi.rb', line 3173 attach_function :const_trunc, :LLVMConstTrunc, [:pointer, :pointer], :pointer |
.const_trunc_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3308 |
# File 'lib/llvm/core_ffi.rb', line 3308 attach_function :const_trunc_or_bit_cast, :LLVMConstTruncOrBitCast, [:pointer, :pointer], :pointer |
.const_ui_to_fp(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3218 |
# File 'lib/llvm/core_ffi.rb', line 3218 attach_function :const_ui_to_fp, :LLVMConstUIToFP, [:pointer, :pointer], :pointer |
.const_vector(scalar_constant_vals, size) ⇒ FFI::Pointer(ValueRef)
Create a ConstantVector from values.
2919 |
# File 'lib/llvm/core_ffi.rb', line 2919 attach_function :const_vector, :LLVMConstVector, [:pointer, :uint], :pointer |
.const_xor(lhs_constant, rhs_constant) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3097 |
# File 'lib/llvm/core_ffi.rb', line 3097 attach_function :const_xor, :LLVMConstXor, [:pointer, :pointer], :pointer |
.const_z_ext(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3191 |
# File 'lib/llvm/core_ffi.rb', line 3191 attach_function :const_z_ext, :LLVMConstZExt, [:pointer, :pointer], :pointer |
.const_z_ext_or_bit_cast(constant_val, to_type) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3290 |
# File 'lib/llvm/core_ffi.rb', line 3290 attach_function :const_z_ext_or_bit_cast, :LLVMConstZExtOrBitCast, [:pointer, :pointer], :pointer |
.context_create ⇒ FFI::Pointer(ContextRef)
Create a new context.
Every call to this function should be paired with a call to LLVMContextDispose() or the context will leak memory.
896 |
# File 'lib/llvm/core_ffi.rb', line 896 attach_function :context_create, :LLVMContextCreate, [], :pointer |
.context_dispose(c) ⇒ nil
Destroy a context instance.
This should be called for every call to LLVMContextCreate() or memory will be leaked.
936 |
# File 'lib/llvm/core_ffi.rb', line 936 attach_function :context_dispose, :LLVMContextDispose, [:pointer], :void |
.context_set_diagnostic_handler(c, handler, diagnostic_context) ⇒ nil
Set the diagnostic handler for this context.
913 |
# File 'lib/llvm/core_ffi.rb', line 913 attach_function :context_set_diagnostic_handler, :LLVMContextSetDiagnosticHandler, [:pointer, :diagnostic_handler, :pointer], :void |
.context_set_yield_callback(c, callback, opaque_handle) ⇒ nil
Set the yield callback function for this context.
925 |
# File 'lib/llvm/core_ffi.rb', line 925 attach_function :context_set_yield_callback, :LLVMContextSetYieldCallback, [:pointer, :yield_callback, :pointer], :void |
.copy_string_rep_of_target_data(td) ⇒ String
(Not documented)
161 |
# File 'lib/llvm/target_ffi.rb', line 161 attach_function :copy_string_rep_of_target_data, :LLVMCopyStringRepOfTargetData, [OpaqueTargetData], :string |
.count_basic_blocks(fn) ⇒ Integer
Obtain the number of basic blocks in a function.
4061 |
# File 'lib/llvm/core_ffi.rb', line 4061 attach_function :count_basic_blocks, :LLVMCountBasicBlocks, [:pointer], :uint |
.count_incoming(phi_node) ⇒ Integer
Obtain the number of incoming basic blocks to a PHI node.
4531 |
# File 'lib/llvm/core_ffi.rb', line 4531 attach_function :count_incoming, :LLVMCountIncoming, [:pointer], :uint |
.count_param_types(function_ty) ⇒ Integer
Obtain the number of parameters this function accepts.
1536 |
# File 'lib/llvm/core_ffi.rb', line 1536 attach_function :count_param_types, :LLVMCountParamTypes, [:pointer], :uint |
.count_params(fn) ⇒ Integer
Obtain the number of parameters in a function.
3817 |
# File 'lib/llvm/core_ffi.rb', line 3817 attach_function :count_params, :LLVMCountParams, [:pointer], :uint |
.count_struct_element_types(struct_ty) ⇒ Integer
Get the number of elements defined inside the structure.
1625 |
# File 'lib/llvm/core_ffi.rb', line 1625 attach_function :count_struct_element_types, :LLVMCountStructElementTypes, [:pointer], :uint |
.create_builder ⇒ FFI::Pointer(BuilderRef)
(Not documented)
4569 |
# File 'lib/llvm/core_ffi.rb', line 4569 attach_function :create_builder, :LLVMCreateBuilder, [], :pointer |
.create_builder_in_context(c) ⇒ FFI::Pointer(BuilderRef)
An instruction builder represents a point within a basic block and is the exclusive means of building instructions using the C interface.
@{
4562 |
# File 'lib/llvm/core_ffi.rb', line 4562 attach_function :create_builder_in_context, :LLVMCreateBuilderInContext, [:pointer], :pointer |
.create_execution_engine_for_module(out_ee, m, out_error) ⇒ Integer
– Operations on execution engines ———————————–===
145 |
# File 'lib/llvm/execution_engine_ffi.rb', line 145 attach_function :create_execution_engine_for_module, :LLVMCreateExecutionEngineForModule, [:pointer, :pointer, :pointer], :int |
.create_function_pass_manager(mp) ⇒ FFI::Pointer(PassManagerRef)
Deprecated: Use LLVMCreateFunctionPassManagerForModule instead.
5833 |
# File 'lib/llvm/core_ffi.rb', line 5833 attach_function :create_function_pass_manager, :LLVMCreateFunctionPassManager, [:pointer], :pointer |
.create_function_pass_manager_for_module(m) ⇒ FFI::Pointer(PassManagerRef)
Constructs a new function-by-function pass pipeline over the module
provider. It does not take ownership of the module provider. This type of
pipeline is suitable for code generation and JIT compilation tasks.
@see llvm::FunctionPassManager::FunctionPassManager
5825 |
# File 'lib/llvm/core_ffi.rb', line 5825 attach_function :create_function_pass_manager_for_module, :LLVMCreateFunctionPassManagerForModule, [:pointer], :pointer |
.create_generic_value_of_float(ty, n) ⇒ OpaqueGenericValue
(Not documented)
93 |
# File 'lib/llvm/execution_engine_ffi.rb', line 93 attach_function :create_generic_value_of_float, :LLVMCreateGenericValueOfFloat, [:pointer, :double], OpaqueGenericValue |
.create_generic_value_of_int(ty, n, is_signed) ⇒ OpaqueGenericValue
– Operations on generic values ————————————–===
76 |
# File 'lib/llvm/execution_engine_ffi.rb', line 76 attach_function :create_generic_value_of_int, :LLVMCreateGenericValueOfInt, [:pointer, :ulong_long, :int], OpaqueGenericValue |
.create_generic_value_of_pointer(p) ⇒ OpaqueGenericValue
(Not documented)
84 |
# File 'lib/llvm/execution_engine_ffi.rb', line 84 attach_function :create_generic_value_of_pointer, :LLVMCreateGenericValueOfPointer, [:pointer], OpaqueGenericValue |
.create_interpreter_for_module(out_interp, m, out_error) ⇒ Integer
(Not documented)
155 |
# File 'lib/llvm/execution_engine_ffi.rb', line 155 attach_function :create_interpreter_for_module, :LLVMCreateInterpreterForModule, [:pointer, :pointer, :pointer], :int |
.create_jit_compiler_for_module(out_jit, m, opt_level, out_error) ⇒ Integer
(Not documented)
166 |
# File 'lib/llvm/execution_engine_ffi.rb', line 166 attach_function :create_jit_compiler_for_module, :LLVMCreateJITCompilerForModule, [:pointer, :pointer, :uint, :pointer], :int |
.create_mcjit_compiler_for_module(out_jit, m, options, size_of_options, out_error) ⇒ Integer
Create an MCJIT execution engine for a module, with the given options. It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
201 |
# File 'lib/llvm/execution_engine_ffi.rb', line 201 attach_function :create_mcjit_compiler_for_module, :LLVMCreateMCJITCompilerForModule, [:pointer, :pointer, MCJITCompilerOptions, :ulong, :pointer], :int |
.create_memory_buffer_with_contents_of_file(path, out_mem_buf, out_message) ⇒ Integer
@{
5743 |
# File 'lib/llvm/core_ffi.rb', line 5743 attach_function :create_memory_buffer_with_contents_of_file, :LLVMCreateMemoryBufferWithContentsOfFile, [:string, :pointer, :pointer], :int |
.create_memory_buffer_with_memory_range(input_data, input_data_length, buffer_name, requires_null_terminator) ⇒ FFI::Pointer(MemoryBufferRef)
(Not documented)
5763 |
# File 'lib/llvm/core_ffi.rb', line 5763 attach_function :create_memory_buffer_with_memory_range, :LLVMCreateMemoryBufferWithMemoryRange, [:string, :ulong, :string, :int], :pointer |
.create_memory_buffer_with_memory_range_copy(input_data, input_data_length, buffer_name) ⇒ FFI::Pointer(MemoryBufferRef)
(Not documented)
5773 |
# File 'lib/llvm/core_ffi.rb', line 5773 attach_function :create_memory_buffer_with_memory_range_copy, :LLVMCreateMemoryBufferWithMemoryRangeCopy, [:string, :ulong, :string], :pointer |
.create_memory_buffer_with_stdin(out_mem_buf, out_message) ⇒ Integer
(Not documented)
5752 |
# File 'lib/llvm/core_ffi.rb', line 5752 attach_function :create_memory_buffer_with_stdin, :LLVMCreateMemoryBufferWithSTDIN, [:pointer, :pointer], :int |
.create_message(message) ⇒ String
– Error handling —————————————————-===
848 |
# File 'lib/llvm/core_ffi.rb', line 848 attach_function :create_message, :LLVMCreateMessage, [:string], :string |
.create_module_provider_for_existing_module(m) ⇒ FFI::Pointer(ModuleProviderRef)
Changes the type of M so it can be passed to FunctionPassManagers and the JIT. They take ModuleProviders for historical reasons.
5723 |
# File 'lib/llvm/core_ffi.rb', line 5723 attach_function :create_module_provider_for_existing_module, :LLVMCreateModuleProviderForExistingModule, [:pointer], :pointer |
.create_pass_manager ⇒ FFI::Pointer(PassManagerRef)
Constructs a new whole-module pass pipeline. This type of pipeline is
suitable for link-time optimization and whole-module transformations.
@see llvm::PassManager::PassManager
5814 |
# File 'lib/llvm/core_ffi.rb', line 5814 attach_function :create_pass_manager, :LLVMCreatePassManager, [], :pointer |
.create_simple_mcjit_memory_manager(opaque, allocate_code_section, allocate_data_section, finalize_memory, destroy) ⇒ OpaqueMCJITMemoryManager
Create a simple custom MCJIT memory manager. This memory manager can intercept allocations in a module-oblivious way. This will return NULL if any of the passed functions are NULL.
412 |
# File 'lib/llvm/execution_engine_ffi.rb', line 412 attach_function :create_simple_mcjit_memory_manager, :LLVMCreateSimpleMCJITMemoryManager, [:pointer, :memory_manager_allocate_code_section_callback, :memory_manager_allocate_data_section_callback, :memory_manager_finalize_memory_callback, :pointer], OpaqueMCJITMemoryManager |
.create_target_data(string_rep) ⇒ OpaqueTargetData
(Not documented)
136 |
# File 'lib/llvm/target_ffi.rb', line 136 attach_function :create_target_data, :LLVMCreateTargetData, [:string], OpaqueTargetData |
.create_target_data_layout(t) ⇒ OpaqueTargetData
Create a DataLayout based on the targetMachine.
574 |
# File 'lib/llvm/target_ffi.rb', line 574 attach_function :create_target_data_layout, :LLVMCreateTargetDataLayout, [OpaqueTargetMachine], OpaqueTargetData |
.create_target_machine(t, triple, cpu, features, level, reloc, code_model) ⇒ OpaqueTargetMachine
Creates a new llvm::TargetMachine. See llvm::Target::createTargetMachine
519 |
# File 'lib/llvm/target_ffi.rb', line 519 attach_function :create_target_machine, :LLVMCreateTargetMachine, [Target, :string, :string, :string, :code_gen_opt_level, :reloc_mode, :code_model], OpaqueTargetMachine |
.delete_basic_block(bb) ⇒ nil
Remove a basic block from a function and delete it.
This deletes the basic block from its containing function and deletes the basic block itself.
4188 |
# File 'lib/llvm/core_ffi.rb', line 4188 attach_function :delete_basic_block, :LLVMDeleteBasicBlock, [:pointer], :void |
.delete_function(fn) ⇒ nil
Remove a function from its containing module and deletes it.
3717 |
# File 'lib/llvm/core_ffi.rb', line 3717 attach_function :delete_function, :LLVMDeleteFunction, [:pointer], :void |
.delete_global(global_var) ⇒ nil
(Not documented)
3605 |
# File 'lib/llvm/core_ffi.rb', line 3605 attach_function :delete_global, :LLVMDeleteGlobal, [:pointer], :void |
.dispose_builder(builder) ⇒ nil
(Not documented)
4640 |
# File 'lib/llvm/core_ffi.rb', line 4640 attach_function :dispose_builder, :LLVMDisposeBuilder, [:pointer], :void |
.dispose_execution_engine(ee) ⇒ nil
(Not documented)
209 |
# File 'lib/llvm/execution_engine_ffi.rb', line 209 attach_function :dispose_execution_engine, :LLVMDisposeExecutionEngine, [OpaqueExecutionEngine], :void |
.dispose_generic_value(gen_val) ⇒ nil
(Not documented)
135 |
# File 'lib/llvm/execution_engine_ffi.rb', line 135 attach_function :dispose_generic_value, :LLVMDisposeGenericValue, [OpaqueGenericValue], :void |
.dispose_mcjit_memory_manager(mm) ⇒ nil
(Not documented)
420 |
# File 'lib/llvm/execution_engine_ffi.rb', line 420 attach_function :dispose_mcjit_memory_manager, :LLVMDisposeMCJITMemoryManager, [OpaqueMCJITMemoryManager], :void |
.dispose_memory_buffer(mem_buf) ⇒ nil
(Not documented)
5797 |
# File 'lib/llvm/core_ffi.rb', line 5797 attach_function :dispose_memory_buffer, :LLVMDisposeMemoryBuffer, [:pointer], :void |
.dispose_message(message) ⇒ nil
(Not documented)
856 |
# File 'lib/llvm/core_ffi.rb', line 856 attach_function :dispose_message, :LLVMDisposeMessage, [:string], :void |
.dispose_module(m) ⇒ nil
Destroy a module instance.
This must be called for every created module or memory will be leaked.
1021 |
# File 'lib/llvm/core_ffi.rb', line 1021 attach_function :dispose_module, :LLVMDisposeModule, [:pointer], :void |
.dispose_module_provider(m) ⇒ nil
Destroys the module M.
5731 |
# File 'lib/llvm/core_ffi.rb', line 5731 attach_function :dispose_module_provider, :LLVMDisposeModuleProvider, [:pointer], :void |
.dispose_pass_manager(pm) ⇒ nil
Frees the memory of a pass pipeline. For function pipelines, does not free
the module provider.
@see llvm::PassManagerBase::~PassManagerBase.
5887 |
# File 'lib/llvm/core_ffi.rb', line 5887 attach_function :dispose_pass_manager, :LLVMDisposePassManager, [:pointer], :void |
.dispose_target_data(td) ⇒ nil
(Not documented)
144 |
# File 'lib/llvm/target_ffi.rb', line 144 attach_function :dispose_target_data, :LLVMDisposeTargetData, [OpaqueTargetData], :void |
.dispose_target_machine(t) ⇒ nil
Dispose the LLVMTargetMachineRef instance generated by
LLVMCreateTargetMachine.
528 |
# File 'lib/llvm/target_ffi.rb', line 528 attach_function :dispose_target_machine, :LLVMDisposeTargetMachine, [OpaqueTargetMachine], :void |
.double_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1477 |
# File 'lib/llvm/core_ffi.rb', line 1477 attach_function :double_type, :LLVMDoubleType, [], :pointer |
.double_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 64-bit floating point type from a context.
1429 |
# File 'lib/llvm/core_ffi.rb', line 1429 attach_function :double_type_in_context, :LLVMDoubleTypeInContext, [:pointer], :pointer |
.dump_module(m) ⇒ nil
Dump a representation of a module to stderr.
1073 |
# File 'lib/llvm/core_ffi.rb', line 1073 attach_function :dump_module, :LLVMDumpModule, [:pointer], :void |
.dump_type(val) ⇒ nil
Dump a representation of a type to stderr.
1278 |
# File 'lib/llvm/core_ffi.rb', line 1278 attach_function :dump_type, :LLVMDumpType, [:pointer], :void |
.dump_value(val) ⇒ nil
Dump a representation of a value to stderr.
1850 |
# File 'lib/llvm/core_ffi.rb', line 1850 attach_function :dump_value, :LLVMDumpValue, [:pointer], :void |
.element_at_offset(td, struct_ty, offset) ⇒ Integer
(Not documented)
295 |
# File 'lib/llvm/target_ffi.rb', line 295 attach_function :element_at_offset, :LLVMElementAtOffset, [OpaqueTargetData, :pointer, :ulong_long], :uint |
.finalize_function_pass_manager(fpm) ⇒ Integer
Finalizes all of the function passes scheduled in in the function pass
manager. Returns 1 if any of the passes modified the module, 0 otherwise.
@see llvm::FunctionPassManager::doFinalization
5877 |
# File 'lib/llvm/core_ffi.rb', line 5877 attach_function :finalize_function_pass_manager, :LLVMFinalizeFunctionPassManager, [:pointer], :int |
.find_function(ee, name, out_fn) ⇒ Integer
(Not documented)
287 |
# File 'lib/llvm/execution_engine_ffi.rb', line 287 attach_function :find_function, :LLVMFindFunction, [OpaqueExecutionEngine, :string, :pointer], :int |
.float_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1470 |
# File 'lib/llvm/core_ffi.rb', line 1470 attach_function :float_type, :LLVMFloatType, [], :pointer |
.float_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 32-bit floating point type from a context.
1421 |
# File 'lib/llvm/core_ffi.rb', line 1421 attach_function :float_type_in_context, :LLVMFloatTypeInContext, [:pointer], :pointer |
.fp128_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1491 |
# File 'lib/llvm/core_ffi.rb', line 1491 attach_function :fp128_type, :LLVMFP128Type, [], :pointer |
.fp128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 128-bit floating point type (112-bit mantissa) from a context.
1446 |
# File 'lib/llvm/core_ffi.rb', line 1446 attach_function :fp128_type_in_context, :LLVMFP128TypeInContext, [:pointer], :pointer |
.free_machine_code_for_function(ee, f) ⇒ nil
(Not documented)
257 |
# File 'lib/llvm/execution_engine_ffi.rb', line 257 attach_function :free_machine_code_for_function, :LLVMFreeMachineCodeForFunction, [OpaqueExecutionEngine, :pointer], :void |
.function_type(return_type, param_types, param_count, is_var_arg) ⇒ FFI::Pointer(TypeRef)
Obtain a function type consisting of a specified signature.
The function is defined as a tuple of a return Type, a list of parameter types, and whether the function is variadic.
1512 |
# File 'lib/llvm/core_ffi.rb', line 1512 attach_function :function_type, :LLVMFunctionType, [:pointer, :pointer, :uint, :int], :pointer |
.generic_value_int_width(gen_val_ref) ⇒ Integer
(Not documented)
101 |
# File 'lib/llvm/execution_engine_ffi.rb', line 101 attach_function :generic_value_int_width, :LLVMGenericValueIntWidth, [OpaqueGenericValue], :uint |
.generic_value_to_float(ty_ref, gen_val) ⇒ Float
(Not documented)
127 |
# File 'lib/llvm/execution_engine_ffi.rb', line 127 attach_function :generic_value_to_float, :LLVMGenericValueToFloat, [:pointer, OpaqueGenericValue], :double |
.generic_value_to_int(gen_val, is_signed) ⇒ Integer
(Not documented)
110 |
# File 'lib/llvm/execution_engine_ffi.rb', line 110 attach_function :generic_value_to_int, :LLVMGenericValueToInt, [OpaqueGenericValue, :int], :ulong_long |
.generic_value_to_pointer(gen_val) ⇒ FFI::Pointer(*Void)
(Not documented)
118 |
# File 'lib/llvm/execution_engine_ffi.rb', line 118 attach_function :generic_value_to_pointer, :LLVMGenericValueToPointer, [OpaqueGenericValue], :pointer |
.get_alignment(v) ⇒ Integer
Obtain the preferred alignment of the value.
3516 |
# File 'lib/llvm/core_ffi.rb', line 3516 attach_function :get_alignment, :LLVMGetAlignment, [:pointer], :uint |
.get_array_length(array_ty) ⇒ Integer
Obtain the length of an array type.
This only works on types that represent arrays.
1710 |
# File 'lib/llvm/core_ffi.rb', line 1710 attach_function :get_array_length, :LLVMGetArrayLength, [:pointer], :uint |
.get_as_string(c, out) ⇒ String
Get the given constant data sequential as a string.
2845 |
# File 'lib/llvm/core_ffi.rb', line 2845 attach_function :get_as_string, :LLVMGetAsString, [:pointer, :pointer], :string |
.get_basic_block_parent(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the function to which a basic block belongs.
4036 |
# File 'lib/llvm/core_ffi.rb', line 4036 attach_function :get_basic_block_parent, :LLVMGetBasicBlockParent, [:pointer], :pointer |
.get_basic_block_terminator(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the terminator instruction for a basic block.
If the basic block does not have a terminator (it is not well-formed if it doesn’t), then NULL is returned.
The returned LLVMValueRef corresponds to a llvm::TerminatorInst.
4051 |
# File 'lib/llvm/core_ffi.rb', line 4051 attach_function :get_basic_block_terminator, :LLVMGetBasicBlockTerminator, [:pointer], :pointer |
.get_basic_blocks(fn, basic_blocks) ⇒ nil
Obtain all of the basic blocks in a function.
This operates on a function value. The BasicBlocks parameter is a pointer to a pre-allocated array of LLVMBasicBlockRef of at least LLVMCountBasicBlocks() in length. This array is populated with LLVMBasicBlockRef instances.
4075 |
# File 'lib/llvm/core_ffi.rb', line 4075 attach_function :get_basic_blocks, :LLVMGetBasicBlocks, [:pointer, :pointer], :void |
.get_bitcode_module(mem_buf, out_m, out_message) ⇒ Integer
(Not documented)
84 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 84 attach_function :get_bitcode_module, :LLVMGetBitcodeModule, [:pointer, :pointer, :pointer], :int |
.get_bitcode_module2(mem_buf, out_m) ⇒ Integer
(Not documented)
93 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 93 attach_function :get_bitcode_module2, :LLVMGetBitcodeModule2, [:pointer, :pointer], :int |
.get_bitcode_module_in_context(context_ref, mem_buf, out_m, out_message) ⇒ Integer
(Not documented)
64 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 64 attach_function :get_bitcode_module_in_context, :LLVMGetBitcodeModuleInContext, [:pointer, :pointer, :pointer, :pointer], :int |
.get_bitcode_module_in_context2(context_ref, mem_buf, out_m) ⇒ Integer
(Not documented)
74 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 74 attach_function :get_bitcode_module_in_context2, :LLVMGetBitcodeModuleInContext2, [:pointer, :pointer, :pointer], :int |
.get_buffer_size(mem_buf) ⇒ Integer
(Not documented)
5789 |
# File 'lib/llvm/core_ffi.rb', line 5789 attach_function :get_buffer_size, :LLVMGetBufferSize, [:pointer], :ulong |
.get_buffer_start(mem_buf) ⇒ String
(Not documented)
5781 |
# File 'lib/llvm/core_ffi.rb', line 5781 attach_function :get_buffer_start, :LLVMGetBufferStart, [:pointer], :string |
.get_condition(branch) ⇒ FFI::Pointer(ValueRef)
Return the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
4487 |
# File 'lib/llvm/core_ffi.rb', line 4487 attach_function :get_condition, :LLVMGetCondition, [:pointer], :pointer |
.get_const_opcode(constant_val) ⇒ Symbol from _enum_opcode_
Functions in this group correspond to APIs on llvm::ConstantExpr.
@{
2933 |
# File 'lib/llvm/core_ffi.rb', line 2933 attach_function :get_const_opcode, :LLVMGetConstOpcode, [:pointer], :opcode |
.get_current_debug_location(builder) ⇒ FFI::Pointer(ValueRef)
(Not documented)
4657 |
# File 'lib/llvm/core_ffi.rb', line 4657 attach_function :get_current_debug_location, :LLVMGetCurrentDebugLocation, [:pointer], :pointer |
.get_data_layout(m) ⇒ String
Obtain the data layout for a module.
1031 |
# File 'lib/llvm/core_ffi.rb', line 1031 attach_function :get_data_layout, :LLVMGetDataLayout, [:pointer], :string |
.get_default_target_triple ⇒ String
Get a triple for the host machine as a string. The result needs to be
disposed with LLVMDisposeMessage.
617 |
# File 'lib/llvm/target_ffi.rb', line 617 attach_function :get_default_target_triple, :LLVMGetDefaultTargetTriple, [], :string |
.get_diag_info_description(di) ⇒ String
Return a string representation of the DiagnosticInfo. Use LLVMDisposeMessage to free the string.
947 |
# File 'lib/llvm/core_ffi.rb', line 947 attach_function :get_diag_info_description, :LLVMGetDiagInfoDescription, [:pointer], :string |
.get_diag_info_severity(di) ⇒ Symbol from _enum_diagnostic_severity_
Return an enum LLVMDiagnosticSeverity.
957 |
# File 'lib/llvm/core_ffi.rb', line 957 attach_function :get_diag_info_severity, :LLVMGetDiagInfoSeverity, [:pointer], :diagnostic_severity |
.get_dll_storage_class(global) ⇒ Symbol from _enum_dll_storage_class_
(Not documented)
3478 |
# File 'lib/llvm/core_ffi.rb', line 3478 attach_function :get_dll_storage_class, :LLVMGetDLLStorageClass, [:pointer], :dll_storage_class |
.get_element_as_constant(c, idx) ⇒ FFI::Pointer(ValueRef)
Get an element at specified index as a constant.
2908 |
# File 'lib/llvm/core_ffi.rb', line 2908 attach_function :get_element_as_constant, :LLVMGetElementAsConstant, [:pointer, :uint], :pointer |
.get_element_type(ty) ⇒ FFI::Pointer(TypeRef)
Obtain the type of elements within a sequential type.
This works on array, vector, and pointer types.
1684 |
# File 'lib/llvm/core_ffi.rb', line 1684 attach_function :get_element_type, :LLVMGetElementType, [:pointer], :pointer |
.get_entry_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the basic block that corresponds to the entry point of a function.
4125 |
# File 'lib/llvm/core_ffi.rb', line 4125 attach_function :get_entry_basic_block, :LLVMGetEntryBasicBlock, [:pointer], :pointer |
.get_execution_engine_target_data(ee) ⇒ FFI::Pointer(TargetDataRef)
(Not documented)
304 |
# File 'lib/llvm/execution_engine_ffi.rb', line 304 attach_function :get_execution_engine_target_data, :LLVMGetExecutionEngineTargetData, [OpaqueExecutionEngine], :pointer |
.get_execution_engine_target_machine(ee) ⇒ FFI::Pointer(TargetMachineRef)
(Not documented)
312 |
# File 'lib/llvm/execution_engine_ffi.rb', line 312 attach_function :get_execution_engine_target_machine, :LLVMGetExecutionEngineTargetMachine, [OpaqueExecutionEngine], :pointer |
.get_f_cmp_predicate(inst) ⇒ Symbol from _enum_real_predicate_
Obtain the float predicate of an instruction.
This is only valid for instructions that correspond to llvm::FCmpInst or llvm::ConstantExpr whose opcode is llvm::Instruction::FCmp.
4354 |
# File 'lib/llvm/core_ffi.rb', line 4354 attach_function :get_f_cmp_predicate, :LLVMGetFCmpPredicate, [:pointer], :real_predicate |
.get_first_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the first basic block in a function.
The returned basic block can be used as an iterator. You will likely eventually call into LLVMGetNextBasicBlock() with it.
4088 |
# File 'lib/llvm/core_ffi.rb', line 4088 attach_function :get_first_basic_block, :LLVMGetFirstBasicBlock, [:pointer], :pointer |
.get_first_function(m) ⇒ FFI::Pointer(ValueRef)
Obtain an iterator to the first Function in a Module.
1204 |
# File 'lib/llvm/core_ffi.rb', line 1204 attach_function :get_first_function, :LLVMGetFirstFunction, [:pointer], :pointer |
.get_first_global(m) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3573 |
# File 'lib/llvm/core_ffi.rb', line 3573 attach_function :get_first_global, :LLVMGetFirstGlobal, [:pointer], :pointer |
.get_first_instruction(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the first instruction in a basic block.
The returned LLVMValueRef corresponds to a llvm::Instruction instance.
4234 |
# File 'lib/llvm/core_ffi.rb', line 4234 attach_function :get_first_instruction, :LLVMGetFirstInstruction, [:pointer], :pointer |
.get_first_param(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the first parameter to a function.
3871 |
# File 'lib/llvm/core_ffi.rb', line 3871 attach_function :get_first_param, :LLVMGetFirstParam, [:pointer], :pointer |
.get_first_target ⇒ Target
Returns the first llvm::Target in the registered targets list.
436 |
# File 'lib/llvm/target_ffi.rb', line 436 attach_function :get_first_target, :LLVMGetFirstTarget, [], Target |
.get_first_use(val) ⇒ FFI::Pointer(UseRef)
Obtain the first use of a value.
Uses are obtained in an iterator fashion. First, call this function to obtain a reference to the first use. Then, call LLVMGetNextUse() on that instance and all subsequently obtained instances until LLVMGetNextUse() returns NULL.
2543 |
# File 'lib/llvm/core_ffi.rb', line 2543 attach_function :get_first_use, :LLVMGetFirstUse, [:pointer], :pointer |
.get_function_address(ee, name) ⇒ Integer
(Not documented)
349 |
# File 'lib/llvm/execution_engine_ffi.rb', line 349 attach_function :get_function_address, :LLVMGetFunctionAddress, [OpaqueExecutionEngine, :string], :ulong |
.get_function_call_conv(fn) ⇒ Integer
Obtain the calling function of a function.
The returned value corresponds to the LLVMCallConv enumeration.
3760 |
# File 'lib/llvm/core_ffi.rb', line 3760 attach_function :get_function_call_conv, :LLVMGetFunctionCallConv, [:pointer], :uint |
.get_gc(fn) ⇒ String
Obtain the name of the garbage collector to use during code generation.
3785 |
# File 'lib/llvm/core_ffi.rb', line 3785 attach_function :get_gc, :LLVMGetGC, [:pointer], :string |
.get_global_context ⇒ FFI::Pointer(ContextRef)
Obtain the global context instance.
903 |
# File 'lib/llvm/core_ffi.rb', line 903 attach_function :get_global_context, :LLVMGetGlobalContext, [], :pointer |
.get_global_parent(global) ⇒ FFI::Pointer(ModuleRef)
This group contains functions that operate on global values. Functions in this group relate to functions in the llvm::GlobalValue class tree.
@{
3411 |
# File 'lib/llvm/core_ffi.rb', line 3411 attach_function :get_global_parent, :LLVMGetGlobalParent, [:pointer], :pointer |
.get_global_pass_registry ⇒ FFI::Pointer(PassRegistryRef)
Return the global pass registry, for use with initialization functions.
@see llvm::PassRegistry::getPassRegistry
5805 |
# File 'lib/llvm/core_ffi.rb', line 5805 attach_function :get_global_pass_registry, :LLVMGetGlobalPassRegistry, [], :pointer |
.get_global_value_address(ee, name) ⇒ Integer
(Not documented)
340 |
# File 'lib/llvm/execution_engine_ffi.rb', line 340 attach_function :get_global_value_address, :LLVMGetGlobalValueAddress, [OpaqueExecutionEngine, :string], :ulong |
.get_i_cmp_predicate(inst) ⇒ Symbol from _enum_int_predicate_
Obtain the predicate of an instruction.
This is only valid for instructions that correspond to llvm::ICmpInst or llvm::ConstantExpr whose opcode is llvm::Instruction::ICmp.
4341 |
# File 'lib/llvm/core_ffi.rb', line 4341 attach_function :get_i_cmp_predicate, :LLVMGetICmpPredicate, [:pointer], :int_predicate |
.get_incoming_block(phi_node, index) ⇒ FFI::Pointer(BasicBlockRef)
Obtain an incoming value to a PHI node as an LLVMBasicBlockRef.
4549 |
# File 'lib/llvm/core_ffi.rb', line 4549 attach_function :get_incoming_block, :LLVMGetIncomingBlock, [:pointer, :uint], :pointer |
.get_incoming_value(phi_node, index) ⇒ FFI::Pointer(ValueRef)
Obtain an incoming value to a PHI node as an LLVMValueRef.
4540 |
# File 'lib/llvm/core_ffi.rb', line 4540 attach_function :get_incoming_value, :LLVMGetIncomingValue, [:pointer, :uint], :pointer |
.get_initializer(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3613 |
# File 'lib/llvm/core_ffi.rb', line 3613 attach_function :get_initializer, :LLVMGetInitializer, [:pointer], :pointer |
.get_insert_block(builder) ⇒ FFI::Pointer(BasicBlockRef)
(Not documented)
4605 |
# File 'lib/llvm/core_ffi.rb', line 4605 attach_function :get_insert_block, :LLVMGetInsertBlock, [:pointer], :pointer |
.get_instruction_call_conv(instr) ⇒ Integer
Obtain the calling convention for a call instruction.
This is the opposite of LLVMSetInstructionCallConv(). Reads its usage.
4395 |
# File 'lib/llvm/core_ffi.rb', line 4395 attach_function :get_instruction_call_conv, :LLVMGetInstructionCallConv, [:pointer], :uint |
.get_instruction_opcode(inst) ⇒ Symbol from _enum_opcode_
Obtain the code opcode for an individual instruction.
4328 |
# File 'lib/llvm/core_ffi.rb', line 4328 attach_function :get_instruction_opcode, :LLVMGetInstructionOpcode, [:pointer], :opcode |
.get_instruction_parent(inst) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the basic block to which an instruction belongs.
4281 |
# File 'lib/llvm/core_ffi.rb', line 4281 attach_function :get_instruction_parent, :LLVMGetInstructionParent, [:pointer], :pointer |
.get_int_type_width(integer_ty) ⇒ Integer
(Not documented)
1405 |
# File 'lib/llvm/core_ffi.rb', line 1405 attach_function :get_int_type_width, :LLVMGetIntTypeWidth, [:pointer], :uint |
.get_intrinsic_id(fn) ⇒ Integer
Obtain the ID number from a function instance.
3748 |
# File 'lib/llvm/core_ffi.rb', line 3748 attach_function :get_intrinsic_id, :LLVMGetIntrinsicID, [:pointer], :uint |
.get_last_basic_block(fn) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the last basic block in a function.
4098 |
# File 'lib/llvm/core_ffi.rb', line 4098 attach_function :get_last_basic_block, :LLVMGetLastBasicBlock, [:pointer], :pointer |
.get_last_function(m) ⇒ FFI::Pointer(ValueRef)
Obtain an iterator to the last Function in a Module.
1214 |
# File 'lib/llvm/core_ffi.rb', line 1214 attach_function :get_last_function, :LLVMGetLastFunction, [:pointer], :pointer |
.get_last_global(m) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3581 |
# File 'lib/llvm/core_ffi.rb', line 3581 attach_function :get_last_global, :LLVMGetLastGlobal, [:pointer], :pointer |
.get_last_instruction(bb) ⇒ FFI::Pointer(ValueRef)
Obtain the last instruction in a basic block.
The returned LLVMValueRef corresponds to an LLVM:Instruction.
4244 |
# File 'lib/llvm/core_ffi.rb', line 4244 attach_function :get_last_instruction, :LLVMGetLastInstruction, [:pointer], :pointer |
.get_last_param(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the last parameter to a function.
3881 |
# File 'lib/llvm/core_ffi.rb', line 3881 attach_function :get_last_param, :LLVMGetLastParam, [:pointer], :pointer |
.get_linkage(global) ⇒ Symbol from _enum_linkage_
(Not documented)
3427 |
# File 'lib/llvm/core_ffi.rb', line 3427 attach_function :get_linkage, :LLVMGetLinkage, [:pointer], :linkage |
.get_md_kind_id(name, s_len) ⇒ Integer
(Not documented)
976 |
# File 'lib/llvm/core_ffi.rb', line 976 attach_function :get_md_kind_id, :LLVMGetMDKindID, [:string, :uint], :uint |
.get_md_kind_id_in_context(c, name, s_len) ⇒ Integer
(Not documented)
967 |
# File 'lib/llvm/core_ffi.rb', line 967 attach_function :get_md_kind_id_in_context, :LLVMGetMDKindIDInContext, [:pointer, :string, :uint], :uint |
.get_md_node_num_operands(v) ⇒ Object
Obtain the number of operands from an MDNode value.
3985 |
# File 'lib/llvm/core_ffi.rb', line 3985 attach_function :get_md_node_num_operands, :LLVMGetMDNodeNumOperands, [:pointer], :uint |
.get_md_node_operands(v, dest) ⇒ nil
Obtain the given MDNode’s operands.
The passed LLVMValueRef pointer should point to enough memory to hold all of the operands of the given MDNode (see LLVMGetMDNodeNumOperands) as LLVMValueRefs. This memory will be populated with the LLVMValueRefs of the MDNode’s operands.
4002 |
# File 'lib/llvm/core_ffi.rb', line 4002 attach_function :get_md_node_operands, :LLVMGetMDNodeOperands, [:pointer, :pointer], :void |
.get_md_string(v, len) ⇒ Object
Obtain the underlying string from a MDString value.
3974 |
# File 'lib/llvm/core_ffi.rb', line 3974 attach_function :get_md_string, :LLVMGetMDString, [:pointer, :pointer], :string |
.get_metadata(val, kind_id) ⇒ FFI::Pointer(ValueRef)
Return metadata associated with an instruction value.
4261 |
# File 'lib/llvm/core_ffi.rb', line 4261 attach_function :get_metadata, :LLVMGetMetadata, [:pointer, :uint], :pointer |
.get_module_context(m) ⇒ FFI::Pointer(ContextRef)
Obtain the context to which this module is associated.
1118 |
# File 'lib/llvm/core_ffi.rb', line 1118 attach_function :get_module_context, :LLVMGetModuleContext, [:pointer], :pointer |
.get_module_data_layout(m) ⇒ OpaqueTargetData
(Not documented)
119 |
# File 'lib/llvm/target_ffi.rb', line 119 attach_function :get_module_data_layout, :LLVMGetModuleDataLayout, [:pointer], OpaqueTargetData |
.get_named_function(m, name) ⇒ FFI::Pointer(ValueRef)
Obtain a Function value from a Module by its name.
The returned value corresponds to a llvm::Function value.
1194 |
# File 'lib/llvm/core_ffi.rb', line 1194 attach_function :get_named_function, :LLVMGetNamedFunction, [:pointer, :string], :pointer |
.get_named_global(m, name) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3565 |
# File 'lib/llvm/core_ffi.rb', line 3565 attach_function :get_named_global, :LLVMGetNamedGlobal, [:pointer, :string], :pointer |
.get_named_metadata_num_operands(m, name) ⇒ Integer
Obtain the number of operands for named metadata in a module.
1138 |
# File 'lib/llvm/core_ffi.rb', line 1138 attach_function :get_named_metadata_num_operands, :LLVMGetNamedMetadataNumOperands, [:pointer, :string], :uint |
.get_named_metadata_operands(m, name, dest) ⇒ nil
Obtain the named metadata operands for a module.
The passed LLVMValueRef pointer should refer to an array of LLVMValueRef at least LLVMGetNamedMetadataNumOperands long. This array will be populated with the LLVMValueRef instances. Each instance corresponds to a llvm::MDNode.
1156 |
# File 'lib/llvm/core_ffi.rb', line 1156 attach_function :get_named_metadata_operands, :LLVMGetNamedMetadataOperands, [:pointer, :string, :pointer], :void |
.get_next_basic_block(bb) ⇒ FFI::Pointer(BasicBlockRef)
Advance a basic block iterator.
4106 |
# File 'lib/llvm/core_ffi.rb', line 4106 attach_function :get_next_basic_block, :LLVMGetNextBasicBlock, [:pointer], :pointer |
.get_next_function(fn) ⇒ FFI::Pointer(ValueRef)
Advance a Function iterator to the next Function.
Returns NULL if the iterator was already at the end and there are no more functions.
1225 |
# File 'lib/llvm/core_ffi.rb', line 1225 attach_function :get_next_function, :LLVMGetNextFunction, [:pointer], :pointer |
.get_next_global(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3589 |
# File 'lib/llvm/core_ffi.rb', line 3589 attach_function :get_next_global, :LLVMGetNextGlobal, [:pointer], :pointer |
.get_next_instruction(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the instruction that occurs after the one specified.
The next instruction will be from the same basic block.
If this is the last instruction in a basic block, NULL will be returned.
4294 |
# File 'lib/llvm/core_ffi.rb', line 4294 attach_function :get_next_instruction, :LLVMGetNextInstruction, [:pointer], :pointer |
.get_next_param(arg) ⇒ FFI::Pointer(ValueRef)
Obtain the next parameter to a function.
This takes an LLVMValueRef obtained from LLVMGetFirstParam() (which is actually a wrapped iterator) and obtains the next parameter from the underlying iterator.
3893 |
# File 'lib/llvm/core_ffi.rb', line 3893 attach_function :get_next_param, :LLVMGetNextParam, [:pointer], :pointer |
.get_next_target(t) ⇒ Target
Returns the next llvm::Target given a previous one (or null if there’s none)
444 |
# File 'lib/llvm/target_ffi.rb', line 444 attach_function :get_next_target, :LLVMGetNextTarget, [Target], Target |
.get_next_use(u) ⇒ FFI::Pointer(UseRef)
Obtain the next use of a value.
This effectively advances the iterator. It returns NULL if you are on the final use and no more are available.
2554 |
# File 'lib/llvm/core_ffi.rb', line 2554 attach_function :get_next_use, :LLVMGetNextUse, [:pointer], :pointer |
.get_num_operands(val) ⇒ Integer
Obtain the number of operands in a llvm::User value.
2620 |
# File 'lib/llvm/core_ffi.rb', line 2620 attach_function :get_num_operands, :LLVMGetNumOperands, [:pointer], :int |
.get_num_successors(term) ⇒ Integer
Return the number of successors that this terminator has.
4440 |
# File 'lib/llvm/core_ffi.rb', line 4440 attach_function :get_num_successors, :LLVMGetNumSuccessors, [:pointer], :uint |
.get_operand(val, index) ⇒ FFI::Pointer(ValueRef)
Obtain an operand at a specific index in a llvm::User value.
2587 |
# File 'lib/llvm/core_ffi.rb', line 2587 attach_function :get_operand, :LLVMGetOperand, [:pointer, :uint], :pointer |
.get_operand_use(val, index) ⇒ FFI::Pointer(UseRef)
Obtain the use of an operand at a specific index in a llvm::User value.
2598 |
# File 'lib/llvm/core_ffi.rb', line 2598 attach_function :get_operand_use, :LLVMGetOperandUse, [:pointer, :uint], :pointer |
.get_ordering(memory_access_inst) ⇒ Symbol from _enum_atomic_ordering_
(Not documented)
5302 |
# File 'lib/llvm/core_ffi.rb', line 5302 attach_function :get_ordering, :LLVMGetOrdering, [:pointer], :atomic_ordering |
.get_param(fn, index) ⇒ FFI::Pointer(ValueRef)
Obtain the parameter at the specified index.
Parameters are indexed from 0.
3847 |
# File 'lib/llvm/core_ffi.rb', line 3847 attach_function :get_param, :LLVMGetParam, [:pointer, :uint], :pointer |
.get_param_parent(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the function to which this argument belongs.
Unlike other functions in this group, this one takes an LLVMValueRef that corresponds to a llvm::Attribute.
The returned LLVMValueRef is the llvm::Function to which this argument belongs.
3861 |
# File 'lib/llvm/core_ffi.rb', line 3861 attach_function :get_param_parent, :LLVMGetParamParent, [:pointer], :pointer |
.get_param_types(function_ty, dest) ⇒ nil
Obtain the types of a function’s parameters.
The Dest parameter should point to a pre-allocated array of LLVMTypeRef at least LLVMCountParamTypes() large. On return, the first LLVMCountParamTypes() entries in the array will be populated with LLVMTypeRef instances.
1553 |
# File 'lib/llvm/core_ffi.rb', line 1553 attach_function :get_param_types, :LLVMGetParamTypes, [:pointer, :pointer], :void |
.get_params(fn, params) ⇒ nil
Obtain the parameters in a function.
The takes a pointer to a pre-allocated array of LLVMValueRef that is at least LLVMCountParams() long. This array will be filled with LLVMValueRef instances which correspond to the parameters the function receives. Each LLVMValueRef corresponds to a llvm::Argument instance.
3834 |
# File 'lib/llvm/core_ffi.rb', line 3834 attach_function :get_params, :LLVMGetParams, [:pointer, :pointer], :void |
.get_personality_fn(fn) ⇒ FFI::Pointer(ValueRef)
Obtain the personality function attached to the function.
3727 |
# File 'lib/llvm/core_ffi.rb', line 3727 attach_function :get_personality_fn, :LLVMGetPersonalityFn, [:pointer], :pointer |
.get_pointer_address_space(pointer_ty) ⇒ Integer
Obtain the address space of a pointer type.
This only works on types that represent pointers.
1736 |
# File 'lib/llvm/core_ffi.rb', line 1736 attach_function :get_pointer_address_space, :LLVMGetPointerAddressSpace, [:pointer], :uint |
.get_pointer_to_global(ee, global) ⇒ FFI::Pointer(*Void)
(Not documented)
331 |
# File 'lib/llvm/execution_engine_ffi.rb', line 331 attach_function :get_pointer_to_global, :LLVMGetPointerToGlobal, [OpaqueExecutionEngine, :pointer], :pointer |
.get_previous_basic_block(bb) ⇒ FFI::Pointer(BasicBlockRef)
Go backwards in a basic block iterator.
4114 |
# File 'lib/llvm/core_ffi.rb', line 4114 attach_function :get_previous_basic_block, :LLVMGetPreviousBasicBlock, [:pointer], :pointer |
.get_previous_function(fn) ⇒ FFI::Pointer(ValueRef)
Decrement a Function iterator to the previous Function.
Returns NULL if the iterator was already at the beginning and there are no previous functions.
1236 |
# File 'lib/llvm/core_ffi.rb', line 1236 attach_function :get_previous_function, :LLVMGetPreviousFunction, [:pointer], :pointer |
.get_previous_global(global_var) ⇒ FFI::Pointer(ValueRef)
(Not documented)
3597 |
# File 'lib/llvm/core_ffi.rb', line 3597 attach_function :get_previous_global, :LLVMGetPreviousGlobal, [:pointer], :pointer |
.get_previous_instruction(inst) ⇒ FFI::Pointer(ValueRef)
Obtain the instruction that occurred before this one.
If the instruction is the first instruction in a basic block, NULL will be returned.
4305 |
# File 'lib/llvm/core_ffi.rb', line 4305 attach_function :get_previous_instruction, :LLVMGetPreviousInstruction, [:pointer], :pointer |
.get_previous_param(arg) ⇒ FFI::Pointer(ValueRef)
Obtain the previous parameter to a function.
This is the opposite of LLVMGetNextParam().
3903 |
# File 'lib/llvm/core_ffi.rb', line 3903 attach_function :get_previous_param, :LLVMGetPreviousParam, [:pointer], :pointer |
.get_return_type(function_ty) ⇒ FFI::Pointer(TypeRef)
Obtain the Type this function Type returns.
1528 |
# File 'lib/llvm/core_ffi.rb', line 1528 attach_function :get_return_type, :LLVMGetReturnType, [:pointer], :pointer |
.get_section(global) ⇒ String
(Not documented)
3444 |
# File 'lib/llvm/core_ffi.rb', line 3444 attach_function :get_section, :LLVMGetSection, [:pointer], :string |
.get_struct_element_types(struct_ty, dest) ⇒ nil
Get the elements within a structure.
The function is passed the address of a pre-allocated array of LLVMTypeRef at least LLVMCountStructElementTypes() long. After invocation, this array will be populated with the structure’s elements. The objects in the destination array will have a lifetime of the structure type itself, which is the lifetime of the context it is contained in.
1641 |
# File 'lib/llvm/core_ffi.rb', line 1641 attach_function :get_struct_element_types, :LLVMGetStructElementTypes, [:pointer, :pointer], :void |
.get_struct_name(ty) ⇒ String
Obtain the name of a structure.
1602 |
# File 'lib/llvm/core_ffi.rb', line 1602 attach_function :get_struct_name, :LLVMGetStructName, [:pointer], :string |
.get_successor(term, i) ⇒ FFI::Pointer(BasicBlockRef)
Return the specified successor.
4451 |
# File 'lib/llvm/core_ffi.rb', line 4451 attach_function :get_successor, :LLVMGetSuccessor, [:pointer, :uint], :pointer |
.get_switch_default_dest(switch_instr) ⇒ FFI::Pointer(BasicBlockRef)
Obtain the default destination basic block of a switch instruction.
This only works on llvm::SwitchInst instructions.
4512 |
# File 'lib/llvm/core_ffi.rb', line 4512 attach_function :get_switch_default_dest, :LLVMGetSwitchDefaultDest, [:pointer], :pointer |
.get_target(m) ⇒ String
Obtain the target triple for a module.
1052 |
# File 'lib/llvm/core_ffi.rb', line 1052 attach_function :get_target, :LLVMGetTarget, [:pointer], :string |
.get_target_description(t) ⇒ String
Returns the description of a target. See llvm::Target::getDescription
481 |
# File 'lib/llvm/target_ffi.rb', line 481 attach_function :get_target_description, :LLVMGetTargetDescription, [Target], :string |
.get_target_from_name(name) ⇒ Target
Finds the target corresponding to the given name and stores it in p T.
Returns 0 on success.
453 |
# File 'lib/llvm/target_ffi.rb', line 453 attach_function :get_target_from_name, :LLVMGetTargetFromName, [:string], Target |
.get_target_from_triple(triple, t, error_message) ⇒ Integer
Finds the target corresponding to the given triple and stores it in p T.
Returns 0 on success. Optionally returns any error in ErrorMessage.
Use LLVMDisposeMessage to dispose the message.
465 |
# File 'lib/llvm/target_ffi.rb', line 465 attach_function :get_target_from_triple, :LLVMGetTargetFromTriple, [:string, :pointer, :pointer], :int |
.get_target_machine_cpu(t) ⇒ String
Returns the cpu used creating this target machine. See
llvm::TargetMachine::getCPU. The result needs to be disposed with
LLVMDisposeMessage.
556 |
# File 'lib/llvm/target_ffi.rb', line 556 attach_function :get_target_machine_cpu, :LLVMGetTargetMachineCPU, [OpaqueTargetMachine], :string |
.get_target_machine_feature_string(t) ⇒ String
Returns the feature string used creating this target machine. See
llvm::TargetMachine::getFeatureString. The result needs to be disposed with
LLVMDisposeMessage.
566 |
# File 'lib/llvm/target_ffi.rb', line 566 attach_function :get_target_machine_feature_string, :LLVMGetTargetMachineFeatureString, [OpaqueTargetMachine], :string |
.get_target_machine_target(t) ⇒ Target
Returns the Target used in a TargetMachine
536 |
# File 'lib/llvm/target_ffi.rb', line 536 attach_function :get_target_machine_target, :LLVMGetTargetMachineTarget, [OpaqueTargetMachine], Target |
.get_target_machine_triple(t) ⇒ String
Returns the triple used creating this target machine. See
llvm::TargetMachine::getTriple. The result needs to be disposed with
LLVMDisposeMessage.
546 |
# File 'lib/llvm/target_ffi.rb', line 546 attach_function :get_target_machine_triple, :LLVMGetTargetMachineTriple, [OpaqueTargetMachine], :string |
.get_target_name(t) ⇒ String
Returns the name of a target. See llvm::Target::getName
473 |
# File 'lib/llvm/target_ffi.rb', line 473 attach_function :get_target_name, :LLVMGetTargetName, [Target], :string |
.get_thread_local_mode(global_var) ⇒ Symbol from _enum_thread_local_mode_
(Not documented)
3664 |
# File 'lib/llvm/core_ffi.rb', line 3664 attach_function :get_thread_local_mode, :LLVMGetThreadLocalMode, [:pointer], :thread_local_mode |
.get_type_by_name(m, name) ⇒ FFI::Pointer(TypeRef)
Obtain a Type from a module by its registered name.
1127 |
# File 'lib/llvm/core_ffi.rb', line 1127 attach_function :get_type_by_name, :LLVMGetTypeByName, [:pointer, :string], :pointer |
.get_type_context(ty) ⇒ FFI::Pointer(ContextRef)
Obtain the context to which this type instance is associated.
1268 |
# File 'lib/llvm/core_ffi.rb', line 1268 attach_function :get_type_context, :LLVMGetTypeContext, [:pointer], :pointer |
.get_type_kind(ty) ⇒ Symbol from _enum_type_kind_
Obtain the enumerated type of a Type instance.
1246 |
# File 'lib/llvm/core_ffi.rb', line 1246 attach_function :get_type_kind, :LLVMGetTypeKind, [:pointer], :type_kind |
.get_undef(ty) ⇒ FFI::Pointer(ValueRef)
Obtain a constant value referring to an undefined value of a type.
2653 |
# File 'lib/llvm/core_ffi.rb', line 2653 attach_function :get_undef, :LLVMGetUndef, [:pointer], :pointer |
.get_used_value(u) ⇒ FFI::Pointer(ValueRef)
Obtain the value this use corresponds to.
2576 |
# File 'lib/llvm/core_ffi.rb', line 2576 attach_function :get_used_value, :LLVMGetUsedValue, [:pointer], :pointer |
.get_user(u) ⇒ FFI::Pointer(ValueRef)
Obtain the user value for a user.
The returned value corresponds to a llvm::User type.
2566 |
# File 'lib/llvm/core_ffi.rb', line 2566 attach_function :get_user, :LLVMGetUser, [:pointer], :pointer |
.get_value_name(val) ⇒ String
Obtain the string name of a value.
1829 |
# File 'lib/llvm/core_ffi.rb', line 1829 attach_function :get_value_name, :LLVMGetValueName, [:pointer], :string |
.get_vector_size(vector_ty) ⇒ Integer
Obtain the number of elements in a vector type.
This only works on types that represent vectors.
1763 |
# File 'lib/llvm/core_ffi.rb', line 1763 attach_function :get_vector_size, :LLVMGetVectorSize, [:pointer], :uint |
.get_visibility(global) ⇒ Symbol from _enum_visibility_
(Not documented)
3461 |
# File 'lib/llvm/core_ffi.rb', line 3461 attach_function :get_visibility, :LLVMGetVisibility, [:pointer], :visibility |
.get_volatile(memory_access_inst) ⇒ Integer
(Not documented)
5285 |
# File 'lib/llvm/core_ffi.rb', line 5285 attach_function :get_volatile, :LLVMGetVolatile, [:pointer], :int |
.half_type ⇒ FFI::Pointer(TypeRef)
Obtain a floating point type from the global context.
These map to the functions in this group of the same name.
1463 |
# File 'lib/llvm/core_ffi.rb', line 1463 attach_function :half_type, :LLVMHalfType, [], :pointer |
.half_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 16-bit floating point type from a context.
1413 |
# File 'lib/llvm/core_ffi.rb', line 1413 attach_function :half_type_in_context, :LLVMHalfTypeInContext, [:pointer], :pointer |
.has_metadata(val) ⇒ Integer
Determine whether an instruction has any metadata attached.
4252 |
# File 'lib/llvm/core_ffi.rb', line 4252 attach_function :has_metadata, :LLVMHasMetadata, [:pointer], :int |
.has_unnamed_addr(global) ⇒ Integer
(Not documented)
3495 |
# File 'lib/llvm/core_ffi.rb', line 3495 attach_function :has_unnamed_addr, :LLVMHasUnnamedAddr, [:pointer], :int |
.initialize_all_asm_parsers ⇒ nil
(Not documented)
76 |
# File 'lib/llvm/target_ffi.rb', line 76 attach_function :initialize_all_asm_parsers, :LLVMInitializeAllAsmParsers, [], :void |
.initialize_all_asm_printers ⇒ nil
(Not documented)
69 |
# File 'lib/llvm/target_ffi.rb', line 69 attach_function :initialize_all_asm_printers, :LLVMInitializeAllAsmPrinters, [], :void |
.initialize_all_disassemblers ⇒ nil
(Not documented)
83 |
# File 'lib/llvm/target_ffi.rb', line 83 attach_function :initialize_all_disassemblers, :LLVMInitializeAllDisassemblers, [], :void |
.initialize_all_target_infos ⇒ nil
(Not documented)
48 |
# File 'lib/llvm/target_ffi.rb', line 48 attach_function :initialize_all_target_infos, :LLVMInitializeAllTargetInfos, [], :void |
.initialize_all_target_m_cs ⇒ nil
(Not documented)
62 |
# File 'lib/llvm/target_ffi.rb', line 62 attach_function :initialize_all_target_m_cs, :LLVMInitializeAllTargetMCs, [], :void |
.initialize_all_targets ⇒ nil
(Not documented)
55 |
# File 'lib/llvm/target_ffi.rb', line 55 attach_function :initialize_all_targets, :LLVMInitializeAllTargets, [], :void |
.initialize_core(r) ⇒ nil
@}
831 |
# File 'lib/llvm/core_ffi.rb', line 831 attach_function :initialize_core, :LLVMInitializeCore, [:pointer], :void |
.initialize_function_pass_manager(fpm) ⇒ Integer
Initializes all of the function passes scheduled in the function pass
manager. Returns 1 if any of the passes modified the module, 0 otherwise.
@see llvm::FunctionPassManager::doInitialization
5855 |
# File 'lib/llvm/core_ffi.rb', line 5855 attach_function :initialize_function_pass_manager, :LLVMInitializeFunctionPassManager, [:pointer], :int |
.initialize_mcjit_compiler_options(options, size_of_options) ⇒ nil
(Not documented)
175 |
# File 'lib/llvm/execution_engine_ffi.rb', line 175 attach_function :initialize_mcjit_compiler_options, :LLVMInitializeMCJITCompilerOptions, [MCJITCompilerOptions, :ulong], :void |
.initialize_native_asm_parser ⇒ Integer
(Not documented)
97 |
# File 'lib/llvm/target_ffi.rb', line 97 attach_function :initialize_native_asm_parser, :LLVMInitializeNativeAsmParser, [], :int |
.initialize_native_asm_printer ⇒ Integer
(Not documented)
104 |
# File 'lib/llvm/target_ffi.rb', line 104 attach_function :initialize_native_asm_printer, :LLVMInitializeNativeAsmPrinter, [], :int |
.initialize_native_disassembler ⇒ Integer
(Not documented)
111 |
# File 'lib/llvm/target_ffi.rb', line 111 attach_function :initialize_native_disassembler, :LLVMInitializeNativeDisassembler, [], :int |
.initialize_native_target ⇒ Integer
(Not documented)
90 |
# File 'lib/llvm/target_ffi.rb', line 90 attach_function :initialize_native_target, :LLVMInitializeNativeTarget, [], :int |
.insert_basic_block(insert_before_bb, name) ⇒ FFI::Pointer(BasicBlockRef)
Insert a basic block in a function using the global context.
4175 |
# File 'lib/llvm/core_ffi.rb', line 4175 attach_function :insert_basic_block, :LLVMInsertBasicBlock, [:pointer, :string], :pointer |
.insert_basic_block_in_context(c, bb, name) ⇒ FFI::Pointer(BasicBlockRef)
Insert a basic block in a function before another basic block.
The function to add to is determined by the function of the passed basic block.
4164 |
# File 'lib/llvm/core_ffi.rb', line 4164 attach_function :insert_basic_block_in_context, :LLVMInsertBasicBlockInContext, [:pointer, :pointer, :string], :pointer |
.insert_into_builder(builder, instr) ⇒ nil
(Not documented)
4622 |
# File 'lib/llvm/core_ffi.rb', line 4622 attach_function :insert_into_builder, :LLVMInsertIntoBuilder, [:pointer, :pointer], :void |
.insert_into_builder_with_name(builder, instr, name) ⇒ nil
(Not documented)
4632 |
# File 'lib/llvm/core_ffi.rb', line 4632 attach_function :insert_into_builder_with_name, :LLVMInsertIntoBuilderWithName, [:pointer, :pointer, :string], :void |
.instruction_clone(inst) ⇒ FFI::Pointer(ValueRef)
Create a copy of ‘this’ instruction that is identical in all ways except the following:
* The instruction has no parent
* The instruction has no name
4367 |
# File 'lib/llvm/core_ffi.rb', line 4367 attach_function :instruction_clone, :LLVMInstructionClone, [:pointer], :pointer |
.instruction_erase_from_parent(inst) ⇒ nil
Remove and delete an instruction.
The instruction specified is removed from its containing building block and then deleted.
4318 |
# File 'lib/llvm/core_ffi.rb', line 4318 attach_function :instruction_erase_from_parent, :LLVMInstructionEraseFromParent, [:pointer], :void |
.int128_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1389 |
# File 'lib/llvm/core_ffi.rb', line 1389 attach_function :int128_type, :LLVMInt128Type, [], :pointer |
.int128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1337 |
# File 'lib/llvm/core_ffi.rb', line 1337 attach_function :int128_type_in_context, :LLVMInt128TypeInContext, [:pointer], :pointer |
.int16_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1368 |
# File 'lib/llvm/core_ffi.rb', line 1368 attach_function :int16_type, :LLVMInt16Type, [], :pointer |
.int16_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1313 |
# File 'lib/llvm/core_ffi.rb', line 1313 attach_function :int16_type_in_context, :LLVMInt16TypeInContext, [:pointer], :pointer |
.int1_type ⇒ FFI::Pointer(TypeRef)
Obtain an integer type from the global context with a specified bit width.
1354 |
# File 'lib/llvm/core_ffi.rb', line 1354 attach_function :int1_type, :LLVMInt1Type, [], :pointer |
.int1_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain an integer type from a context with specified bit width.
1297 |
# File 'lib/llvm/core_ffi.rb', line 1297 attach_function :int1_type_in_context, :LLVMInt1TypeInContext, [:pointer], :pointer |
.int32_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1375 |
# File 'lib/llvm/core_ffi.rb', line 1375 attach_function :int32_type, :LLVMInt32Type, [], :pointer |
.int32_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1321 |
# File 'lib/llvm/core_ffi.rb', line 1321 attach_function :int32_type_in_context, :LLVMInt32TypeInContext, [:pointer], :pointer |
.int64_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1382 |
# File 'lib/llvm/core_ffi.rb', line 1382 attach_function :int64_type, :LLVMInt64Type, [], :pointer |
.int64_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1329 |
# File 'lib/llvm/core_ffi.rb', line 1329 attach_function :int64_type_in_context, :LLVMInt64TypeInContext, [:pointer], :pointer |
.int8_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1361 |
# File 'lib/llvm/core_ffi.rb', line 1361 attach_function :int8_type, :LLVMInt8Type, [], :pointer |
.int8_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1305 |
# File 'lib/llvm/core_ffi.rb', line 1305 attach_function :int8_type_in_context, :LLVMInt8TypeInContext, [:pointer], :pointer |
.int_ptr_type(td) ⇒ FFI::Pointer(TypeRef)
(Not documented)
194 |
# File 'lib/llvm/target_ffi.rb', line 194 attach_function :int_ptr_type, :LLVMIntPtrType, [OpaqueTargetData], :pointer |
.int_ptr_type_for_as(td, as) ⇒ FFI::Pointer(TypeRef)
(Not documented)
203 |
# File 'lib/llvm/target_ffi.rb', line 203 attach_function :int_ptr_type_for_as, :LLVMIntPtrTypeForAS, [OpaqueTargetData, :uint], :pointer |
.int_ptr_type_for_as_in_context(c, td, as) ⇒ FFI::Pointer(TypeRef)
(Not documented)
222 |
# File 'lib/llvm/target_ffi.rb', line 222 attach_function :int_ptr_type_for_as_in_context, :LLVMIntPtrTypeForASInContext, [:pointer, OpaqueTargetData, :uint], :pointer |
.int_ptr_type_in_context(c, td) ⇒ FFI::Pointer(TypeRef)
(Not documented)
212 |
# File 'lib/llvm/target_ffi.rb', line 212 attach_function :int_ptr_type_in_context, :LLVMIntPtrTypeInContext, [:pointer, OpaqueTargetData], :pointer |
.int_type(num_bits) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1397 |
# File 'lib/llvm/core_ffi.rb', line 1397 attach_function :int_type, :LLVMIntType, [:uint], :pointer |
.int_type_in_context(c, num_bits) ⇒ FFI::Pointer(TypeRef)
(Not documented)
1346 |
# File 'lib/llvm/core_ffi.rb', line 1346 attach_function :int_type_in_context, :LLVMIntTypeInContext, [:pointer, :uint], :pointer |
.is_a_addr_space_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2392 |
# File 'lib/llvm/core_ffi.rb', line 2392 attach_function :is_a_addr_space_cast_inst, :LLVMIsAAddrSpaceCastInst, [:pointer], :pointer |
.is_a_alloca_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2376 |
# File 'lib/llvm/core_ffi.rb', line 2376 attach_function :is_a_alloca_inst, :LLVMIsAAllocaInst, [:pointer], :pointer |
.is_a_argument(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1896 |
# File 'lib/llvm/core_ffi.rb', line 1896 attach_function :is_a_argument, :LLVMIsAArgument, [:pointer], :pointer |
.is_a_basic_block(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1904 |
# File 'lib/llvm/core_ffi.rb', line 1904 attach_function :is_a_basic_block, :LLVMIsABasicBlock, [:pointer], :pointer |
.is_a_binary_operator(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2096 |
# File 'lib/llvm/core_ffi.rb', line 2096 attach_function :is_a_binary_operator, :LLVMIsABinaryOperator, [:pointer], :pointer |
.is_a_bit_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2400 |
# File 'lib/llvm/core_ffi.rb', line 2400 attach_function :is_a_bit_cast_inst, :LLVMIsABitCastInst, [:pointer], :pointer |
.is_a_block_address(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1936 |
# File 'lib/llvm/core_ffi.rb', line 1936 attach_function :is_a_block_address, :LLVMIsABlockAddress, [:pointer], :pointer |
.is_a_branch_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2272 |
# File 'lib/llvm/core_ffi.rb', line 2272 attach_function :is_a_branch_inst, :LLVMIsABranchInst, [:pointer], :pointer |
.is_a_call_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2104 |
# File 'lib/llvm/core_ffi.rb', line 2104 attach_function :is_a_call_inst, :LLVMIsACallInst, [:pointer], :pointer |
.is_a_cast_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2384 |
# File 'lib/llvm/core_ffi.rb', line 2384 attach_function :is_a_cast_inst, :LLVMIsACastInst, [:pointer], :pointer |
.is_a_catch_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2352 |
# File 'lib/llvm/core_ffi.rb', line 2352 attach_function :is_a_catch_pad_inst, :LLVMIsACatchPadInst, [:pointer], :pointer |
.is_a_catch_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2336 |
# File 'lib/llvm/core_ffi.rb', line 2336 attach_function :is_a_catch_return_inst, :LLVMIsACatchReturnInst, [:pointer], :pointer |
.is_a_cleanup_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2360 |
# File 'lib/llvm/core_ffi.rb', line 2360 attach_function :is_a_cleanup_pad_inst, :LLVMIsACleanupPadInst, [:pointer], :pointer |
.is_a_cleanup_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2328 |
# File 'lib/llvm/core_ffi.rb', line 2328 attach_function :is_a_cleanup_return_inst, :LLVMIsACleanupReturnInst, [:pointer], :pointer |
.is_a_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2168 |
# File 'lib/llvm/core_ffi.rb', line 2168 attach_function :is_a_cmp_inst, :LLVMIsACmpInst, [:pointer], :pointer |
.is_a_constant(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1928 |
# File 'lib/llvm/core_ffi.rb', line 1928 attach_function :is_a_constant, :LLVMIsAConstant, [:pointer], :pointer |
.is_a_constant_aggregate_zero(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1944 |
# File 'lib/llvm/core_ffi.rb', line 1944 attach_function :is_a_constant_aggregate_zero, :LLVMIsAConstantAggregateZero, [:pointer], :pointer |
.is_a_constant_array(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1952 |
# File 'lib/llvm/core_ffi.rb', line 1952 attach_function :is_a_constant_array, :LLVMIsAConstantArray, [:pointer], :pointer |
.is_a_constant_data_array(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1968 |
# File 'lib/llvm/core_ffi.rb', line 1968 attach_function :is_a_constant_data_array, :LLVMIsAConstantDataArray, [:pointer], :pointer |
.is_a_constant_data_sequential(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1960 |
# File 'lib/llvm/core_ffi.rb', line 1960 attach_function :is_a_constant_data_sequential, :LLVMIsAConstantDataSequential, [:pointer], :pointer |
.is_a_constant_data_vector(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1976 |
# File 'lib/llvm/core_ffi.rb', line 1976 attach_function :is_a_constant_data_vector, :LLVMIsAConstantDataVector, [:pointer], :pointer |
.is_a_constant_expr(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1984 |
# File 'lib/llvm/core_ffi.rb', line 1984 attach_function :is_a_constant_expr, :LLVMIsAConstantExpr, [:pointer], :pointer |
.is_a_constant_fp(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1992 |
# File 'lib/llvm/core_ffi.rb', line 1992 attach_function :is_a_constant_fp, :LLVMIsAConstantFP, [:pointer], :pointer |
.is_a_constant_int(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2000 |
# File 'lib/llvm/core_ffi.rb', line 2000 attach_function :is_a_constant_int, :LLVMIsAConstantInt, [:pointer], :pointer |
.is_a_constant_pointer_null(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2008 |
# File 'lib/llvm/core_ffi.rb', line 2008 attach_function :is_a_constant_pointer_null, :LLVMIsAConstantPointerNull, [:pointer], :pointer |
.is_a_constant_struct(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2016 |
# File 'lib/llvm/core_ffi.rb', line 2016 attach_function :is_a_constant_struct, :LLVMIsAConstantStruct, [:pointer], :pointer |
.is_a_constant_token_none(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2024 |
# File 'lib/llvm/core_ffi.rb', line 2024 attach_function :is_a_constant_token_none, :LLVMIsAConstantTokenNone, [:pointer], :pointer |
.is_a_constant_vector(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2032 |
# File 'lib/llvm/core_ffi.rb', line 2032 attach_function :is_a_constant_vector, :LLVMIsAConstantVector, [:pointer], :pointer |
.is_a_dbg_declare_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2128 |
# File 'lib/llvm/core_ffi.rb', line 2128 attach_function :is_a_dbg_declare_inst, :LLVMIsADbgDeclareInst, [:pointer], :pointer |
.is_a_dbg_info_intrinsic(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2120 |
# File 'lib/llvm/core_ffi.rb', line 2120 attach_function :is_a_dbg_info_intrinsic, :LLVMIsADbgInfoIntrinsic, [:pointer], :pointer |
.is_a_extract_element_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2192 |
# File 'lib/llvm/core_ffi.rb', line 2192 attach_function :is_a_extract_element_inst, :LLVMIsAExtractElementInst, [:pointer], :pointer |
.is_a_extract_value_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2496 |
# File 'lib/llvm/core_ffi.rb', line 2496 attach_function :is_a_extract_value_inst, :LLVMIsAExtractValueInst, [:pointer], :pointer |
.is_a_funclet_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2344 |
# File 'lib/llvm/core_ffi.rb', line 2344 attach_function :is_a_funclet_pad_inst, :LLVMIsAFuncletPadInst, [:pointer], :pointer |
.is_a_function(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2064 |
# File 'lib/llvm/core_ffi.rb', line 2064 attach_function :is_a_function, :LLVMIsAFunction, [:pointer], :pointer |
.is_a_get_element_ptr_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2200 |
# File 'lib/llvm/core_ffi.rb', line 2200 attach_function :is_a_get_element_ptr_inst, :LLVMIsAGetElementPtrInst, [:pointer], :pointer |
.is_a_global_alias(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2048 |
# File 'lib/llvm/core_ffi.rb', line 2048 attach_function :is_a_global_alias, :LLVMIsAGlobalAlias, [:pointer], :pointer |
.is_a_global_object(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2056 |
# File 'lib/llvm/core_ffi.rb', line 2056 attach_function :is_a_global_object, :LLVMIsAGlobalObject, [:pointer], :pointer |
.is_a_global_value(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2040 |
# File 'lib/llvm/core_ffi.rb', line 2040 attach_function :is_a_global_value, :LLVMIsAGlobalValue, [:pointer], :pointer |
.is_a_global_variable(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2072 |
# File 'lib/llvm/core_ffi.rb', line 2072 attach_function :is_a_global_variable, :LLVMIsAGlobalVariable, [:pointer], :pointer |
.is_a_indirect_br_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2280 |
# File 'lib/llvm/core_ffi.rb', line 2280 attach_function :is_a_indirect_br_inst, :LLVMIsAIndirectBrInst, [:pointer], :pointer |
.is_a_inline_asm(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1912 |
# File 'lib/llvm/core_ffi.rb', line 1912 attach_function :is_a_inline_asm, :LLVMIsAInlineAsm, [:pointer], :pointer |
.is_a_insert_element_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2208 |
# File 'lib/llvm/core_ffi.rb', line 2208 attach_function :is_a_insert_element_inst, :LLVMIsAInsertElementInst, [:pointer], :pointer |
.is_a_insert_value_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2216 |
# File 'lib/llvm/core_ffi.rb', line 2216 attach_function :is_a_insert_value_inst, :LLVMIsAInsertValueInst, [:pointer], :pointer |
.is_a_instruction(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2088 |
# File 'lib/llvm/core_ffi.rb', line 2088 attach_function :is_a_instruction, :LLVMIsAInstruction, [:pointer], :pointer |
.is_a_int_to_ptr_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2440 |
# File 'lib/llvm/core_ffi.rb', line 2440 attach_function :is_a_int_to_ptr_inst, :LLVMIsAIntToPtrInst, [:pointer], :pointer |
.is_a_intrinsic_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2112 |
# File 'lib/llvm/core_ffi.rb', line 2112 attach_function :is_a_intrinsic_inst, :LLVMIsAIntrinsicInst, [:pointer], :pointer |
.is_a_invoke_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2288 |
# File 'lib/llvm/core_ffi.rb', line 2288 attach_function :is_a_invoke_inst, :LLVMIsAInvokeInst, [:pointer], :pointer |
.is_a_landing_pad_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2224 |
# File 'lib/llvm/core_ffi.rb', line 2224 attach_function :is_a_landing_pad_inst, :LLVMIsALandingPadInst, [:pointer], :pointer |
.is_a_load_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2504 |
# File 'lib/llvm/core_ffi.rb', line 2504 attach_function :is_a_load_inst, :LLVMIsALoadInst, [:pointer], :pointer |
.is_a_mem_cpy_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2144 |
# File 'lib/llvm/core_ffi.rb', line 2144 attach_function :is_a_mem_cpy_inst, :LLVMIsAMemCpyInst, [:pointer], :pointer |
.is_a_mem_intrinsic(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2136 |
# File 'lib/llvm/core_ffi.rb', line 2136 attach_function :is_a_mem_intrinsic, :LLVMIsAMemIntrinsic, [:pointer], :pointer |
.is_a_mem_move_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2152 |
# File 'lib/llvm/core_ffi.rb', line 2152 attach_function :is_a_mem_move_inst, :LLVMIsAMemMoveInst, [:pointer], :pointer |
.is_a_mem_set_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2160 |
# File 'lib/llvm/core_ffi.rb', line 2160 attach_function :is_a_mem_set_inst, :LLVMIsAMemSetInst, [:pointer], :pointer |
.is_a_ptr_to_int_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2448 |
# File 'lib/llvm/core_ffi.rb', line 2448 attach_function :is_a_ptr_to_int_inst, :LLVMIsAPtrToIntInst, [:pointer], :pointer |
.is_a_resume_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2320 |
# File 'lib/llvm/core_ffi.rb', line 2320 attach_function :is_a_resume_inst, :LLVMIsAResumeInst, [:pointer], :pointer |
.is_a_return_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2296 |
# File 'lib/llvm/core_ffi.rb', line 2296 attach_function :is_a_return_inst, :LLVMIsAReturnInst, [:pointer], :pointer |
.is_a_select_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2240 |
# File 'lib/llvm/core_ffi.rb', line 2240 attach_function :is_a_select_inst, :LLVMIsASelectInst, [:pointer], :pointer |
.is_a_shuffle_vector_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2248 |
# File 'lib/llvm/core_ffi.rb', line 2248 attach_function :is_a_shuffle_vector_inst, :LLVMIsAShuffleVectorInst, [:pointer], :pointer |
.is_a_store_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2256 |
# File 'lib/llvm/core_ffi.rb', line 2256 attach_function :is_a_store_inst, :LLVMIsAStoreInst, [:pointer], :pointer |
.is_a_switch_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2304 |
# File 'lib/llvm/core_ffi.rb', line 2304 attach_function :is_a_switch_inst, :LLVMIsASwitchInst, [:pointer], :pointer |
.is_a_terminator_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2264 |
# File 'lib/llvm/core_ffi.rb', line 2264 attach_function :is_a_terminator_inst, :LLVMIsATerminatorInst, [:pointer], :pointer |
.is_a_trunc_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2472 |
# File 'lib/llvm/core_ffi.rb', line 2472 attach_function :is_a_trunc_inst, :LLVMIsATruncInst, [:pointer], :pointer |
.is_a_unary_instruction(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2368 |
# File 'lib/llvm/core_ffi.rb', line 2368 attach_function :is_a_unary_instruction, :LLVMIsAUnaryInstruction, [:pointer], :pointer |
.is_a_undef_value(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2080 |
# File 'lib/llvm/core_ffi.rb', line 2080 attach_function :is_a_undef_value, :LLVMIsAUndefValue, [:pointer], :pointer |
.is_a_unreachable_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2312 |
# File 'lib/llvm/core_ffi.rb', line 2312 attach_function :is_a_unreachable_inst, :LLVMIsAUnreachableInst, [:pointer], :pointer |
.is_a_user(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
1920 |
# File 'lib/llvm/core_ffi.rb', line 1920 attach_function :is_a_user, :LLVMIsAUser, [:pointer], :pointer |
.is_af_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2176 |
# File 'lib/llvm/core_ffi.rb', line 2176 attach_function :is_af_cmp_inst, :LLVMIsAFCmpInst, [:pointer], :pointer |
.is_afp_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2408 |
# File 'lib/llvm/core_ffi.rb', line 2408 attach_function :is_afp_ext_inst, :LLVMIsAFPExtInst, [:pointer], :pointer |
.is_afp_to_si_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2416 |
# File 'lib/llvm/core_ffi.rb', line 2416 attach_function :is_afp_to_si_inst, :LLVMIsAFPToSIInst, [:pointer], :pointer |
.is_afp_to_ui_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2424 |
# File 'lib/llvm/core_ffi.rb', line 2424 attach_function :is_afp_to_ui_inst, :LLVMIsAFPToUIInst, [:pointer], :pointer |
.is_afp_trunc_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2432 |
# File 'lib/llvm/core_ffi.rb', line 2432 attach_function :is_afp_trunc_inst, :LLVMIsAFPTruncInst, [:pointer], :pointer |
.is_ai_cmp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2184 |
# File 'lib/llvm/core_ffi.rb', line 2184 attach_function :is_ai_cmp_inst, :LLVMIsAICmpInst, [:pointer], :pointer |
.is_amd_node(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2520 |
# File 'lib/llvm/core_ffi.rb', line 2520 attach_function :is_amd_node, :LLVMIsAMDNode, [:pointer], :pointer |
.is_amd_string(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2528 |
# File 'lib/llvm/core_ffi.rb', line 2528 attach_function :is_amd_string, :LLVMIsAMDString, [:pointer], :pointer |
.is_aphi_node(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2232 |
# File 'lib/llvm/core_ffi.rb', line 2232 attach_function :is_aphi_node, :LLVMIsAPHINode, [:pointer], :pointer |
.is_as_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2456 |
# File 'lib/llvm/core_ffi.rb', line 2456 attach_function :is_as_ext_inst, :LLVMIsASExtInst, [:pointer], :pointer |
.is_asi_to_fp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2464 |
# File 'lib/llvm/core_ffi.rb', line 2464 attach_function :is_asi_to_fp_inst, :LLVMIsASIToFPInst, [:pointer], :pointer |
.is_aui_to_fp_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2480 |
# File 'lib/llvm/core_ffi.rb', line 2480 attach_function :is_aui_to_fp_inst, :LLVMIsAUIToFPInst, [:pointer], :pointer |
.is_ava_arg_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2512 |
# File 'lib/llvm/core_ffi.rb', line 2512 attach_function :is_ava_arg_inst, :LLVMIsAVAArgInst, [:pointer], :pointer |
.is_az_ext_inst(val) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2488 |
# File 'lib/llvm/core_ffi.rb', line 2488 attach_function :is_az_ext_inst, :LLVMIsAZExtInst, [:pointer], :pointer |
.is_conditional(branch) ⇒ Integer
Return if a branch is conditional.
This only works on llvm::BranchInst instructions.
4475 |
# File 'lib/llvm/core_ffi.rb', line 4475 attach_function :is_conditional, :LLVMIsConditional, [:pointer], :int |
.is_constant(val) ⇒ Integer
Determine whether the specified constant instance is constant.
1880 |
# File 'lib/llvm/core_ffi.rb', line 1880 attach_function :is_constant, :LLVMIsConstant, [:pointer], :int |
.is_constant_string(c) ⇒ Integer
Returns true if the specified constant is an array of i8.
2834 |
# File 'lib/llvm/core_ffi.rb', line 2834 attach_function :is_constant_string, :LLVMIsConstantString, [:pointer], :int |
.is_declaration(global) ⇒ Integer
(Not documented)
3419 |
# File 'lib/llvm/core_ffi.rb', line 3419 attach_function :is_declaration, :LLVMIsDeclaration, [:pointer], :int |
.is_externally_initialized(global_var) ⇒ Integer
(Not documented)
3681 |
# File 'lib/llvm/core_ffi.rb', line 3681 attach_function :is_externally_initialized, :LLVMIsExternallyInitialized, [:pointer], :int |
.is_function_var_arg(function_ty) ⇒ Integer
Returns whether a function type is variadic.
1520 |
# File 'lib/llvm/core_ffi.rb', line 1520 attach_function :is_function_var_arg, :LLVMIsFunctionVarArg, [:pointer], :int |
.is_global_constant(global_var) ⇒ Integer
(Not documented)
3647 |
# File 'lib/llvm/core_ffi.rb', line 3647 attach_function :is_global_constant, :LLVMIsGlobalConstant, [:pointer], :int |
.is_multithreaded ⇒ Integer
Check whether LLVM is executing in thread-safe mode or not.
@see llvm::llvm_is_multithreaded
5912 |
# File 'lib/llvm/core_ffi.rb', line 5912 attach_function :is_multithreaded, :LLVMIsMultithreaded, [], :int |
.is_null(val) ⇒ Integer
Determine whether a value instance is null.
2663 |
# File 'lib/llvm/core_ffi.rb', line 2663 attach_function :is_null, :LLVMIsNull, [:pointer], :int |
.is_opaque_struct(struct_ty) ⇒ Integer
Determine whether a structure is opaque.
1672 |
# File 'lib/llvm/core_ffi.rb', line 1672 attach_function :is_opaque_struct, :LLVMIsOpaqueStruct, [:pointer], :int |
.is_packed_struct(struct_ty) ⇒ Integer
Determine whether a structure is packed.
1662 |
# File 'lib/llvm/core_ffi.rb', line 1662 attach_function :is_packed_struct, :LLVMIsPackedStruct, [:pointer], :int |
.is_tail_call(call_inst) ⇒ Integer
Obtain whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
4417 |
# File 'lib/llvm/core_ffi.rb', line 4417 attach_function :is_tail_call, :LLVMIsTailCall, [:pointer], :int |
.is_thread_local(global_var) ⇒ Integer
(Not documented)
3630 |
# File 'lib/llvm/core_ffi.rb', line 3630 attach_function :is_thread_local, :LLVMIsThreadLocal, [:pointer], :int |
.is_undef(val) ⇒ Integer
Determine whether a value instance is undefined.
1888 |
# File 'lib/llvm/core_ffi.rb', line 1888 attach_function :is_undef, :LLVMIsUndef, [:pointer], :int |
.label_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1802 |
# File 'lib/llvm/core_ffi.rb', line 1802 attach_function :label_type, :LLVMLabelType, [], :pointer |
.label_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a label type in a context.
1779 |
# File 'lib/llvm/core_ffi.rb', line 1779 attach_function :label_type_in_context, :LLVMLabelTypeInContext, [:pointer], :pointer |
.link_in_interpreter ⇒ nil
(Not documented)
30 |
# File 'lib/llvm/execution_engine_ffi.rb', line 30 attach_function :link_in_interpreter, :LLVMLinkInInterpreter, [], :void |
.link_in_mcjit ⇒ nil
@{
23 |
# File 'lib/llvm/execution_engine_ffi.rb', line 23 attach_function :link_in_mcjit, :LLVMLinkInMCJIT, [], :void |
.link_modules2(dest, src) ⇒ Integer
Links the source module into the destination module. The source module is destroyed. The return value is true if an error occurred, false otherwise. Use the diagnostic handler to get any diagnostic message.
43 |
# File 'lib/llvm/linker_ffi.rb', line 43 attach_function :link_modules2, :LLVMLinkModules2, [:pointer, :pointer], :int |
.load_library_permanently(filename) ⇒ Integer
(Not documented)
25 |
# File 'lib/llvm/core_ffi.rb', line 25 attach_function :load_library_permanently, :LLVMLoadLibraryPermanently, [:string], :int |
.md_node(vals, count) ⇒ FFI::Pointer(ValueRef)
Obtain a MDNode value from the global context.
3961 |
# File 'lib/llvm/core_ffi.rb', line 3961 attach_function :md_node, :LLVMMDNode, [:pointer, :uint], :pointer |
.md_node_in_context(c, vals, count) ⇒ FFI::Pointer(ValueRef)
Obtain a MDNode value from a context.
The returned value corresponds to the llvm::MDNode class.
3952 |
# File 'lib/llvm/core_ffi.rb', line 3952 attach_function :md_node_in_context, :LLVMMDNodeInContext, [:pointer, :pointer, :uint], :pointer |
.md_string(str, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a MDString value from the global context.
3940 |
# File 'lib/llvm/core_ffi.rb', line 3940 attach_function :md_string, :LLVMMDString, [:string, :uint], :pointer |
.md_string_in_context(c, str, s_len) ⇒ FFI::Pointer(ValueRef)
Obtain a MDString value from a context.
The returned instance corresponds to the llvm::MDString class.
The instance is specified by string data of a specified length. The string content is copied, so the backing memory can be freed after this function returns.
3931 |
# File 'lib/llvm/core_ffi.rb', line 3931 attach_function :md_string_in_context, :LLVMMDStringInContext, [:pointer, :string, :uint], :pointer |
.module_create_with_name(module_id) ⇒ FFI::Pointer(ModuleRef)
Create a new, empty module in the global context.
This is equivalent to calling LLVMModuleCreateWithNameInContext with LLVMGetGlobalContext() as the context parameter.
Every invocation should be paired with LLVMDisposeModule() or memory will be leaked.
990 |
# File 'lib/llvm/core_ffi.rb', line 990 attach_function :module_create_with_name, :LLVMModuleCreateWithName, [:string], :pointer |
.module_create_with_name_in_context(module_id, c) ⇒ FFI::Pointer(ModuleRef)
Create a new, empty module in a specific context.
Every invocation should be paired with LLVMDisposeModule() or memory will be leaked.
1002 |
# File 'lib/llvm/core_ffi.rb', line 1002 attach_function :module_create_with_name_in_context, :LLVMModuleCreateWithNameInContext, [:string, :pointer], :pointer |
.move_basic_block_after(bb, move_pos) ⇒ nil
Move a basic block to after another one.
4223 |
# File 'lib/llvm/core_ffi.rb', line 4223 attach_function :move_basic_block_after, :LLVMMoveBasicBlockAfter, [:pointer, :pointer], :void |
.move_basic_block_before(bb, move_pos) ⇒ nil
Move a basic block to before another one.
4212 |
# File 'lib/llvm/core_ffi.rb', line 4212 attach_function :move_basic_block_before, :LLVMMoveBasicBlockBefore, [:pointer, :pointer], :void |
.offset_of_element(td, struct_ty, element) ⇒ Integer
(Not documented)
305 |
# File 'lib/llvm/target_ffi.rb', line 305 attach_function :offset_of_element, :LLVMOffsetOfElement, [OpaqueTargetData, :pointer, :uint], :ulong_long |
.parse_bitcode(mem_buf, out_module, out_message) ⇒ Integer
(Not documented)
23 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 23 attach_function :parse_bitcode, :LLVMParseBitcode, [:pointer, :pointer, :pointer], :int |
.parse_bitcode2(mem_buf, out_module) ⇒ Integer
(Not documented)
32 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 32 attach_function :parse_bitcode2, :LLVMParseBitcode2, [:pointer, :pointer], :int |
.parse_bitcode_in_context(context_ref, mem_buf, out_module, out_message) ⇒ Integer
(Not documented)
43 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 43 attach_function :parse_bitcode_in_context, :LLVMParseBitcodeInContext, [:pointer, :pointer, :pointer, :pointer], :int |
.parse_bitcode_in_context2(context_ref, mem_buf, out_module) ⇒ Integer
(Not documented)
53 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 53 attach_function :parse_bitcode_in_context2, :LLVMParseBitcodeInContext2, [:pointer, :pointer, :pointer], :int |
.parse_command_line_options(argc, argv, overview) ⇒ nil
This function parses the given arguments using the LLVM command line parser. Note that the only stable thing about this function is its signature; you cannot rely on any particular set of command line arguments being interpreted the same way across LLVM versions.
40 |
# File 'lib/llvm/core_ffi.rb', line 40 attach_function :parse_command_line_options, :LLVMParseCommandLineOptions, [:int, :pointer, :string], :void |
.pass_manager_builder_create ⇒ OpaquePassManagerBuilder
See llvm::PassManagerBuilder.
25 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 25 attach_function :pass_manager_builder_create, :LLVMPassManagerBuilderCreate, [], OpaquePassManagerBuilder |
.pass_manager_builder_dispose(pmb) ⇒ nil
(Not documented)
33 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 33 attach_function :pass_manager_builder_dispose, :LLVMPassManagerBuilderDispose, [OpaquePassManagerBuilder], :void |
.pass_manager_builder_populate_function_pass_manager(pmb, pm) ⇒ nil
See llvm::PassManagerBuilder::populateFunctionPassManager.
96 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 96 attach_function :pass_manager_builder_populate_function_pass_manager, :LLVMPassManagerBuilderPopulateFunctionPassManager, [OpaquePassManagerBuilder, :pointer], :void |
.pass_manager_builder_populate_module_pass_manager(pmb, pm) ⇒ nil
See llvm::PassManagerBuilder::populateModulePassManager.
105 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 105 attach_function :pass_manager_builder_populate_module_pass_manager, :LLVMPassManagerBuilderPopulateModulePassManager, [OpaquePassManagerBuilder, :pointer], :void |
.pass_manager_builder_set_disable_simplify_lib_calls(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableSimplifyLibCalls
78 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 78 attach_function :pass_manager_builder_set_disable_simplify_lib_calls, :LLVMPassManagerBuilderSetDisableSimplifyLibCalls, [OpaquePassManagerBuilder, :int], :void |
.pass_manager_builder_set_disable_unit_at_a_time(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableUnitAtATime.
60 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 60 attach_function :pass_manager_builder_set_disable_unit_at_a_time, :LLVMPassManagerBuilderSetDisableUnitAtATime, [OpaquePassManagerBuilder, :int], :void |
.pass_manager_builder_set_disable_unroll_loops(pmb, value) ⇒ nil
See llvm::PassManagerBuilder::DisableUnrollLoops.
69 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 69 attach_function :pass_manager_builder_set_disable_unroll_loops, :LLVMPassManagerBuilderSetDisableUnrollLoops, [OpaquePassManagerBuilder, :int], :void |
.pass_manager_builder_set_opt_level(pmb, opt_level) ⇒ nil
See llvm::PassManagerBuilder::OptLevel.
42 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 42 attach_function :pass_manager_builder_set_opt_level, :LLVMPassManagerBuilderSetOptLevel, [OpaquePassManagerBuilder, :uint], :void |
.pass_manager_builder_set_size_level(pmb, size_level) ⇒ nil
See llvm::PassManagerBuilder::SizeLevel.
51 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 51 attach_function :pass_manager_builder_set_size_level, :LLVMPassManagerBuilderSetSizeLevel, [OpaquePassManagerBuilder, :uint], :void |
.pass_manager_builder_use_inliner_with_threshold(pmb, threshold) ⇒ nil
See llvm::PassManagerBuilder::Inliner.
87 |
# File 'lib/llvm/transforms/builder_ffi.rb', line 87 attach_function :pass_manager_builder_use_inliner_with_threshold, :LLVMPassManagerBuilderUseInlinerWithThreshold, [OpaquePassManagerBuilder, :uint], :void |
.pointer_size(td) ⇒ Integer
(Not documented)
177 |
# File 'lib/llvm/target_ffi.rb', line 177 attach_function :pointer_size, :LLVMPointerSize, [OpaqueTargetData], :uint |
.pointer_size_for_as(td, as) ⇒ Integer
(Not documented)
186 |
# File 'lib/llvm/target_ffi.rb', line 186 attach_function :pointer_size_for_as, :LLVMPointerSizeForAS, [OpaqueTargetData, :uint], :uint |
.pointer_type(element_type, address_space) ⇒ FFI::Pointer(TypeRef)
Create a pointer type that points to a defined type.
The created type will exist in the context that its pointee type exists in.
1724 |
# File 'lib/llvm/core_ffi.rb', line 1724 attach_function :pointer_type, :LLVMPointerType, [:pointer, :uint], :pointer |
.position_builder(builder, block, instr) ⇒ nil
(Not documented)
4579 |
# File 'lib/llvm/core_ffi.rb', line 4579 attach_function :position_builder, :LLVMPositionBuilder, [:pointer, :pointer, :pointer], :void |
.position_builder_at_end(builder, block) ⇒ nil
(Not documented)
4597 |
# File 'lib/llvm/core_ffi.rb', line 4597 attach_function :position_builder_at_end, :LLVMPositionBuilderAtEnd, [:pointer, :pointer], :void |
.position_builder_before(builder, instr) ⇒ nil
(Not documented)
4588 |
# File 'lib/llvm/core_ffi.rb', line 4588 attach_function :position_builder_before, :LLVMPositionBuilderBefore, [:pointer, :pointer], :void |
.ppcfp128_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1498 |
# File 'lib/llvm/core_ffi.rb', line 1498 attach_function :ppcfp128_type, :LLVMPPCFP128Type, [], :pointer |
.ppcfp128_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 128-bit floating point type (two 64-bits) from a context.
1454 |
# File 'lib/llvm/core_ffi.rb', line 1454 attach_function :ppcfp128_type_in_context, :LLVMPPCFP128TypeInContext, [:pointer], :pointer |
.preferred_alignment_of_global(td, global_var) ⇒ Integer
(Not documented)
285 |
# File 'lib/llvm/target_ffi.rb', line 285 attach_function :preferred_alignment_of_global, :LLVMPreferredAlignmentOfGlobal, [OpaqueTargetData, :pointer], :uint |
.preferred_alignment_of_type(td, ty) ⇒ Integer
(Not documented)
276 |
# File 'lib/llvm/target_ffi.rb', line 276 attach_function :preferred_alignment_of_type, :LLVMPreferredAlignmentOfType, [OpaqueTargetData, :pointer], :uint |
.print_module_to_file(m, filename, error_message) ⇒ Integer
Print a representation of a module to a file. The ErrorMessage needs to be disposed with LLVMDisposeMessage. Returns 0 on success, 1 otherwise.
1086 |
# File 'lib/llvm/core_ffi.rb', line 1086 attach_function :print_module_to_file, :LLVMPrintModuleToFile, [:pointer, :string, :pointer], :int |
.print_module_to_string(m) ⇒ String
Return a string representation of the module. Use LLVMDisposeMessage to free the string.
1097 |
# File 'lib/llvm/core_ffi.rb', line 1097 attach_function :print_module_to_string, :LLVMPrintModuleToString, [:pointer], :string |
.print_type_to_string(val) ⇒ String
Return a string representation of the type. Use LLVMDisposeMessage to free the string.
1289 |
# File 'lib/llvm/core_ffi.rb', line 1289 attach_function :print_type_to_string, :LLVMPrintTypeToString, [:pointer], :string |
.print_value_to_string(val) ⇒ String
Return a string representation of the value. Use LLVMDisposeMessage to free the string.
1861 |
# File 'lib/llvm/core_ffi.rb', line 1861 attach_function :print_value_to_string, :LLVMPrintValueToString, [:pointer], :string |
.recompile_and_relink_function(ee, fn) ⇒ FFI::Pointer(*Void)
(Not documented)
296 |
# File 'lib/llvm/execution_engine_ffi.rb', line 296 attach_function :recompile_and_relink_function, :LLVMRecompileAndRelinkFunction, [OpaqueExecutionEngine, :pointer], :pointer |
.remove_basic_block_from_parent(bb) ⇒ nil
Remove a basic block from a function.
This deletes the basic block from its containing function but keep the basic block alive.
4201 |
# File 'lib/llvm/core_ffi.rb', line 4201 attach_function :remove_basic_block_from_parent, :LLVMRemoveBasicBlockFromParent, [:pointer], :void |
.remove_module(ee, m, out_mod, out_error) ⇒ Integer
(Not documented)
277 |
# File 'lib/llvm/execution_engine_ffi.rb', line 277 attach_function :remove_module, :LLVMRemoveModule, [OpaqueExecutionEngine, :pointer, :pointer, :pointer], :int |
.replace_all_uses_with(old_val, new_val) ⇒ nil
Replace all uses of a value with another one.
1872 |
# File 'lib/llvm/core_ffi.rb', line 1872 attach_function :replace_all_uses_with, :LLVMReplaceAllUsesWith, [:pointer, :pointer], :void |
.run_function(ee, f, num_args, args) ⇒ OpaqueGenericValue
(Not documented)
248 |
# File 'lib/llvm/execution_engine_ffi.rb', line 248 attach_function :run_function, :LLVMRunFunction, [OpaqueExecutionEngine, :pointer, :uint, :pointer], OpaqueGenericValue |
.run_function_as_main(ee, f, arg_c, arg_v, env_p) ⇒ Integer
(Not documented)
237 |
# File 'lib/llvm/execution_engine_ffi.rb', line 237 attach_function :run_function_as_main, :LLVMRunFunctionAsMain, [OpaqueExecutionEngine, :pointer, :uint, :pointer, :pointer], :int |
.run_function_pass_manager(fpm, f) ⇒ Integer
Executes all of the function passes scheduled in the function pass manager
on the provided function. Returns 1 if any of the passes modified the
function, false otherwise.
@see llvm::FunctionPassManager::run(Function&)
5867 |
# File 'lib/llvm/core_ffi.rb', line 5867 attach_function :run_function_pass_manager, :LLVMRunFunctionPassManager, [:pointer, :pointer], :int |
.run_pass_manager(pm, m) ⇒ Integer
Initializes, executes on the provided module, and finalizes all of the
passes scheduled in the pass manager. Returns 1 if any of the passes
modified the module, 0 otherwise.
@see llvm::PassManager::run(Module&)
5845 |
# File 'lib/llvm/core_ffi.rb', line 5845 attach_function :run_pass_manager, :LLVMRunPassManager, [:pointer, :pointer], :int |
.run_static_constructors(ee) ⇒ nil
(Not documented)
217 |
# File 'lib/llvm/execution_engine_ffi.rb', line 217 attach_function :run_static_constructors, :LLVMRunStaticConstructors, [OpaqueExecutionEngine], :void |
.run_static_destructors(ee) ⇒ nil
(Not documented)
225 |
# File 'lib/llvm/execution_engine_ffi.rb', line 225 attach_function :run_static_destructors, :LLVMRunStaticDestructors, [OpaqueExecutionEngine], :void |
.search_for_address_of_symbol(symbol_name) ⇒ FFI::Pointer(*Void)
(Not documented)
48 |
# File 'lib/llvm/core_ffi.rb', line 48 attach_function :search_for_address_of_symbol, :LLVMSearchForAddressOfSymbol, [:string], :pointer |
.set_alignment(v, bytes) ⇒ nil
Set the preferred alignment of the value.
3529 |
# File 'lib/llvm/core_ffi.rb', line 3529 attach_function :set_alignment, :LLVMSetAlignment, [:pointer, :uint], :void |
.set_cleanup(landing_pad, val) ⇒ nil
Set the ‘cleanup’ flag in the landingpad instruction
4814 |
# File 'lib/llvm/core_ffi.rb', line 4814 attach_function :set_cleanup, :LLVMSetCleanup, [:pointer, :int], :void |
.set_condition(branch, cond) ⇒ nil
Set the condition of a branch instruction.
This only works on llvm::BranchInst instructions.
4500 |
# File 'lib/llvm/core_ffi.rb', line 4500 attach_function :set_condition, :LLVMSetCondition, [:pointer, :pointer], :void |
.set_current_debug_location(builder, l) ⇒ nil
Metadata
4649 |
# File 'lib/llvm/core_ffi.rb', line 4649 attach_function :set_current_debug_location, :LLVMSetCurrentDebugLocation, [:pointer, :pointer], :void |
.set_data_layout(m, triple) ⇒ nil
Set the data layout for a module.
1042 |
# File 'lib/llvm/core_ffi.rb', line 1042 attach_function :set_data_layout, :LLVMSetDataLayout, [:pointer, :string], :void |
.set_dll_storage_class(global, class_) ⇒ nil
(Not documented)
3487 |
# File 'lib/llvm/core_ffi.rb', line 3487 attach_function :set_dll_storage_class, :LLVMSetDLLStorageClass, [:pointer, :dll_storage_class], :void |
.set_externally_initialized(global_var, is_ext_init) ⇒ nil
(Not documented)
3690 |
# File 'lib/llvm/core_ffi.rb', line 3690 attach_function :set_externally_initialized, :LLVMSetExternallyInitialized, [:pointer, :int], :void |
.set_function_call_conv(fn, cc) ⇒ nil
Set the calling convention of a function.
3774 |
# File 'lib/llvm/core_ffi.rb', line 3774 attach_function :set_function_call_conv, :LLVMSetFunctionCallConv, [:pointer, :uint], :void |
.set_gc(fn, name) ⇒ nil
Define the garbage collector to use during code generation.
3796 |
# File 'lib/llvm/core_ffi.rb', line 3796 attach_function :set_gc, :LLVMSetGC, [:pointer, :string], :void |
.set_global_constant(global_var, is_constant) ⇒ nil
(Not documented)
3656 |
# File 'lib/llvm/core_ffi.rb', line 3656 attach_function :set_global_constant, :LLVMSetGlobalConstant, [:pointer, :int], :void |
.set_initializer(global_var, constant_val) ⇒ nil
(Not documented)
3622 |
# File 'lib/llvm/core_ffi.rb', line 3622 attach_function :set_initializer, :LLVMSetInitializer, [:pointer, :pointer], :void |
.set_inst_debug_location(builder, inst) ⇒ nil
(Not documented)
4666 |
# File 'lib/llvm/core_ffi.rb', line 4666 attach_function :set_inst_debug_location, :LLVMSetInstDebugLocation, [:pointer, :pointer], :void |
.set_instr_param_alignment(instr, index, align) ⇒ nil
(Not documented)
4405 |
# File 'lib/llvm/core_ffi.rb', line 4405 attach_function :set_instr_param_alignment, :LLVMSetInstrParamAlignment, [:pointer, :uint, :uint], :void |
.set_instruction_call_conv(instr, cc) ⇒ nil
Set the calling convention for a call instruction.
This expects an LLVMValueRef that corresponds to a llvm::CallInst or llvm::InvokeInst.
4382 |
# File 'lib/llvm/core_ffi.rb', line 4382 attach_function :set_instruction_call_conv, :LLVMSetInstructionCallConv, [:pointer, :uint], :void |
.set_linkage(global, linkage) ⇒ nil
(Not documented)
3436 |
# File 'lib/llvm/core_ffi.rb', line 3436 attach_function :set_linkage, :LLVMSetLinkage, [:pointer, :linkage], :void |
.set_metadata(val, kind_id, node) ⇒ nil
Set metadata associated with an instruction value.
4271 |
# File 'lib/llvm/core_ffi.rb', line 4271 attach_function :set_metadata, :LLVMSetMetadata, [:pointer, :uint, :pointer], :void |
.set_module_data_layout(m, dl) ⇒ nil
(Not documented)
128 |
# File 'lib/llvm/target_ffi.rb', line 128 attach_function :set_module_data_layout, :LLVMSetModuleDataLayout, [:pointer, OpaqueTargetData], :void |
.set_module_inline_asm(m, asm) ⇒ nil
Set inline assembly for a module.
1108 |
# File 'lib/llvm/core_ffi.rb', line 1108 attach_function :set_module_inline_asm, :LLVMSetModuleInlineAsm, [:pointer, :string], :void |
.set_operand(user, index, val) ⇒ nil
Set an operand at a specific index in a llvm::User value.
2610 |
# File 'lib/llvm/core_ffi.rb', line 2610 attach_function :set_operand, :LLVMSetOperand, [:pointer, :uint, :pointer], :void |
.set_ordering(memory_access_inst, ordering) ⇒ nil
(Not documented)
5311 |
# File 'lib/llvm/core_ffi.rb', line 5311 attach_function :set_ordering, :LLVMSetOrdering, [:pointer, :atomic_ordering], :void |
.set_param_alignment(arg, align) ⇒ nil
Set the alignment for a function parameter.
3915 |
# File 'lib/llvm/core_ffi.rb', line 3915 attach_function :set_param_alignment, :LLVMSetParamAlignment, [:pointer, :uint], :void |
.set_personality_fn(fn, personality_fn) ⇒ nil
Set the personality function attached to the function.
3738 |
# File 'lib/llvm/core_ffi.rb', line 3738 attach_function :set_personality_fn, :LLVMSetPersonalityFn, [:pointer, :pointer], :void |
.set_section(global, section) ⇒ nil
(Not documented)
3453 |
# File 'lib/llvm/core_ffi.rb', line 3453 attach_function :set_section, :LLVMSetSection, [:pointer, :string], :void |
.set_successor(term, i, block) ⇒ nil
Update the specified successor to point at the provided block.
4463 |
# File 'lib/llvm/core_ffi.rb', line 4463 attach_function :set_successor, :LLVMSetSuccessor, [:pointer, :uint, :pointer], :void |
.set_tail_call(call_inst, is_tail_call) ⇒ nil
Set whether a call instruction is a tail call.
This only works on llvm::CallInst instructions.
4430 |
# File 'lib/llvm/core_ffi.rb', line 4430 attach_function :set_tail_call, :LLVMSetTailCall, [:pointer, :int], :void |
.set_target(m, triple) ⇒ nil
Set the target triple for a module.
1063 |
# File 'lib/llvm/core_ffi.rb', line 1063 attach_function :set_target, :LLVMSetTarget, [:pointer, :string], :void |
.set_target_machine_asm_verbosity(t, verbose_asm) ⇒ nil
Set the target machine’s ASM verbosity.
583 |
# File 'lib/llvm/target_ffi.rb', line 583 attach_function :set_target_machine_asm_verbosity, :LLVMSetTargetMachineAsmVerbosity, [OpaqueTargetMachine, :int], :void |
.set_thread_local(global_var, is_thread_local) ⇒ nil
(Not documented)
3639 |
# File 'lib/llvm/core_ffi.rb', line 3639 attach_function :set_thread_local, :LLVMSetThreadLocal, [:pointer, :int], :void |
.set_thread_local_mode(global_var, mode) ⇒ nil
(Not documented)
3673 |
# File 'lib/llvm/core_ffi.rb', line 3673 attach_function :set_thread_local_mode, :LLVMSetThreadLocalMode, [:pointer, :thread_local_mode], :void |
.set_unnamed_addr(global, has_unnamed_addr) ⇒ nil
(Not documented)
3504 |
# File 'lib/llvm/core_ffi.rb', line 3504 attach_function :set_unnamed_addr, :LLVMSetUnnamedAddr, [:pointer, :int], :void |
.set_value_name(val, name) ⇒ nil
Set the string name of a value.
1840 |
# File 'lib/llvm/core_ffi.rb', line 1840 attach_function :set_value_name, :LLVMSetValueName, [:pointer, :string], :void |
.set_visibility(global, viz) ⇒ nil
(Not documented)
3470 |
# File 'lib/llvm/core_ffi.rb', line 3470 attach_function :set_visibility, :LLVMSetVisibility, [:pointer, :visibility], :void |
.set_volatile(memory_access_inst, is_volatile) ⇒ nil
(Not documented)
5294 |
# File 'lib/llvm/core_ffi.rb', line 5294 attach_function :set_volatile, :LLVMSetVolatile, [:pointer, :int], :void |
.shutdown ⇒ nil
Deallocate and destroy all ManagedStatic variables.
@see llvm::llvm_shutdown
@see ManagedStatic
840 |
# File 'lib/llvm/core_ffi.rb', line 840 attach_function :shutdown, :LLVMShutdown, [], :void |
.size_of(ty) ⇒ FFI::Pointer(ValueRef)
(Not documented)
2949 |
# File 'lib/llvm/core_ffi.rb', line 2949 attach_function :size_of, :LLVMSizeOf, [:pointer], :pointer |
.size_of_type_in_bits(td, ty) ⇒ Integer
(Not documented)
231 |
# File 'lib/llvm/target_ffi.rb', line 231 attach_function :size_of_type_in_bits, :LLVMSizeOfTypeInBits, [OpaqueTargetData, :pointer], :ulong_long |
.start_multithreaded ⇒ Integer
Deprecated: Multi-threading can only be enabled/disabled with the compile
time define LLVM_ENABLE_THREADS. This function always returns
LLVMIsMultithreaded().
5896 |
# File 'lib/llvm/core_ffi.rb', line 5896 attach_function :start_multithreaded, :LLVMStartMultithreaded, [], :int |
.stop_multithreaded ⇒ nil
Deprecated: Multi-threading can only be enabled/disabled with the compile
time define LLVM_ENABLE_THREADS.
5904 |
# File 'lib/llvm/core_ffi.rb', line 5904 attach_function :stop_multithreaded, :LLVMStopMultithreaded, [], :void |
.store_size_of_type(td, ty) ⇒ Integer
(Not documented)
240 |
# File 'lib/llvm/target_ffi.rb', line 240 attach_function :store_size_of_type, :LLVMStoreSizeOfType, [OpaqueTargetData, :pointer], :ulong_long |
.struct_create_named(c, name) ⇒ FFI::Pointer(TypeRef)
Create an empty structure in a context having a specified name.
1592 |
# File 'lib/llvm/core_ffi.rb', line 1592 attach_function :struct_create_named, :LLVMStructCreateNamed, [:pointer, :string], :pointer |
.struct_get_type_at_index(struct_ty, i) ⇒ FFI::Pointer(TypeRef)
Get the type of the element at a given index in the structure.
1652 |
# File 'lib/llvm/core_ffi.rb', line 1652 attach_function :struct_get_type_at_index, :LLVMStructGetTypeAtIndex, [:pointer, :uint], :pointer |
.struct_set_body(struct_ty, element_types, element_count, packed) ⇒ nil
Set the contents of a structure type.
1615 |
# File 'lib/llvm/core_ffi.rb', line 1615 attach_function :struct_set_body, :LLVMStructSetBody, [:pointer, :pointer, :uint, :int], :void |
.struct_type(element_types, element_count, packed) ⇒ FFI::Pointer(TypeRef)
Create a new structure type in the global context.
1581 |
# File 'lib/llvm/core_ffi.rb', line 1581 attach_function :struct_type, :LLVMStructType, [:pointer, :uint, :int], :pointer |
.struct_type_in_context(c, element_types, element_count, packed) ⇒ FFI::Pointer(TypeRef)
Create a new structure type in a context.
A structure is specified by a list of inner elements/types and whether these can be packed together.
1569 |
# File 'lib/llvm/core_ffi.rb', line 1569 attach_function :struct_type_in_context, :LLVMStructTypeInContext, [:pointer, :pointer, :uint, :int], :pointer |
.target_has_asm_backend(t) ⇒ Integer
Returns if the target as an ASM backend (required for emitting output)
505 |
# File 'lib/llvm/target_ffi.rb', line 505 attach_function :target_has_asm_backend, :LLVMTargetHasAsmBackend, [Target], :int |
.target_has_jit(t) ⇒ Integer
Returns if the target has a JIT
489 |
# File 'lib/llvm/target_ffi.rb', line 489 attach_function :target_has_jit, :LLVMTargetHasJIT, [Target], :int |
.target_has_target_machine(t) ⇒ Integer
Returns if the target has a TargetMachine associated
497 |
# File 'lib/llvm/target_ffi.rb', line 497 attach_function :target_has_target_machine, :LLVMTargetHasTargetMachine, [Target], :int |
.target_machine_emit_to_file(t, m, filename, codegen, error_message) ⇒ Integer
Emits an asm or object file for the given module to the filename. This
wraps several c++ only classes (among them a file stream). Returns any
error in ErrorMessage. Use LLVMDisposeMessage to dispose the message.
597 |
# File 'lib/llvm/target_ffi.rb', line 597 attach_function :target_machine_emit_to_file, :LLVMTargetMachineEmitToFile, [OpaqueTargetMachine, :pointer, :string, :code_gen_file_type, :pointer], :int |
.target_machine_emit_to_memory_buffer(t, m, codegen, error_message, out_mem_buf) ⇒ Integer
Compile the LLVM IR stored in p M and store the result in p OutMemBuf.
609 |
# File 'lib/llvm/target_ffi.rb', line 609 attach_function :target_machine_emit_to_memory_buffer, :LLVMTargetMachineEmitToMemoryBuffer, [OpaqueTargetMachine, :pointer, :code_gen_file_type, :pointer, :pointer], :int |
.type_is_sized(ty) ⇒ Integer
Whether the type has a known size.
Things that don’t have a size are abstract types, labels, and void.a
1258 |
# File 'lib/llvm/core_ffi.rb', line 1258 attach_function :type_is_sized, :LLVMTypeIsSized, [:pointer], :int |
.type_of(val) ⇒ FFI::Pointer(TypeRef)
Obtain the type of a value.
1819 |
# File 'lib/llvm/core_ffi.rb', line 1819 attach_function :type_of, :LLVMTypeOf, [:pointer], :pointer |
.value_as_basic_block(val) ⇒ FFI::Pointer(BasicBlockRef)
Convert an LLVMValueRef to an LLVMBasicBlockRef instance.
4026 |
# File 'lib/llvm/core_ffi.rb', line 4026 attach_function :value_as_basic_block, :LLVMValueAsBasicBlock, [:pointer], :pointer |
.value_is_basic_block(val) ⇒ Integer
Determine whether an LLVMValueRef is itself a basic block.
4018 |
# File 'lib/llvm/core_ffi.rb', line 4018 attach_function :value_is_basic_block, :LLVMValueIsBasicBlock, [:pointer], :int |
.vector_type(element_type, element_count) ⇒ FFI::Pointer(TypeRef)
Create a vector type that contains a defined type and has a specific number of elements.
The created type will exist in the context thats its element type exists in.
1751 |
# File 'lib/llvm/core_ffi.rb', line 1751 attach_function :vector_type, :LLVMVectorType, [:pointer, :uint], :pointer |
.verify_function(fn, action) ⇒ Integer
Verifies that a single function is valid, taking the specified action. Useful
for debugging.
59 |
# File 'lib/llvm/analysis_ffi.rb', line 59 attach_function :verify_function, :LLVMVerifyFunction, [:pointer, :verifier_failure_action], :int |
.verify_module(m, action, out_message) ⇒ Integer
Verifies that a module is valid, taking the specified action if not.
Optionally returns a human-readable description of any invalid constructs.
OutMessage must be disposed with LLVMDisposeMessage.
49 |
# File 'lib/llvm/analysis_ffi.rb', line 49 attach_function :verify_module, :LLVMVerifyModule, [:pointer, :verifier_failure_action, :pointer], :int |
.view_function_cfg(fn) ⇒ nil
Open up a ghostview window that displays the CFG of the current function.
Useful for debugging.
68 |
# File 'lib/llvm/analysis_ffi.rb', line 68 attach_function :view_function_cfg, :LLVMViewFunctionCFG, [:pointer], :void |
.view_function_cfg_only(fn) ⇒ nil
(Not documented)
76 |
# File 'lib/llvm/analysis_ffi.rb', line 76 attach_function :view_function_cfg_only, :LLVMViewFunctionCFGOnly, [:pointer], :void |
.void_type ⇒ FFI::Pointer(TypeRef)
These are similar to the above functions except they operate on the global context.
1795 |
# File 'lib/llvm/core_ffi.rb', line 1795 attach_function :void_type, :LLVMVoidType, [], :pointer |
.void_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a void type in a context.
1771 |
# File 'lib/llvm/core_ffi.rb', line 1771 attach_function :void_type_in_context, :LLVMVoidTypeInContext, [:pointer], :pointer |
.write_bitcode_to_fd(m, fd, should_close, unbuffered) ⇒ Integer
Writes a module to an open file descriptor. Returns 0 on success.
113 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 113 attach_function :write_bitcode_to_fd, :LLVMWriteBitcodeToFD, [:pointer, :int, :int, :int], :int |
.write_bitcode_to_file(m, path) ⇒ Integer
Writes a module to the specified path. Returns 0 on success.
102 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 102 attach_function :write_bitcode_to_file, :LLVMWriteBitcodeToFile, [:pointer, :string], :int |
.write_bitcode_to_file_handle(m, handle) ⇒ Integer
Deprecated for LLVMWriteBitcodeToFD. Writes a module to an open file
descriptor. Returns 0 on success. Closes the Handle.
123 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 123 attach_function :write_bitcode_to_file_handle, :LLVMWriteBitcodeToFileHandle, [:pointer, :int], :int |
.write_bitcode_to_memory_buffer(m) ⇒ FFI::Pointer(MemoryBufferRef)
Writes a module to a new memory buffer and returns it.
131 |
# File 'lib/llvm/core/bitcode_ffi.rb', line 131 attach_function :write_bitcode_to_memory_buffer, :LLVMWriteBitcodeToMemoryBuffer, [:pointer], :pointer |
.x86amx_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
95 |
# File 'lib/llvm/core.rb', line 95 attach_function :x86amx_type, :LLVMX86AMXType, [], :pointer |
.x86fp80_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1484 |
# File 'lib/llvm/core_ffi.rb', line 1484 attach_function :x86fp80_type, :LLVMX86FP80Type, [], :pointer |
.x86fp80_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Obtain a 80-bit floating point type (X87) from a context.
1437 |
# File 'lib/llvm/core_ffi.rb', line 1437 attach_function :x86fp80_type_in_context, :LLVMX86FP80TypeInContext, [:pointer], :pointer |
.x86mmx_type ⇒ FFI::Pointer(TypeRef)
(Not documented)
1809 |
# File 'lib/llvm/core_ffi.rb', line 1809 attach_function :x86mmx_type, :LLVMX86MMXType, [], :pointer |
.x86mmx_type_in_context(c) ⇒ FFI::Pointer(TypeRef)
Create a X86 MMX type in a context.
1787 |
# File 'lib/llvm/core_ffi.rb', line 1787 attach_function :x86mmx_type_in_context, :LLVMX86MMXTypeInContext, [:pointer], :pointer |
Instance Method Details
#for_each_value_subclass(macro) ⇒ Object
15 16 17 |
# File 'lib/llvm/core_ffi.rb', line 15 def for_each_value_subclass(macro) macroARGUMENTmacroBASIC_BLOCKmacroINLINE_ASMmacroUSERmacroCONSTANTmacroBLOCK_ADDRESSmacroCONSTANT_AGGREGATE_ZEROmacroCONSTANT_ARRAYmacroCONSTANT_DATA_SEQUENTIALmacroCONSTANT_DATA_ARRAYmacroCONSTANT_DATA_VECTORmacroCONSTANT_EXPRmacroCONSTANT_FPmacroCONSTANT_INTmacroCONSTANT_POINTER_NULLmacroCONSTANT_STRUCTmacroCONSTANT_TOKEN_NONEmacroCONSTANT_VECTORmacroGLOBAL_VALUEmacroGLOBAL_ALIASmacroGLOBAL_OBJECTmacroFUNCTIONmacroGLOBAL_VARIABLEmacroUNDEF_VALUEmacroINSTRUCTIONmacroBINARY_OPERATORmacroCALL_INSTmacroINTRINSIC_INSTmacroDBG_INFO_INTRINSICmacroDBG_DECLARE_INSTmacroMEM_INTRINSICmacroMEM_CPY_INSTmacroMEM_MOVE_INSTmacroMEM_SET_INSTmacroCMP_INSTmacroF_CMP_INSTmacroI_CMP_INSTmacroEXTRACT_ELEMENT_INSTmacroGET_ELEMENT_PTR_INSTmacroINSERT_ELEMENT_INSTmacroINSERT_VALUE_INSTmacroLANDING_PAD_INSTmacroPHI_NODEmacroSELECT_INSTmacroSHUFFLE_VECTOR_INSTmacroSTORE_INSTmacroTERMINATOR_INSTmacroBRANCH_INSTmacroINDIRECT_BR_INSTmacroINVOKE_INSTmacroRETURN_INSTmacroSWITCH_INSTmacroUNREACHABLE_INSTmacroRESUME_INSTmacroCLEANUP_RETURN_INSTmacroCATCH_RETURN_INSTmacroFUNCLET_PAD_INSTmacroCATCH_PAD_INSTmacroCLEANUP_PAD_INSTmacroUNARY_INSTRUCTIONmacroALLOCA_INSTmacroCAST_INSTmacroADDR_SPACE_CAST_INSTmacroBIT_CAST_INSTmacroFP_EXT_INSTmacroFP_TO_SI_INSTmacroFP_TO_UI_INSTmacroFP_TRUNC_INSTmacroINT_TO_PTR_INSTmacroPTR_TO_INT_INSTmacroS_EXT_INSTmacroSI_TO_FP_INSTmacroTRUNC_INSTmacroUI_TO_FP_INSTmacroZ_EXT_INSTmacroEXTRACT_VALUE_INSTmacroLOAD_INSTmacroVA_ARG_INST end |