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.

Parameters

Name

Description

OS

This class implements an extremely fast bulk output stream that can only output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.

Created with MrDocs