Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dfmc] Propagate not-inline to generated code.
When a function is flagged as not-inline in Dylan, it is useful for that information to be passed along to C and LLVM to prevent it from being inlined during code generation. This is particularly useful in tests where you want to prevent the compiler from optimizing away the thing that you're testing. * sources/dfmc/llvm-back-end/llvm-emit-code.dylan (llvm-function-attributes): New. (emit-code): Get function attributes and pass them along to the <llvm-function>. * sources/dfmc/c-back-end/c-emit-object.dylan (emit-lambda-interface-using-function): Pass not-inline along to the generated C function. * sources/lib/run-time/run-time.h (OPEN_DYLAN_NO_INLINE): New portability macro.
- Loading branch information
1 parent
4d5402c
commit 823ee0e
Showing
4 changed files
with
34 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
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