[#llvm-ReplaceWithVeclib] = xref:llvm.adoc[llvm]::ReplaceWithVeclib :relfileprefix: ../ :mrdocs: New PM pass that replaces vector intrinsics with vector‐library calls. == Synopsis Declared in `<llvm/CodeGen/ReplaceWithVeclib.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ReplaceWithVeclib : xref:llvm/RequiredPassInfoMixin-047.adoc[RequiredPassInfoMixin<ReplaceWithVeclib>] ---- == Description Replaces calls to LLVM vector intrinsics with matching calls to functions from a vector library (e.g., libmvec, SVML) according to TargetLibraryInfo. == Base Classes [cols="1,4"] |=== | Name| Description | `xref:llvm/RequiredPassInfoMixin-047.adoc[RequiredPassInfoMixin<ReplaceWithVeclib>]` | A CRTP mix‐in for passes that should not be skipped. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ReplaceWithVeclib/run.adoc[`run`] | Replace vector intrinsics in `F` with vector‐library calls. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ReplaceWithVeclib/isRequired.adoc[`isRequired`] | Return true; required passes cannot be skipped. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#