ruby-llvm 16.0.1 → 18.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,106 +0,0 @@
1
- # Generated by ffi_gen. Please do not change this file by hand.
2
-
3
- require 'ffi'
4
-
5
- module LLVM::C
6
- extend FFI::Library
7
- ffi_lib ["libLLVM-16.so.1", "libLLVM.so.16", "LLVM-16"]
8
-
9
- def self.attach_function(name, *_)
10
- begin; super; rescue FFI::NotFoundError => e
11
- (class << self; self; end).class_eval { define_method(name) { |*_| raise e } }
12
- end
13
- end
14
-
15
- # (Not documented)
16
- class OpaquePassManagerBuilder < FFI::Struct
17
- layout :dummy, :char
18
- end
19
-
20
- # See llvm::PassManagerBuilder.
21
- #
22
- # @method pass_manager_builder_create()
23
- # @return [OpaquePassManagerBuilder]
24
- # @scope class
25
- attach_function :pass_manager_builder_create, :LLVMPassManagerBuilderCreate, [], OpaquePassManagerBuilder
26
-
27
- # (Not documented)
28
- #
29
- # @method pass_manager_builder_dispose(pmb)
30
- # @param [OpaquePassManagerBuilder] pmb
31
- # @return [nil]
32
- # @scope class
33
- attach_function :pass_manager_builder_dispose, :LLVMPassManagerBuilderDispose, [OpaquePassManagerBuilder], :void
34
-
35
- # See llvm::PassManagerBuilder::OptLevel.
36
- #
37
- # @method pass_manager_builder_set_opt_level(pmb, opt_level)
38
- # @param [OpaquePassManagerBuilder] pmb
39
- # @param [Integer] opt_level
40
- # @return [nil]
41
- # @scope class
42
- attach_function :pass_manager_builder_set_opt_level, :LLVMPassManagerBuilderSetOptLevel, [OpaquePassManagerBuilder, :uint], :void
43
-
44
- # See llvm::PassManagerBuilder::SizeLevel.
45
- #
46
- # @method pass_manager_builder_set_size_level(pmb, size_level)
47
- # @param [OpaquePassManagerBuilder] pmb
48
- # @param [Integer] size_level
49
- # @return [nil]
50
- # @scope class
51
- attach_function :pass_manager_builder_set_size_level, :LLVMPassManagerBuilderSetSizeLevel, [OpaquePassManagerBuilder, :uint], :void
52
-
53
- # See llvm::PassManagerBuilder::DisableUnitAtATime.
54
- #
55
- # @method pass_manager_builder_set_disable_unit_at_a_time(pmb, value)
56
- # @param [OpaquePassManagerBuilder] pmb
57
- # @param [Integer] value
58
- # @return [nil]
59
- # @scope class
60
- attach_function :pass_manager_builder_set_disable_unit_at_a_time, :LLVMPassManagerBuilderSetDisableUnitAtATime, [OpaquePassManagerBuilder, :int], :void
61
-
62
- # See llvm::PassManagerBuilder::DisableUnrollLoops.
63
- #
64
- # @method pass_manager_builder_set_disable_unroll_loops(pmb, value)
65
- # @param [OpaquePassManagerBuilder] pmb
66
- # @param [Integer] value
67
- # @return [nil]
68
- # @scope class
69
- attach_function :pass_manager_builder_set_disable_unroll_loops, :LLVMPassManagerBuilderSetDisableUnrollLoops, [OpaquePassManagerBuilder, :int], :void
70
-
71
- # See llvm::PassManagerBuilder::DisableSimplifyLibCalls
72
- #
73
- # @method pass_manager_builder_set_disable_simplify_lib_calls(pmb, value)
74
- # @param [OpaquePassManagerBuilder] pmb
75
- # @param [Integer] value
76
- # @return [nil]
77
- # @scope class
78
- attach_function :pass_manager_builder_set_disable_simplify_lib_calls, :LLVMPassManagerBuilderSetDisableSimplifyLibCalls, [OpaquePassManagerBuilder, :int], :void
79
-
80
- # See llvm::PassManagerBuilder::Inliner.
81
- #
82
- # @method pass_manager_builder_use_inliner_with_threshold(pmb, threshold)
83
- # @param [OpaquePassManagerBuilder] pmb
84
- # @param [Integer] threshold
85
- # @return [nil]
86
- # @scope class
87
- attach_function :pass_manager_builder_use_inliner_with_threshold, :LLVMPassManagerBuilderUseInlinerWithThreshold, [OpaquePassManagerBuilder, :uint], :void
88
-
89
- # See llvm::PassManagerBuilder::populateFunctionPassManager.
90
- #
91
- # @method pass_manager_builder_populate_function_pass_manager(pmb, pm)
92
- # @param [OpaquePassManagerBuilder] pmb
93
- # @param [FFI::Pointer(PassManagerRef)] pm
94
- # @return [nil]
95
- # @scope class
96
- attach_function :pass_manager_builder_populate_function_pass_manager, :LLVMPassManagerBuilderPopulateFunctionPassManager, [OpaquePassManagerBuilder, :pointer], :void
97
-
98
- # See llvm::PassManagerBuilder::populateModulePassManager.
99
- #
100
- # @method pass_manager_builder_populate_module_pass_manager(pmb, pm)
101
- # @param [OpaquePassManagerBuilder] pmb
102
- # @param [FFI::Pointer(PassManagerRef)] pm
103
- # @return [nil]
104
- # @scope class
105
- attach_function :pass_manager_builder_populate_module_pass_manager, :LLVMPassManagerBuilderPopulateModulePassManager, [OpaquePassManagerBuilder, :pointer], :void
106
- end
@@ -1,111 +0,0 @@
1
- # Generated by ffi_gen. Please do not change this file by hand.
2
-
3
- require 'ffi'
4
-
5
- module LLVM::C
6
- extend FFI::Library
7
- ffi_lib ["libLLVM-16.so.1", "libLLVM.so.16", "LLVM-16"]
8
-
9
- def self.attach_function(name, *_)
10
- begin; super; rescue FFI::NotFoundError => e
11
- (class << self; self; end).class_eval { define_method(name) { |*_| raise e } }
12
- end
13
- end
14
-
15
- # See llvm::createConstantMergePass function.
16
- #
17
- # @method add_constant_merge_pass(pm)
18
- # @param [FFI::Pointer(PassManagerRef)] pm
19
- # @return [nil]
20
- # @scope class
21
- attach_function :add_constant_merge_pass, :LLVMAddConstantMergePass, [:pointer], :void
22
-
23
- # See llvm::createDeadArgEliminationPass function.
24
- #
25
- # @method add_dead_arg_elimination_pass(pm)
26
- # @param [FFI::Pointer(PassManagerRef)] pm
27
- # @return [nil]
28
- # @scope class
29
- attach_function :add_dead_arg_elimination_pass, :LLVMAddDeadArgEliminationPass, [:pointer], :void
30
-
31
- # See llvm::createFunctionAttrsPass function.
32
- #
33
- # @method add_function_attrs_pass(pm)
34
- # @param [FFI::Pointer(PassManagerRef)] pm
35
- # @return [nil]
36
- # @scope class
37
- attach_function :add_function_attrs_pass, :LLVMAddFunctionAttrsPass, [:pointer], :void
38
-
39
- # See llvm::createFunctionInliningPass function.
40
- #
41
- # @method add_function_inlining_pass(pm)
42
- # @param [FFI::Pointer(PassManagerRef)] pm
43
- # @return [nil]
44
- # @scope class
45
- attach_function :add_function_inlining_pass, :LLVMAddFunctionInliningPass, [:pointer], :void
46
-
47
- # See llvm::createAlwaysInlinerPass function.
48
- #
49
- # @method add_always_inliner_pass(pm)
50
- # @param [FFI::Pointer(PassManagerRef)] pm
51
- # @return [nil]
52
- # @scope class
53
- attach_function :add_always_inliner_pass, :LLVMAddAlwaysInlinerPass, [:pointer], :void
54
-
55
- # See llvm::createGlobalDCEPass function.
56
- #
57
- # @method add_global_dce_pass(pm)
58
- # @param [FFI::Pointer(PassManagerRef)] pm
59
- # @return [nil]
60
- # @scope class
61
- attach_function :add_global_dce_pass, :LLVMAddGlobalDCEPass, [:pointer], :void
62
-
63
- # See llvm::createGlobalOptimizerPass function.
64
- #
65
- # @method add_global_optimizer_pass(pm)
66
- # @param [FFI::Pointer(PassManagerRef)] pm
67
- # @return [nil]
68
- # @scope class
69
- attach_function :add_global_optimizer_pass, :LLVMAddGlobalOptimizerPass, [:pointer], :void
70
-
71
- # See llvm::createPruneEHPass function.
72
- #
73
- # @method add_prune_eh_pass(pm)
74
- # @param [FFI::Pointer(PassManagerRef)] pm
75
- # @return [nil]
76
- # @scope class
77
- attach_function :add_prune_eh_pass, :LLVMAddPruneEHPass, [:pointer], :void
78
-
79
- # See llvm::createIPSCCPPass function.
80
- #
81
- # @method add_ipsccp_pass(pm)
82
- # @param [FFI::Pointer(PassManagerRef)] pm
83
- # @return [nil]
84
- # @scope class
85
- attach_function :add_ipsccp_pass, :LLVMAddIPSCCPPass, [:pointer], :void
86
-
87
- # See llvm::createInternalizePass function.
88
- #
89
- # @method add_internalize_pass(pass_manager_ref, all_but_main)
90
- # @param [FFI::Pointer(PassManagerRef)] pass_manager_ref
91
- # @param [Integer] all_but_main
92
- # @return [nil]
93
- # @scope class
94
- attach_function :add_internalize_pass, :LLVMAddInternalizePass, [:pointer, :uint], :void
95
-
96
- # See llvm::createStripDeadPrototypesPass function.
97
- #
98
- # @method add_strip_dead_prototypes_pass(pm)
99
- # @param [FFI::Pointer(PassManagerRef)] pm
100
- # @return [nil]
101
- # @scope class
102
- attach_function :add_strip_dead_prototypes_pass, :LLVMAddStripDeadPrototypesPass, [:pointer], :void
103
-
104
- # See llvm::createStripSymbolsPass function.
105
- #
106
- # @method add_strip_symbols_pass(pm)
107
- # @param [FFI::Pointer(PassManagerRef)] pm
108
- # @return [nil]
109
- # @scope class
110
- attach_function :add_strip_symbols_pass, :LLVMAddStripSymbolsPass, [:pointer], :void
111
- end
@@ -1,320 +0,0 @@
1
- # Generated by ffi_gen. Please do not change this file by hand.
2
-
3
- require 'ffi'
4
-
5
- module LLVM::C
6
- extend FFI::Library
7
- ffi_lib ["libLLVM-16.so.1", "libLLVM.so.16", "LLVM-16"]
8
-
9
- def self.attach_function(name, *_)
10
- begin; super; rescue FFI::NotFoundError => e
11
- (class << self; self; end).class_eval { define_method(name) { |*_| raise e } }
12
- end
13
- end
14
-
15
- # See llvm::createAggressiveDCEPass function.
16
- #
17
- # @method add_aggressive_dce_pass(pm)
18
- # @param [FFI::Pointer(PassManagerRef)] pm
19
- # @return [nil]
20
- # @scope class
21
- attach_function :add_aggressive_dce_pass, :LLVMAddAggressiveDCEPass, [:pointer], :void
22
-
23
- # See llvm::createBitTrackingDCEPass function.
24
- #
25
- # @method add_bit_tracking_dce_pass(pm)
26
- # @param [FFI::Pointer(PassManagerRef)] pm
27
- # @return [nil]
28
- # @scope class
29
- attach_function :add_bit_tracking_dce_pass, :LLVMAddBitTrackingDCEPass, [:pointer], :void
30
-
31
- # See llvm::createAlignmentFromAssumptionsPass function.
32
- #
33
- # @method add_alignment_from_assumptions_pass(pm)
34
- # @param [FFI::Pointer(PassManagerRef)] pm
35
- # @return [nil]
36
- # @scope class
37
- attach_function :add_alignment_from_assumptions_pass, :LLVMAddAlignmentFromAssumptionsPass, [:pointer], :void
38
-
39
- # See llvm::createCFGSimplificationPass function.
40
- #
41
- # @method add_cfg_simplification_pass(pm)
42
- # @param [FFI::Pointer(PassManagerRef)] pm
43
- # @return [nil]
44
- # @scope class
45
- attach_function :add_cfg_simplification_pass, :LLVMAddCFGSimplificationPass, [:pointer], :void
46
-
47
- # See llvm::createLateCFGSimplificationPass function.
48
- #
49
- # @method add_late_cfg_simplification_pass(pm)
50
- # @param [FFI::Pointer(PassManagerRef)] pm
51
- # @return [nil]
52
- # @scope class
53
- attach_function :add_late_cfg_simplification_pass, :LLVMAddLateCFGSimplificationPass, [:pointer], :void
54
-
55
- # See llvm::createDeadStoreEliminationPass function.
56
- #
57
- # @method add_dead_store_elimination_pass(pm)
58
- # @param [FFI::Pointer(PassManagerRef)] pm
59
- # @return [nil]
60
- # @scope class
61
- attach_function :add_dead_store_elimination_pass, :LLVMAddDeadStoreEliminationPass, [:pointer], :void
62
-
63
- # See llvm::createScalarizerPass function.
64
- #
65
- # @method add_scalarizer_pass(pm)
66
- # @param [FFI::Pointer(PassManagerRef)] pm
67
- # @return [nil]
68
- # @scope class
69
- attach_function :add_scalarizer_pass, :LLVMAddScalarizerPass, [:pointer], :void
70
-
71
- # See llvm::createMergedLoadStoreMotionPass function.
72
- #
73
- # @method add_merged_load_store_motion_pass(pm)
74
- # @param [FFI::Pointer(PassManagerRef)] pm
75
- # @return [nil]
76
- # @scope class
77
- attach_function :add_merged_load_store_motion_pass, :LLVMAddMergedLoadStoreMotionPass, [:pointer], :void
78
-
79
- # See llvm::createGVNPass function.
80
- #
81
- # @method add_gvn_pass(pm)
82
- # @param [FFI::Pointer(PassManagerRef)] pm
83
- # @return [nil]
84
- # @scope class
85
- attach_function :add_gvn_pass, :LLVMAddGVNPass, [:pointer], :void
86
-
87
- # See llvm::createGVNPass function.
88
- #
89
- # @method add_new_gvn_pass(pm)
90
- # @param [FFI::Pointer(PassManagerRef)] pm
91
- # @return [nil]
92
- # @scope class
93
- attach_function :add_new_gvn_pass, :LLVMAddNewGVNPass, [:pointer], :void
94
-
95
- # See llvm::createIndVarSimplifyPass function.
96
- #
97
- # @method add_ind_var_simplify_pass(pm)
98
- # @param [FFI::Pointer(PassManagerRef)] pm
99
- # @return [nil]
100
- # @scope class
101
- attach_function :add_ind_var_simplify_pass, :LLVMAddIndVarSimplifyPass, [:pointer], :void
102
-
103
- # See llvm::createInstructionCombiningPass function.
104
- #
105
- # @method add_instruction_combining_pass(pm)
106
- # @param [FFI::Pointer(PassManagerRef)] pm
107
- # @return [nil]
108
- # @scope class
109
- attach_function :add_instruction_combining_pass, :LLVMAddInstructionCombiningPass, [:pointer], :void
110
-
111
- # See llvm::createJumpThreadingPass function.
112
- #
113
- # @method add_jump_threading_pass(pm)
114
- # @param [FFI::Pointer(PassManagerRef)] pm
115
- # @return [nil]
116
- # @scope class
117
- attach_function :add_jump_threading_pass, :LLVMAddJumpThreadingPass, [:pointer], :void
118
-
119
- # See llvm::createLICMPass function.
120
- #
121
- # @method add_licm_pass(pm)
122
- # @param [FFI::Pointer(PassManagerRef)] pm
123
- # @return [nil]
124
- # @scope class
125
- attach_function :add_licm_pass, :LLVMAddLICMPass, [:pointer], :void
126
-
127
- # See llvm::createLoopDeletionPass function.
128
- #
129
- # @method add_loop_deletion_pass(pm)
130
- # @param [FFI::Pointer(PassManagerRef)] pm
131
- # @return [nil]
132
- # @scope class
133
- attach_function :add_loop_deletion_pass, :LLVMAddLoopDeletionPass, [:pointer], :void
134
-
135
- # See llvm::createLoopIdiomPass function
136
- #
137
- # @method add_loop_idiom_pass(pm)
138
- # @param [FFI::Pointer(PassManagerRef)] pm
139
- # @return [nil]
140
- # @scope class
141
- attach_function :add_loop_idiom_pass, :LLVMAddLoopIdiomPass, [:pointer], :void
142
-
143
- # See llvm::createLoopRotatePass function.
144
- #
145
- # @method add_loop_rotate_pass(pm)
146
- # @param [FFI::Pointer(PassManagerRef)] pm
147
- # @return [nil]
148
- # @scope class
149
- attach_function :add_loop_rotate_pass, :LLVMAddLoopRotatePass, [:pointer], :void
150
-
151
- # See llvm::createLoopRerollPass function.
152
- #
153
- # @method add_loop_reroll_pass(pm)
154
- # @param [FFI::Pointer(PassManagerRef)] pm
155
- # @return [nil]
156
- # @scope class
157
- attach_function :add_loop_reroll_pass, :LLVMAddLoopRerollPass, [:pointer], :void
158
-
159
- # See llvm::createLoopUnrollPass function.
160
- #
161
- # @method add_loop_unroll_pass(pm)
162
- # @param [FFI::Pointer(PassManagerRef)] pm
163
- # @return [nil]
164
- # @scope class
165
- attach_function :add_loop_unroll_pass, :LLVMAddLoopUnrollPass, [:pointer], :void
166
-
167
- # See llvm::createMemCpyOptPass function.
168
- #
169
- # @method add_mem_cpy_opt_pass(pm)
170
- # @param [FFI::Pointer(PassManagerRef)] pm
171
- # @return [nil]
172
- # @scope class
173
- attach_function :add_mem_cpy_opt_pass, :LLVMAddMemCpyOptPass, [:pointer], :void
174
-
175
- # See llvm::createPartiallyInlineLibCallsPass function.
176
- #
177
- # @method add_partially_inline_lib_calls_pass(pm)
178
- # @param [FFI::Pointer(PassManagerRef)] pm
179
- # @return [nil]
180
- # @scope class
181
- attach_function :add_partially_inline_lib_calls_pass, :LLVMAddPartiallyInlineLibCallsPass, [:pointer], :void
182
-
183
- # See llvm::createLowerSwitchPass function.
184
- #
185
- # @method add_lower_switch_pass(pm)
186
- # @param [FFI::Pointer(PassManagerRef)] pm
187
- # @return [nil]
188
- # @scope class
189
- attach_function :add_lower_switch_pass, :LLVMAddLowerSwitchPass, [:pointer], :void
190
-
191
- # See llvm::createPromoteMemoryToRegisterPass function.
192
- #
193
- # @method add_promote_memory_to_register_pass(pm)
194
- # @param [FFI::Pointer(PassManagerRef)] pm
195
- # @return [nil]
196
- # @scope class
197
- attach_function :add_promote_memory_to_register_pass, :LLVMAddPromoteMemoryToRegisterPass, [:pointer], :void
198
-
199
- # See llvm::createReassociatePass function.
200
- #
201
- # @method add_reassociate_pass(pm)
202
- # @param [FFI::Pointer(PassManagerRef)] pm
203
- # @return [nil]
204
- # @scope class
205
- attach_function :add_reassociate_pass, :LLVMAddReassociatePass, [:pointer], :void
206
-
207
- # See llvm::createSCCPPass function.
208
- #
209
- # @method add_sccp_pass(pm)
210
- # @param [FFI::Pointer(PassManagerRef)] pm
211
- # @return [nil]
212
- # @scope class
213
- attach_function :add_sccp_pass, :LLVMAddSCCPPass, [:pointer], :void
214
-
215
- # See llvm::createSROAPass function.
216
- #
217
- # @method add_scalar_repl_aggregates_pass(pm)
218
- # @param [FFI::Pointer(PassManagerRef)] pm
219
- # @return [nil]
220
- # @scope class
221
- attach_function :add_scalar_repl_aggregates_pass, :LLVMAddScalarReplAggregatesPass, [:pointer], :void
222
-
223
- # See llvm::createSROAPass function.
224
- #
225
- # @method add_scalar_repl_aggregates_pass_ssa(pm)
226
- # @param [FFI::Pointer(PassManagerRef)] pm
227
- # @return [nil]
228
- # @scope class
229
- attach_function :add_scalar_repl_aggregates_pass_ssa, :LLVMAddScalarReplAggregatesPassSSA, [:pointer], :void
230
-
231
- # See llvm::createSROAPass function.
232
- #
233
- # @method add_scalar_repl_aggregates_pass_with_threshold(pm, threshold)
234
- # @param [FFI::Pointer(PassManagerRef)] pm
235
- # @param [Integer] threshold
236
- # @return [nil]
237
- # @scope class
238
- attach_function :add_scalar_repl_aggregates_pass_with_threshold, :LLVMAddScalarReplAggregatesPassWithThreshold, [:pointer, :int], :void
239
-
240
- # See llvm::createTailCallEliminationPass function.
241
- #
242
- # @method add_tail_call_elimination_pass(pm)
243
- # @param [FFI::Pointer(PassManagerRef)] pm
244
- # @return [nil]
245
- # @scope class
246
- attach_function :add_tail_call_elimination_pass, :LLVMAddTailCallEliminationPass, [:pointer], :void
247
-
248
- # See llvm::demotePromoteMemoryToRegisterPass function.
249
- #
250
- # @method add_demote_memory_to_register_pass(pm)
251
- # @param [FFI::Pointer(PassManagerRef)] pm
252
- # @return [nil]
253
- # @scope class
254
- attach_function :add_demote_memory_to_register_pass, :LLVMAddDemoteMemoryToRegisterPass, [:pointer], :void
255
-
256
- # See llvm::createVerifierPass function.
257
- #
258
- # @method add_verifier_pass(pm)
259
- # @param [FFI::Pointer(PassManagerRef)] pm
260
- # @return [nil]
261
- # @scope class
262
- attach_function :add_verifier_pass, :LLVMAddVerifierPass, [:pointer], :void
263
-
264
- # See llvm::createCorrelatedValuePropagationPass function
265
- #
266
- # @method add_correlated_value_propagation_pass(pm)
267
- # @param [FFI::Pointer(PassManagerRef)] pm
268
- # @return [nil]
269
- # @scope class
270
- attach_function :add_correlated_value_propagation_pass, :LLVMAddCorrelatedValuePropagationPass, [:pointer], :void
271
-
272
- # See llvm::createEarlyCSEPass function
273
- #
274
- # @method add_early_cse_pass(pm)
275
- # @param [FFI::Pointer(PassManagerRef)] pm
276
- # @return [nil]
277
- # @scope class
278
- attach_function :add_early_cse_pass, :LLVMAddEarlyCSEPass, [:pointer], :void
279
-
280
- # See llvm::createEarlyCSEPass function
281
- #
282
- # @method add_early_cse_mem_ssa_pass(pm)
283
- # @param [FFI::Pointer(PassManagerRef)] pm
284
- # @return [nil]
285
- # @scope class
286
- attach_function :add_early_cse_mem_ssa_pass, :LLVMAddEarlyCSEMemSSAPass, [:pointer], :void
287
-
288
- # See llvm::createLowerExpectIntrinsicPass function
289
- #
290
- # @method add_lower_expect_intrinsic_pass(pm)
291
- # @param [FFI::Pointer(PassManagerRef)] pm
292
- # @return [nil]
293
- # @scope class
294
- attach_function :add_lower_expect_intrinsic_pass, :LLVMAddLowerExpectIntrinsicPass, [:pointer], :void
295
-
296
- # See llvm::createTypeBasedAliasAnalysisPass function
297
- #
298
- # @method add_type_based_alias_analysis_pass(pm)
299
- # @param [FFI::Pointer(PassManagerRef)] pm
300
- # @return [nil]
301
- # @scope class
302
- attach_function :add_type_based_alias_analysis_pass, :LLVMAddTypeBasedAliasAnalysisPass, [:pointer], :void
303
-
304
- # See llvm::createScopedNoAliasAAPass function
305
- #
306
- # @method add_scoped_no_alias_aa_pass(pm)
307
- # @param [FFI::Pointer(PassManagerRef)] pm
308
- # @return [nil]
309
- # @scope class
310
- attach_function :add_scoped_no_alias_aa_pass, :LLVMAddScopedNoAliasAAPass, [:pointer], :void
311
-
312
- # See llvm::createBasicAliasAnalysisPass function
313
- #
314
- # @method add_basic_alias_analysis_pass(pm)
315
- # @param [FFI::Pointer(PassManagerRef)] pm
316
- # @return [nil]
317
- # @scope class
318
- attach_function :add_basic_alias_analysis_pass, :LLVMAddBasicAliasAnalysisPass, [:pointer], :void
319
-
320
- end
@@ -1,38 +0,0 @@
1
- # Generated by ffi_gen. Please do not change this file by hand.
2
-
3
- require 'ffi'
4
-
5
- module LLVM::C
6
- extend FFI::Library
7
- ffi_lib ["libLLVM-16.so.1", "libLLVM.so.16", "LLVM-16"]
8
-
9
- def self.attach_function(name, *_)
10
- begin; super; rescue FFI::NotFoundError => e
11
- (class << self; self; end).class_eval { define_method(name) { |*_| raise e } }
12
- end
13
- end
14
-
15
- # DEPRECATED - Use LLVMAddSLPVectorizePass
16
- #
17
- # @method add_bb_vectorize_pass(pm)
18
- # @param [FFI::Pointer(PassManagerRef)] pm
19
- # @return [nil]
20
- # @scope class
21
- attach_function :add_bb_vectorize_pass, :LLVMAddBBVectorizePass, [:pointer], :void
22
-
23
- # See llvm::createLoopVectorizePass function.
24
- #
25
- # @method add_loop_vectorize_pass(pm)
26
- # @param [FFI::Pointer(PassManagerRef)] pm
27
- # @return [nil]
28
- # @scope class
29
- attach_function :add_loop_vectorize_pass, :LLVMAddLoopVectorizePass, [:pointer], :void
30
-
31
- # See llvm::createSLPVectorizerPass function.
32
- #
33
- # @method add_slp_vectorize_pass(pm)
34
- # @param [FFI::Pointer(PassManagerRef)] pm
35
- # @return [nil]
36
- # @scope class
37
- attach_function :add_slp_vectorize_pass, :LLVMAddSLPVectorizePass, [:pointer], :void
38
- end