| ... | @@ -589,6 +589,13 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) { | ... | @@ -589,6 +589,13 @@ static LLVMValueRef make_fn_llvm_value(CodeGen *g, ZigFn *fn) { |
| 589 | // use the ABI alignment, which is fine. | 589 | // use the ABI alignment, which is fine. |
| 590 | } | 590 | } |
| 591 | | 591 | |
| | 592 | if (g->zig_target->llvm_cpu_name != nullptr) { |
| | 593 | ZigLLVMAddFunctionAttr(llvm_fn, "target-cpu", g->zig_target->llvm_cpu_name); |
| | 594 | } |
| | 595 | if (g->zig_target->llvm_cpu_features != nullptr) { |
| | 596 | ZigLLVMAddFunctionAttr(llvm_fn, "target-features", g->zig_target->llvm_cpu_features); |
| | 597 | } |
| | 598 | |
| 592 | if (is_async) { | 599 | if (is_async) { |
| 593 | addLLVMArgAttr(llvm_fn, 0, "nonnull"); | 600 | addLLVMArgAttr(llvm_fn, 0, "nonnull"); |
| 594 | } else { | 601 | } else { |