Class: LLVM::PassManagerBuilder

Inherits:
Object
  • Object
show all
Includes:
PointerIdentity
Defined in:
lib/llvm/transforms/pass_manager_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PointerIdentity

#==, #eql?, #hash, #to_ptr

Constructor Details

#initializePassManagerBuilder

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_thresholdObject

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_levelObject

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_callsObject

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_levelObject

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_timeObject

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_loopsObject

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.

Parameters:

Raises:



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.

Parameters:

Raises:



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

#disposeObject



23
# File 'lib/llvm/transforms/pass_manager_builder.rb', line 23

def dispose; end