| 1 |
/* |
| 2 |
* FCML - Free Code Manipulation Library. |
| 3 |
* Copyright (C) 2010-2020 Slawomir Wojtasiak |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
/** @file fcml_intel_dialect.h |
| 21 |
* Intel dialect implementation. |
| 22 |
* @copyright Copyright (C) 2010-2020 Slawomir Wojtasiak. All rights reserved. |
| 23 |
* This project is released under the GNU Lesser General Public License. |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef FCML_ASM_DIALECT_INTEL_H_ |
| 27 |
#define FCML_ASM_DIALECT_INTEL_H_ |
| 28 |
|
| 29 |
#include "fcml_lib_export.h" |
| 30 |
|
| 31 |
#include "fcml_errors.h" |
| 32 |
#include "fcml_dialect.h" |
| 33 |
|
| 34 |
#ifdef __cplusplus |
| 35 |
extern "C" { |
| 36 |
#endif |
| 37 |
|
| 38 |
/** Default combination of the configuration flags.*/ |
| 39 |
#define FCML_INTEL_DIALECT_CF_DEFAULT 0 |
| 40 |
|
| 41 |
/** |
| 42 |
* Initializes Intel dialect. |
| 43 |
* Prepares new instance of Intel dialect for given set of configuration flags. |
| 44 |
* Every dialect has to be freed using fcml_fn_dialect_free() function. |
| 45 |
* |
| 46 |
* @param config_flags Configuration flags dedicated to the dialect. |
| 47 |
* @param[out] dialect Prepared dialect instance. |
| 48 |
* @return Error code or FCML_CEH_GEC_NO_ERROR. |
| 49 |
* @see fcml_fn_dialect_free |
| 50 |
*/ |
| 51 |
LIB_EXPORT fcml_ceh_error LIB_CALL fcml_fn_dialect_init_intel( |
| 52 |
fcml_uint32_t config_flags, fcml_st_dialect **dialect); |
| 53 |
|
| 54 |
#ifdef __cplusplus |
| 55 |
} |
| 56 |
#endif |
| 57 |
|
| 58 |
#endif /* FCML_ASM_DIALECT_INTEL_H_ */ |