Class: LLVM::PassManagerBuilder
- Inherits:
-
Object
- Object
- LLVM::PassManagerBuilder
- Includes:
- PointerIdentity
- Defined in:
- lib/llvm/transforms/pass_manager_builder.rb
Instance Attribute Summary collapse
-
#inliner_threshold ⇒ Object
Returns the value of attribute inliner_threshold.
-
#opt_level ⇒ Object
Returns the value of attribute opt_level.
-
#simplify_lib_calls ⇒ Object
Returns the value of attribute simplify_lib_calls.
-
#size_level ⇒ Object
Returns the value of attribute size_level.
-
#unit_at_a_time ⇒ Object
Returns the value of attribute unit_at_a_time.
-
#unroll_loops ⇒ Object
Returns the value of attribute unroll_loops.
Instance Method Summary collapse
-
#build(_pass_manager) ⇒ Object
Populate a pass manager.
-
#build_with_lto(_pass_manager, _internalize = false, _run_inliner = false) ⇒ Object
Populate an LTO pass manager.
- #dispose ⇒ Object
-
#initialize ⇒ PassManagerBuilder
constructor
A new instance of PassManagerBuilder.
Methods included from PointerIdentity
Constructor Details
#initialize ⇒ PassManagerBuilder
Returns a new instance of PassManagerBuilder.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 12 def initialize @ptr = nil @size_level = 0 @opt_level = 0 @unit_at_a_time = false @unroll_loops = false @simplify_lib_calls = false @inliner_threshold = 0 end |
Instance Attribute Details
#inliner_threshold ⇒ Object
Returns the value of attribute inliner_threshold.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def inliner_threshold @inliner_threshold end |
#opt_level ⇒ Object
Returns the value of attribute opt_level.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def opt_level @opt_level end |
#simplify_lib_calls ⇒ Object
Returns the value of attribute simplify_lib_calls.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def simplify_lib_calls @simplify_lib_calls end |
#size_level ⇒ Object
Returns the value of attribute size_level.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def size_level @size_level end |
#unit_at_a_time ⇒ Object
Returns the value of attribute unit_at_a_time.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def unit_at_a_time @unit_at_a_time end |
#unroll_loops ⇒ Object
Returns the value of attribute unroll_loops.
10 11 12 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 10 def unroll_loops @unroll_loops end |
Instance Method Details
#build(_pass_manager) ⇒ Object
Populate a pass manager.
63 64 65 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 63 def build(_pass_manager) raise DeprecationError end |
#build_with_lto(_pass_manager, _internalize = false, _run_inliner = false) ⇒ Object
Populate an LTO pass manager.
69 70 71 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 69 def build_with_lto(_pass_manager, _internalize = false, _run_inliner = false) # rubocop:disable Style/OptionalBooleanParameter raise DeprecationError end |
#dispose ⇒ Object
23 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 23 def dispose; end |