aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_abi.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-25 13:10:56 +0100
committergingerBill <bill@gingerbill.org>2021-10-25 13:10:56 +0100
commita440d8d812223961f0934aefecaef4975a604c43 (patch)
treeaebedd62f7ed3a8956d5b94a91c74fb72dee5d94 /src/llvm_abi.cpp
parentaaaddd03a6fc7194fa9315f802e369a0f62b9e07 (diff)
Improve use of vector muladd operations
Diffstat (limited to 'src/llvm_abi.cpp')
-rw-r--r--src/llvm_abi.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp
index 8d3d5542f..9e7f4b290 100644
--- a/src/llvm_abi.cpp
+++ b/src/llvm_abi.cpp
@@ -153,7 +153,18 @@ void lb_add_function_type_attributes(LLVMValueRef fn, lbFunctionType *ft, ProcCa
// TODO(bill): Clean up this logic
if (!is_arch_wasm()) {
cc_kind = lb_calling_convention_map[calling_convention];
- }
+ }
+ // if (build_context.metrics.arch == TargetArch_amd64) {
+ // if (build_context.metrics.os == TargetOs_windows) {
+ // if (cc_kind == lbCallingConvention_C) {
+ // cc_kind = lbCallingConvention_Win64;
+ // }
+ // } else {
+ // if (cc_kind == lbCallingConvention_C) {
+ // cc_kind = lbCallingConvention_X86_64_SysV;
+ // }
+ // }
+ // }
LLVMSetFunctionCallConv(fn, cc_kind);
if (calling_convention == ProcCC_Odin) {
unsigned context_index = offset+arg_count;