[#llvm-DataLayoutCallbackTy-0c] = xref:llvm.adoc[llvm]::DataLayoutCallbackTy :relfileprefix: ../ :mrdocs: Callback that may override the data layout string found in LLVM assembly. == Synopsis Declared in `<llvm/AsmParser/Parser.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- typedef xref:llvm/function_ref-03.adoc[llvm::function_ref<std::optional<std::string>(xref:llvm/StringRef.adoc[StringRef], xref:llvm/StringRef.adoc[StringRef])>] DataLayoutCallbackTy; ---- == Description The first argument is the target triple. The second is the data layout string from the input, or a default. That input layout is used if the callback returns std::nullopt. [.small]#Created with https://www.mrdocs.com[MrDocs]#