|title: Function (llvm.core)|
Create a function named name of type func_ty in the module module_obj and return a Function object that represents it.
Return a Function object to represent the function named name in the module module_obj or raise LLVMException if such a function does not exist.
Similar to get, except that if the function does not exist it is added first, as though with new.
Setting to True sets the ATTR_NO_UNWIND attribute, False removes it. Shortcut to using f.add_attribute(ATTR_NO_UNWIND) and f.remove_attribute(ATTR_NO_UNWIND).
List of llvm.core.Argument objects representing the formal arguments of the function.
Number of basic blocks belonging to this function. Same as len(f.basic_blocks) but faster if you just want the count.
The llvm.core.BasicBlock object representing the entry basic block for this function, or None if there are no basic blocks.
List of llvm.core.BasicBlock objects representing the basic blocks belonging to this function.
Returns the ID of the intrinsic if this object represents an intrinsic instruction. Otherwise 0.
Deletes the function from it’s module. Do not hold any references to this object after calling delete on it.
Add a new basic block named name, and return a corresponding llvm.core.BasicBlock object. Note that if this is not the entry basic block, you’ll have to add appropriate branch instructions from other basic blocks yourself.
Add an attribute attr to the function, from the set listed above.
Remove the attribute attr of the function.
Displays the control flow graph using the GraphViz tool.
Displays the control flow graph using the GraphViz tool, but omitting function bodies.