[#llvm-Function-getFnAttributeAsParsedInteger] = xref:llvm.adoc[llvm]::xref:llvm/Function.adoc[Function]::getFnAttributeAsParsedInteger :relfileprefix: ../../ :mrdocs: For a string attribute `Kind,` parse attribute as an integer. == Synopsis Declared in `<llvm/IR/Function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint64_t getFnAttributeAsParsedInteger( xref:llvm/StringRef.adoc[StringRef] Kind, uint64_t Default = 0) const; ---- == Return Value * `Default` if attribute is not present. * `Default` if there is an error parsing the attribute integer, and error is emitted to the LLVMContext == Parameters [cols="1,4"] |=== | Name| Description | *Kind* | The string attribute kind to parse as an integer. | *Default* | Value returned when the attribute is missing or invalid. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#