From f77a04ba04c995d95d3faee3f77700f7c7045a3b Mon Sep 17 00:00:00 2001 From: kobalicek Date: Fri, 30 May 2014 14:59:07 +0200 Subject: [PATCH] Doc update. --- src/asmjit/x86/x86inst.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/asmjit/x86/x86inst.h b/src/asmjit/x86/x86inst.h index 3bbbe39..82108c1 100644 --- a/src/asmjit/x86/x86inst.h +++ b/src/asmjit/x86/x86inst.h @@ -1828,6 +1828,12 @@ struct InstInfo { // ============================================================================ struct X86InstUtil { + //! Get an instruction ID from a given instruction `name`. + //! + //! If there is an exact match the instruction id is returned, otherwise + //! `kInstNone` (zero) is returned. + //! + //! The given `name` doesn't have to be null-terminated if `len` is provided. ASMJIT_API static uint32_t getInstIdByName( const char* name, size_t len = kInvalidIndex); };