[#llvm-LibCallsShrinkWrapPass] = xref:llvm.adoc[llvm]::LibCallsShrinkWrapPass :relfileprefix: ../ :mrdocs: Pass that shrink‐wraps unused library calls that may set errno. == Synopsis Declared in `<llvm/Transforms/Utils/LibCallsShrinkWrap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class LibCallsShrinkWrapPass : public xref:llvm/OptionalPassInfoMixin-0246.adoc[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 [cols="1,4"] |=== | Name| Description | `xref:llvm/OptionalPassInfoMixin-0246.adoc[OptionalPassInfoMixin<LibCallsShrinkWrapPass>]` | A CRTP mix‐in for passes that can be skipped. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/LibCallsShrinkWrapPass/run.adoc[`run`] | Run the libcalls‐shrink‐wrap pass over the function. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/LibCallsShrinkWrapPass/isRequired.adoc[`isRequired`] | Return false; optional passes may be skipped. | xref:llvm/LibCallsShrinkWrapPass/name.adoc[`name`] | Returns the name of this pass. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#