Check a function for errors, useful for use when debugging a pass.
Synopsis
Declared in <llvm/IR/Verifier.h>
bool
verifyFunction(
Function const& F,
raw_ostream* OS = nullptr);
Description
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.
Return Value
True if the function is broken; false otherwise.
Parameters
Name |
Description |
F |
Function whose IR is verified. |
OS |
Optional stream that receives a description of any error found. |
Created with MrDocs