Builder for Nyxstone instances.
More...
#include <nyxstone.h>
Builder for Nyxstone instances.
◆ IntegerBase
Configuration options for the immediate representation in disassembly.
Enumerator |
---|
Dec | Immediates are represented in decimal format.
|
HexPrefix | Immediates are represented in hex format, prepended with 0x, for example: 0xff.
|
HexSuffix | Immediates are represented in hex format, suffixed with h, for example: 0ffh.
|
◆ NyxstoneBuilder()
nyxstone::NyxstoneBuilder::NyxstoneBuilder |
( |
std::string && | triple | ) |
|
|
inlineexplicit |
Creates a NyxstoneBuilder instance.
- Parameters
-
triple | Llvm target triple or architecture identifier of a triple. |
- Note
- For the most common architectures, we recommend: x86_32:
i686-linux-gnu
x86_64: x86_64-linux-gnu
armv6m: armv6m-none-eabi
armv7m: armv7m-none-eabi
armv8m: armv8m.main-none-eabi
aarch64: aarch64-linux-gnueabihf
Using shorthand identifiers like arm
can lead to Nyxstone not being able to assemble certain instructions.
◆ build()
tl::expected< std::unique_ptr< Nyxstone >, std::string > nyxstone::NyxstoneBuilder::build |
( |
| ) |
|
Builds a nyxstone instance from the builder.
- Returns
- A unique_ptr holding the created nyxstone instance on success, an error string otherwise.
◆ with_cpu()
NyxstoneBuilder & nyxstone::NyxstoneBuilder::with_cpu |
( |
std::string && | cpu | ) |
|
|
noexcept |
Specifies the cpu for which to assemble/disassemble in nyxstone.
- Returns
- Reference to the updated NyxstoneBuilder object.
◆ with_features()
NyxstoneBuilder & nyxstone::NyxstoneBuilder::with_features |
( |
std::string && | features | ) |
|
|
noexcept |
Specify cpu features to en-/disable in nyxstone.
- Returns
- Reference to the updated NyxstoneBuilder object.
◆ with_immediate_style()
Specify the style in which immediates should be represented.
- Returns
- Reference to the updated NyxstoneBuilder object.
The documentation for this class was generated from the following files: