-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Btw i found out about the ods, its pretty neat! Although i haven't found these intrinsics in the ods.
- Loading branch information
Showing
8 changed files
with
496 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_abs.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = "llvm.intr.abs"(%arg0) <{is_int_min_poison = true}> : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_bitreverse.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = llvm.intr.bitreverse(%arg0) : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_bswap.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = llvm.intr.bswap(%arg0) : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_ctlz.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = "llvm.intr.ctlz"(%arg0) <{is_zero_poison = true}> : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_ctpop.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = llvm.intr.ctpop(%arg0) : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_intr_cttz.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i64 { | ||
%0 = "llvm.intr.cttz"(%arg0) <{is_zero_poison = true}> : (i64) -> i64 | ||
llvm.return %0 : i64 | ||
} | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
melior/src/dialect/snapshots/melior__dialect__llvm__tests__compile_zext.snap
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,11 @@ | ||
--- | ||
source: melior/src/dialect/llvm.rs | ||
expression: module.as_operation() | ||
--- | ||
module attributes {llvm.data_layout = ""} { | ||
llvm.func @foo(%arg0: i64) -> i128 { | ||
%0 = llvm.zext %arg0 : i64 to i128 | ||
llvm.return %0 : i128 | ||
} | ||
} | ||
|