diff options
| author | Tom Harley | 2020-01-12 01:21:29 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-12 01:21:29 +0000 |
| commit | 18a48c4f0c62e214dc9d097017b0020418e84d10 (patch) | |
| tree | db940dcbb9d642fe9a39a210fc6d062fa622dc58 /llvm_codegen.h | |
| parent | Make tail recursion mod cons toggleable (diff) | |
| download | sinter-18a48c4f0c62e214dc9d097017b0020418e84d10.tar.gz sinter-18a48c4f0c62e214dc9d097017b0020418e84d10.zip | |
Add some LLVM attributes to functions
Some of the functions generated by sinc can have attributes added to them that might be difficult for the LLVM toolchain to infer.
Attribute generation can be turned off with -O no-llvm-attributes.
Diffstat (limited to 'llvm_codegen.h')
| -rw-r--r-- | llvm_codegen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm_codegen.h b/llvm_codegen.h index 39624db..4911168 100644 --- a/llvm_codegen.h +++ b/llvm_codegen.h @@ -15,6 +15,7 @@ typedef struct { boxing_rule_t boxing_rule; uint default_bit_width; bool tail_recursive_mod_cons; + bool llvm_attributes; } optimisation_t; void llvm_codegen_prologue(char *filename, optimisation_t *optimisations); |
