[#llvm-ValueAndVReg] = xref:llvm.adoc[llvm]::ValueAndVReg :relfileprefix: ../ :mrdocs: Simple struct used to hold a constant integer value and a virtual register. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/Utils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ValueAndVReg; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/ValueAndVReg/VReg.adoc[`VReg`] | Virtual register that defines or carries the constant. | xref:llvm/ValueAndVReg/Value.adoc[`Value`] | Constant integer value. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/getAnyConstantVRegValWithLookThrough.adoc[`getAnyConstantVRegValWithLookThrough`] | If `VReg` is defined by a statically evaluable chain of instructions rooted on a G_CONSTANT or G_FCONSTANT returns its value as APInt and def register. | xref:llvm/getIConstantVRegValWithLookThrough.adoc[`getIConstantVRegValWithLookThrough`] | If `VReg` is defined by a statically evaluable chain of instructions rooted on a G_CONSTANT returns its APInt value and def register. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#