Check a function for errors, useful for use when debugging a pass.
Declared in <llvm/IR/Verifier.h>
bool
verifyFunction(
Function const& F,
raw_ostream* OS = nullptr);
If there are no errors, the function returns false. If an error is found, a message describing the error is written to OS (if non-null) and true is returned.
True if the function is broken; false otherwise.
| Name | Description |
|---|---|
| F | Function whose IR is verified. |
| OS | Optional stream that receives a description of any error found. |