-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mono] Support LLVM inline assembly. (#62558)
This change adds a convenience function, named `mono_llvm_inline_asm`, that wraps `LLVMGetInlineAsm` and `LLVMBuildCall2`. Inline assembly isn't used right now for normal code generation. But this can be used to ease debugging and development by inserting easy-to-find markers in the generated code. Towards that end, this change also adds a convenience `LLVMTypeRef`, named `void_func_t`, that denotes a function type that takes no parameters and does not return a value. Example: mono_llvm_inline_asm (builder, void_func_t, "int $$0x3", "", LLVM_ASM_SIDE_EFFECT, NULL, 0, "");
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters