From 18a48c4f0c62e214dc9d097017b0020418e84d10 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sun, 12 Jan 2020 01:21:29 +0000 Subject: 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`. --- llvm_codegen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm_codegen.h') 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); -- cgit v1.2.1