authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:26:28+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-03-17 16:26:28+01:00
log79b868d504f2b9c583a84c784a2f6197ac91bc25
treec40f12a495421caf73377cf1b3caf2e455a3a68d
parentb20cee586c6bd1cbc0c5364e8ebe5ae7ecf0ca1f

LLVM: Use fast math when requested


1 files changed, 5 insertions(+), 5 deletions(-)

src/codegen/llvm/Builder.zig+5-5
...@@ -14727,7 +14727,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14727,7 +14727,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14727 .@"notail call fast" => .{ .no_tail = true, .call_conv = call_conv },14727 .@"notail call fast" => .{ .no_tail = true, .call_conv = call_conv },
14728 else => unreachable,14728 else => unreachable,
14729 },14729 },
14730 .fast_math = .{},14730 .fast_math = FastMath.fast,
14731 .type_id = extra.data.ty,14731 .type_id = extra.data.ty,
14732 .callee = extra.data.callee,14732 .callee = extra.data.callee,
14733 .args = args,14733 .args = args,
...@@ -14786,7 +14786,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14786,7 +14786,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14786 .opcode = kind.toBinaryOpcode(),14786 .opcode = kind.toBinaryOpcode(),
14787 .lhs = adapter.getOffsetValueIndex(extra.lhs),14787 .lhs = adapter.getOffsetValueIndex(extra.lhs),
14788 .rhs = adapter.getOffsetValueIndex(extra.rhs),14788 .rhs = adapter.getOffsetValueIndex(extra.rhs),
14789 .fast_math = .{},14789 .fast_math = FastMath.fast,
14790 });14790 });
14791 },14791 },
14792 .alloca,14792 .alloca,
...@@ -14884,7 +14884,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14884,7 +14884,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14884 .lhs = adapter.getOffsetValueIndex(extra.lhs),14884 .lhs = adapter.getOffsetValueIndex(extra.lhs),
14885 .rhs = adapter.getOffsetValueIndex(extra.rhs),14885 .rhs = adapter.getOffsetValueIndex(extra.rhs),
14886 .pred = kind.toCmpPredicate(),14886 .pred = kind.toCmpPredicate(),
14887 .fast_math = .{},14887 .fast_math = FastMath.fast,
14888 });14888 });
14889 },14889 },
14890 .fneg => try function_block.writeAbbrev(FunctionBlock.FNeg{14890 .fneg => try function_block.writeAbbrev(FunctionBlock.FNeg{
...@@ -14892,7 +14892,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14892,7 +14892,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14892 }),14892 }),
14893 .@"fneg fast" => try function_block.writeAbbrev(FunctionBlock.FNegFast{14893 .@"fneg fast" => try function_block.writeAbbrev(FunctionBlock.FNegFast{
14894 .val = adapter.getOffsetValueIndex(@enumFromInt(datas[instr_index])),14894 .val = adapter.getOffsetValueIndex(@enumFromInt(datas[instr_index])),
14895 .fast_math = .{},14895 .fast_math = FastMath.fast,
14896 }),14896 }),
14897 .extractvalue => {14897 .extractvalue => {
14898 var extra = func.extraDataTrail(Function.Instruction.ExtractValue, datas[instr_index]);14898 var extra = func.extraDataTrail(Function.Instruction.ExtractValue, datas[instr_index]);
...@@ -14940,7 +14940,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co...@@ -14940,7 +14940,7 @@ pub fn toBitcode(self: *Builder, allocator: Allocator) bitcode_writer.Error![]co
14940 .lhs = adapter.getOffsetValueIndex(extra.lhs),14940 .lhs = adapter.getOffsetValueIndex(extra.lhs),
14941 .rhs = adapter.getOffsetValueIndex(extra.rhs),14941 .rhs = adapter.getOffsetValueIndex(extra.rhs),
14942 .cond = adapter.getOffsetValueIndex(extra.cond),14942 .cond = adapter.getOffsetValueIndex(extra.cond),
14943 .fast_math = .{},14943 .fast_math = FastMath.fast,
14944 });14944 });
14945 },14945 },
14946 .shufflevector => {14946 .shufflevector => {