Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<'c, 'a, H> EmitModuleContext<'c, 'a, H> {
let name = self.name_func(name, node);
match visibility {
Visibility::Public => self.get_func_impl(name, llvm_func_ty, Some(Linkage::External)),
Visibility::Private => self.get_func_impl(name, llvm_func_ty, Some(Linkage::Private)),
Visibility::Private => self.get_func_impl(name, llvm_func_ty, Some(Linkage::Internal)),
_ => self.get_func_impl(name, llvm_func_ty, None),
}
}
Expand Down
2 changes: 1 addition & 1 deletion ...-llvm/src/emit/ops/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i8 @_hl.main.1(i8 %0, i8 %1) {
define internal i8 @_hl.main.1(i8 %0, i8 %1) {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i8 @_hl.main.1(i8 %0, i8 %1) {
define internal i8 @_hl.main.1(i8 %0, i8 %1) {
alloca_block:
%"0" = alloca i8, align 1
%"2_0" = alloca i8, align 1
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/ops/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i1 @_hl.main.1(i2 %0, i1 %1) {
define internal i1 @_hl.main.1(i2 %0, i1 %1) {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i1 @_hl.main.1(i2 %0, i1 %1) {
define internal i1 @_hl.main.1(i2 %0, i1 %1) {
alloca_block:
%"0" = alloca i1, align 1
%"5_0" = alloca {}, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i1 @_hl.main.1() {
define internal i1 @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i1 @_hl.main.1() {
define internal i1 @_hl.main.1() {
alloca_block:
%"0" = alloca i1, align 1
%"4_0" = alloca i1, align 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.f1.1() {
define internal void @_hl.f1.1() {
alloca_block:
br label %entry_block

entry_block: ; preds = %alloca_block
ret void
}

define private void @_hl.f2.4() {
define internal void @_hl.f2.4() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.f1.1() {
define internal void @_hl.f1.1() {
alloca_block:
br label %entry_block

entry_block: ; preds = %alloca_block
ret void
}

define private void @_hl.f2.4() {
define internal void @_hl.f2.4() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { { i2, i2, i1 }, {} } @_hl.main.1({ i2, i2, i1 } %0, {} %1) {
define internal { { i2, i2, i1 }, {} } @_hl.main.1({ i2, i2, i1 } %0, {} %1) {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { { i2, i2, i1 }, {} } @_hl.main.1({ i2, i2, i1 } %0, {} %1) {
define internal { { i2, i2, i1 }, {} } @_hl.main.1({ i2, i2, i1 } %0, {} %1) {
alloca_block:
%"0" = alloca { i2, i2, i1 }, align 8
%"1" = alloca {}, align 8
Expand Down
2 changes: 1 addition & 1 deletion ...-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i16 @_hl.main.1() {
define internal i16 @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i16 @_hl.main.1() {
define internal i16 @_hl.main.1() {
alloca_block:
%"0" = alloca i16, align 2
%"7_0" = alloca i16, align 2
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private {} @_hl.main.1({} %0) {
define internal {} @_hl.main.1({} %0) {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private {} @_hl.main.1({} %0) {
define internal {} @_hl.main.1({} %0) {
alloca_block:
%"0" = alloca {}, align 8
%"2_0" = alloca {}, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i2, i16 } @_hl.main.1() {
define internal { i2, i16 } @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i2, i16 } @_hl.main.1() {
define internal { i2, i16 } @_hl.main.1() {
alloca_block:
%"0" = alloca { i2, i16 }, align 8
%"5_0" = alloca { i2, i16 }, align 8
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i2 @_hl.main.1() {
define internal i2 @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i2 @_hl.main.1() {
define internal i2 @_hl.main.1() {
alloca_block:
%"0" = alloca i2, align 1
%"4_0" = alloca i2, align 1
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void ()* @_hl.main.2() {
define internal void ()* @_hl.main.2() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void ()* @_hl.main.2() {
define internal void ()* @_hl.main.2() {
alloca_block:
%"0" = alloca void ()*, align 8
%"5_0" = alloca void ()*, align 8
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i64 @_hl.main.1() {
define internal i64 @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i64 @_hl.main.1() {
define internal i64 @_hl.main.1() {
alloca_block:
%"0" = alloca i64, align 8
%"7_0" = alloca i64, align 8
Expand Down
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private {} @_hl.main.1(i64 %0) {
define internal {} @_hl.main.1(i64 %0) {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private {} @_hl.main.1(i64 %0) {
define internal {} @_hl.main.1(i64 %0) {
alloca_block:
%"0" = alloca {}, align 8
%"2_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source_filename = "test_context"
@4 = private unnamed_addr constant [37 x i8] c"Expected variant 1 but got variant 0\00", align 1
@prelude.panic_template.4 = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source_filename = "test_context"
@4 = private unnamed_addr constant [37 x i8] c"Expected variant 1 but got variant 0\00", align 1
@prelude.panic_template.4 = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"12_0" = alloca i64, align 8
%"10_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i64*, i64 } @_hl.main.1() {
define internal { i64*, i64 } @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i64*, i64 } @_hl.main.1() {
define internal { i64*, i64 } @_hl.main.1() {
alloca_block:
%"0" = alloca { i64*, i64 }, align 8
%"5_0" = alloca { i64*, i64 }, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"7_0" = alloca i64, align 8
%"5_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"7_0" = alloca i64, align 8
%"5_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source_filename = "test_context"
@5 = private unnamed_addr constant [37 x i8] c"Expected variant 1 but got variant 0\00", align 1
@prelude.panic_template.5 = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source_filename = "test_context"
@5 = private unnamed_addr constant [37 x i8] c"Expected variant 1 but got variant 0\00", align 1
@prelude.panic_template.5 = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"12_0" = alloca i64, align 8
%"10_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i64*, i64*, i64 } @_hl.main.1() {
define internal { i64*, i64*, i64 } @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private { i64*, i64*, i64 } @_hl.main.1() {
define internal { i64*, i64*, i64 } @_hl.main.1() {
alloca_block:
%"0" = alloca { i64*, i64*, i64 }, align 8
%"5_0" = alloca { i64*, i64*, i64 }, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source_filename = "test_context"
@0 = private unnamed_addr constant [39 x i8] c"Some array elements have been borrowed\00", align 1
@prelude.panic_template = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source_filename = "test_context"
@0 = private unnamed_addr constant [39 x i8] c"Some array elements have been borrowed\00", align 1
@prelude.panic_template = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"7_0" = alloca i64, align 8
%"5_0" = alloca i64, align 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source_filename = "test_context"
@0 = private unnamed_addr constant [34 x i8] c"Array element is already borrowed\00", align 1
@prelude.panic_template = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source_filename = "test_context"
@0 = private unnamed_addr constant [34 x i8] c"Array element is already borrowed\00", align 1
@prelude.panic_template = private unnamed_addr constant [34 x i8] c"Program panicked (signal %i): %s\0A\00", align 1

define private void @_hl.main.1() {
define internal void @_hl.main.1() {
alloca_block:
%"7_0" = alloca i64, align 8
%"5_0" = alloca i64, align 8
Expand Down
2 changes: 1 addition & 1 deletion ...on/collections/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ expression: mod_str
; ModuleID = 'test_context'
source_filename = "test_context"

define private i8* @_hl.main.1() {
define internal i8* @_hl.main.1() {
alloca_block:
br label %entry_block

Expand Down
Loading
Loading