Loading...
Searching...
No Matches
remove_asmt Class Reference
+ Collaboration diagram for remove_asmt:
Protected Member Functions
Replaces inline assembly instructions in the goto function by non-assembly goto program instructions.
Translates the given inline assembly code (which must be in either gcc or msc style) to non-assembly goto program instructions.
Translates the given inline assembly code (in gcc style) to non-assembly goto program instructions.
Translates the given inline assembly code (in msc style) to non-assembly goto program instructions.
Adds a call to a library function that implements the given gcc-style inline assembly statement.
Adds a call to a library function that implements the given msc-style inline assembly statement.
Detailed Description
Constructor & Destructor Documentation
◆ remove_asmt()
Member Function Documentation
◆ gcc_asm_function_call()
std::size_t
n_args,
)
protected
Adds a call to a library function that implements the given gcc-style inline assembly statement.
- Parameters
-
function_base_name Name of the function to call
code gcc-style inline assembly statement to translate to function call
n_args Number of arguments required by function_base_name
dest Goto program to append the function call to
Definition at line 89 of file remove_asm.cpp.
◆ msc_asm_function_call()
Adds a call to a library function that implements the given msc-style inline assembly statement.
- Parameters
-
function_base_name Name of the function to call
operands Arguments to be passed to function
code msc-style inline assembly statement to translate to function call
dest Goto program to append the function call to
Definition at line 173 of file remove_asm.cpp.
◆ operator()()
void remove_asmt::operator()
(
)
inline
◆ process_function()
Replaces inline assembly instructions in the goto function by non-assembly goto program instructions.
- Parameters
-
function_id Name of function being processed
goto_function The goto function
Definition at line 544 of file remove_asm.cpp.
◆ process_instruction()
Translates the given inline assembly code (which must be in either gcc or msc style) to non-assembly goto program instructions.
- Parameters
-
function_id Name of function being processed
instruction The goto program instruction containing the inline assembly statements
dest The goto program to append the new instructions to
Definition at line 225 of file remove_asm.cpp.
◆ process_instruction_gcc()
Translates the given inline assembly code (in gcc style) to non-assembly goto program instructions.
- Parameters
-
code The inline assembly code statement to translate
dest The goto program to append the new instructions to
Definition at line 247 of file remove_asm.cpp.
◆ process_instruction_msc()
Translates the given inline assembly code (in msc style) to non-assembly goto program instructions.
- Parameters
-
function_id Name of function being processed
code The inline assembly code statement to translate
dest The goto program to append the new instructions to
Definition at line 417 of file remove_asm.cpp.
Member Data Documentation
◆ goto_functions
◆ message_handler
◆ symbol_table
The documentation for this class was generated from the following file: