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.
Attributes included from PointerIdentity
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.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 13 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.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def inliner_threshold @inliner_threshold end |
#opt_level ⇒ Object
Returns the value of attribute opt_level.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def opt_level @opt_level end |
#simplify_lib_calls ⇒ Object
Returns the value of attribute simplify_lib_calls.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def simplify_lib_calls @simplify_lib_calls end |
#size_level ⇒ Object
Returns the value of attribute size_level.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def size_level @size_level end |
#unit_at_a_time ⇒ Object
Returns the value of attribute unit_at_a_time.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def unit_at_a_time @unit_at_a_time end |
#unroll_loops ⇒ Object
Returns the value of attribute unroll_loops.
11 12 13 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 11 def unroll_loops @unroll_loops end |
Instance Method Details
#build(_pass_manager) ⇒ Object
Populate a pass manager.
64 65 66 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 64 def build(_pass_manager) raise DeprecationError end |
#build_with_lto(_pass_manager, _internalize = false, _run_inliner = false) ⇒ Object
Populate an LTO pass manager.
70 71 72 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 70 def build_with_lto(_pass_manager, _internalize = false, _run_inliner = false) # rubocop:disable Style/OptionalBooleanParameter raise DeprecationError end |
#dispose ⇒ Object
24 |
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 24 def dispose; end |