Class: LLVM::SwitchInst

Inherits:
Instruction show all
Defined in:
lib/llvm/core/value.rb

Instance Method Summary collapse

Methods inherited from Instruction

#clear_exact!, #clear_nsw!, #clear_nuw!, #exact!, from_ptr, #inspect, #next, #nsw!, #nuw!, #opcode, #parent, #previous

Methods inherited from User

#operands

Methods inherited from Value

#add_attribute, #allocated_type, #allocated_type?, #constant?, #dump, from_ptr, from_ptr_kind, #gep_source_element_type, #gep_source_element_type?, #global_parent, #kind, #name, #name=, #null?, #poison?, #remove_attribute, to_ptr, #to_s, type, #type, #undef?

Methods included from PointerIdentity

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

Instance Method Details

#add_case(val, block) ⇒ Object

Adds a case to a switch instruction. First the value to match on, then the basic block.



1299
1300
1301
# File 'lib/llvm/core/value.rb', line 1299

def add_case(val, block)
  C.add_case(self, val, block)
end