Pass that shrink‐wraps unused library calls that may set errno.

Synopsis

Declared in <llvm/Transforms/Utils/LibCallsShrinkWrap.h>

class LibCallsShrinkWrapPass
    : public OptionalPassInfoMixin<LibCallsShrinkWrapPass>

Description

Guards calls whose results are unused but that can set errno on error, so the call runs only on the rare error path and is otherwise skipped.

Base Classes

Name

Description

OptionalPassInfoMixin<LibCallsShrinkWrapPass>

A CRTP mix‐in for passes that can be skipped.

Member Functions

Name

Description

run

Run the libcalls‐shrink‐wrap pass over the function.

Static Member Functions

Name

Description

isRequired

Return false; optional passes may be skipped.

name

Returns the name of this pass.

Created with MrDocs