-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1418
- Loading branch information
Showing
6 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
source: hugr-llvm/src/extension/logic.rs | ||
expression: mod_str | ||
--- | ||
; ModuleID = 'test_context' | ||
source_filename = "test_context" | ||
|
||
define i1 @_hl.main.1(i1 %0, i1 %1) { | ||
alloca_block: | ||
br label %entry_block | ||
|
||
entry_block: ; preds = %alloca_block | ||
%2 = xor i1 %0, %1 | ||
%3 = select i1 %2, i1 true, i1 false | ||
ret i1 %3 | ||
} |
28 changes: 28 additions & 0 deletions
28
...vm/src/extension/snapshots/hugr_llvm__extension__logic__test__xor@[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
source: hugr-llvm/src/extension/logic.rs | ||
expression: mod_str | ||
--- | ||
; ModuleID = 'test_context' | ||
source_filename = "test_context" | ||
|
||
define i1 @_hl.main.1(i1 %0, i1 %1) { | ||
alloca_block: | ||
%"0" = alloca i1, align 1 | ||
%"2_0" = alloca i1, align 1 | ||
%"2_1" = alloca i1, align 1 | ||
%"4_0" = alloca i1, align 1 | ||
br label %entry_block | ||
|
||
entry_block: ; preds = %alloca_block | ||
store i1 %0, i1* %"2_0", align 1 | ||
store i1 %1, i1* %"2_1", align 1 | ||
%"2_01" = load i1, i1* %"2_0", align 1 | ||
%"2_12" = load i1, i1* %"2_1", align 1 | ||
%2 = xor i1 %"2_01", %"2_12" | ||
%3 = select i1 %2, i1 true, i1 false | ||
store i1 %3, i1* %"4_0", align 1 | ||
%"4_03" = load i1, i1* %"4_0", align 1 | ||
store i1 %"4_03", i1* %"0", align 1 | ||
%"04" = load i1, i1* %"0", align 1 | ||
ret i1 %"04" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters