[#llvm-AddrSpaceCastInst-2constructor] = xref:llvm.adoc[llvm]::xref:llvm/AddrSpaceCastInst.adoc[AddrSpaceCastInst]::AddrSpaceCastInst :relfileprefix: ../../ :mrdocs: Cast pointer `S` to pointer type `Ty` and optionally insert before `InsertBefore.` == Synopsis Declared in `<llvm/IR/Instructions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- AddrSpaceCastInst( xref:llvm/Value.adoc[Value]* S, xref:llvm/Type.adoc[Type]* Ty, xref:llvm/Twine.adoc[Twine] const& NameStr = "", xref:llvm/InsertPosition.adoc[InsertPosition] InsertBefore = nullptr); ---- == Parameters [cols="1,4"] |=== | Name| Description | *S* | The pointer value to cast. | *Ty* | The destination pointer type (different address space). | *NameStr* | Name of the new instruction. | *InsertBefore* | Where to insert the new instruction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#