forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c68ed74
commit 895a0bb
Showing
4 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{% skip_file unless LibLLVM::IS_LT_170 %} | ||
|
||
require "./types" | ||
|
||
lib LibLLVM | ||
{% if LibLLVM::IS_LT_170 %} | ||
fun initialize_core = LLVMInitializeCore(r : PassRegistryRef) | ||
fun initialize_transform_utils = LLVMInitializeTransformUtils(r : PassRegistryRef) | ||
fun initialize_scalar_opts = LLVMInitializeScalarOpts(r : PassRegistryRef) | ||
fun initialize_obj_c_arc_opts = LLVMInitializeObjCARCOpts(r : PassRegistryRef) | ||
fun initialize_vectorization = LLVMInitializeVectorization(r : PassRegistryRef) | ||
fun initialize_inst_combine = LLVMInitializeInstCombine(r : PassRegistryRef) | ||
fun initialize_ipo = LLVMInitializeIPO(r : PassRegistryRef) | ||
fun initialize_instrumentation = LLVMInitializeInstrumentation(r : PassRegistryRef) | ||
fun initialize_analysis = LLVMInitializeAnalysis(r : PassRegistryRef) | ||
fun initialize_ipa = LLVMInitializeIPA(r : PassRegistryRef) | ||
fun initialize_code_gen = LLVMInitializeCodeGen(r : PassRegistryRef) | ||
fun initialize_target = LLVMInitializeTarget(r : PassRegistryRef) | ||
{% end %} | ||
fun initialize_core = LLVMInitializeCore(r : PassRegistryRef) | ||
fun initialize_transform_utils = LLVMInitializeTransformUtils(r : PassRegistryRef) | ||
fun initialize_scalar_opts = LLVMInitializeScalarOpts(r : PassRegistryRef) | ||
fun initialize_obj_c_arc_opts = LLVMInitializeObjCARCOpts(r : PassRegistryRef) | ||
fun initialize_vectorization = LLVMInitializeVectorization(r : PassRegistryRef) | ||
fun initialize_inst_combine = LLVMInitializeInstCombine(r : PassRegistryRef) | ||
fun initialize_ipo = LLVMInitializeIPO(r : PassRegistryRef) | ||
fun initialize_instrumentation = LLVMInitializeInstrumentation(r : PassRegistryRef) | ||
fun initialize_analysis = LLVMInitializeAnalysis(r : PassRegistryRef) | ||
fun initialize_ipa = LLVMInitializeIPA(r : PassRegistryRef) | ||
fun initialize_code_gen = LLVMInitializeCodeGen(r : PassRegistryRef) | ||
fun initialize_target = LLVMInitializeTarget(r : PassRegistryRef) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{% skip_file if LibLLVM::IS_LT_130 %} | ||
|
||
require "../target_machine" | ||
require "../types" | ||
|
||
lib LibLLVM | ||
{% unless LibLLVM::IS_LT_130 %} | ||
type PassBuilderOptionsRef = Void* | ||
type PassBuilderOptionsRef = Void* | ||
|
||
fun run_passes = LLVMRunPasses(m : ModuleRef, passes : Char*, tm : TargetMachineRef, options : PassBuilderOptionsRef) : ErrorRef | ||
fun run_passes = LLVMRunPasses(m : ModuleRef, passes : Char*, tm : TargetMachineRef, options : PassBuilderOptionsRef) : ErrorRef | ||
|
||
fun create_pass_builder_options = LLVMCreatePassBuilderOptions : PassBuilderOptionsRef | ||
fun dispose_pass_builder_options = LLVMDisposePassBuilderOptions(options : PassBuilderOptionsRef) | ||
{% end %} | ||
fun create_pass_builder_options = LLVMCreatePassBuilderOptions : PassBuilderOptionsRef | ||
fun dispose_pass_builder_options = LLVMDisposePassBuilderOptions(options : PassBuilderOptionsRef) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{% skip_file unless LibLLVM::IS_LT_170 %} | ||
|
||
require "../types" | ||
|
||
lib LibLLVM | ||
{% if LibLLVM::IS_LT_170 %} | ||
type PassManagerBuilderRef = Void* | ||
type PassManagerBuilderRef = Void* | ||
|
||
fun pass_manager_builder_create = LLVMPassManagerBuilderCreate : PassManagerBuilderRef | ||
fun dispose_pass_manager_builder = LLVMPassManagerBuilderDispose(pmb : PassManagerBuilderRef) | ||
fun pass_manager_builder_set_opt_level = LLVMPassManagerBuilderSetOptLevel(pmb : PassManagerBuilderRef, opt_level : UInt) | ||
fun pass_manager_builder_set_size_level = LLVMPassManagerBuilderSetSizeLevel(pmb : PassManagerBuilderRef, size_level : UInt) | ||
fun pass_manager_builder_set_disable_unroll_loops = LLVMPassManagerBuilderSetDisableUnrollLoops(pmb : PassManagerBuilderRef, value : Bool) | ||
fun pass_manager_builder_set_disable_simplify_lib_calls = LLVMPassManagerBuilderSetDisableSimplifyLibCalls(pmb : PassManagerBuilderRef, value : Bool) | ||
fun pass_manager_builder_use_inliner_with_threshold = LLVMPassManagerBuilderUseInlinerWithThreshold(pmb : PassManagerBuilderRef, threshold : UInt) | ||
fun pass_manager_builder_populate_function_pass_manager = LLVMPassManagerBuilderPopulateFunctionPassManager(pmb : PassManagerBuilderRef, pm : PassManagerRef) | ||
fun pass_manager_builder_populate_module_pass_manager = LLVMPassManagerBuilderPopulateModulePassManager(pmb : PassManagerBuilderRef, pm : PassManagerRef) | ||
{% end %} | ||
fun pass_manager_builder_create = LLVMPassManagerBuilderCreate : PassManagerBuilderRef | ||
fun dispose_pass_manager_builder = LLVMPassManagerBuilderDispose(pmb : PassManagerBuilderRef) | ||
fun pass_manager_builder_set_opt_level = LLVMPassManagerBuilderSetOptLevel(pmb : PassManagerBuilderRef, opt_level : UInt) | ||
fun pass_manager_builder_set_size_level = LLVMPassManagerBuilderSetSizeLevel(pmb : PassManagerBuilderRef, size_level : UInt) | ||
fun pass_manager_builder_set_disable_unroll_loops = LLVMPassManagerBuilderSetDisableUnrollLoops(pmb : PassManagerBuilderRef, value : Bool) | ||
fun pass_manager_builder_set_disable_simplify_lib_calls = LLVMPassManagerBuilderSetDisableSimplifyLibCalls(pmb : PassManagerBuilderRef, value : Bool) | ||
fun pass_manager_builder_use_inliner_with_threshold = LLVMPassManagerBuilderUseInlinerWithThreshold(pmb : PassManagerBuilderRef, threshold : UInt) | ||
fun pass_manager_builder_populate_function_pass_manager = LLVMPassManagerBuilderPopulateFunctionPassManager(pmb : PassManagerBuilderRef, pm : PassManagerRef) | ||
fun pass_manager_builder_populate_module_pass_manager = LLVMPassManagerBuilderPopulateModulePassManager(pmb : PassManagerBuilderRef, pm : PassManagerRef) | ||
end |