-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is like `array_size(value of type T)` for non-bits-like types, and like `bit_count<T>()` for bits-like types. Concat in type_system_v2 will use this to support concat of arrays or bit vectors. PiperOrigin-RevId: 726161251
- Loading branch information
1 parent
b93ead0
commit a0a134b
Showing
16 changed files
with
232 additions
and
4 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
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
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
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
21 changes: 21 additions & 0 deletions
21
xls/dslx/ir_convert/testdata/ir_converter_test_ElementCount.ir
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,21 @@ | ||
package test_module | ||
|
||
file_number 0 "test_module.x" | ||
|
||
fn __test_module__main() -> bits[32] { | ||
literal.1: bits[32] = literal(value=32, id=1) | ||
literal.2: bits[32] = literal(value=64, id=2) | ||
add.3: bits[32] = add(literal.1, literal.2, id=3) | ||
literal.4: bits[32] = literal(value=4, id=4) | ||
add.5: bits[32] = add(add.3, literal.4, id=5) | ||
literal.6: bits[32] = literal(value=5, id=6) | ||
add.7: bits[32] = add(add.5, literal.6, id=7) | ||
literal.8: bits[32] = literal(value=1, id=8) | ||
add.9: bits[32] = add(add.7, literal.8, id=9) | ||
literal.10: bits[32] = literal(value=2, id=10) | ||
add.11: bits[32] = add(add.9, literal.10, id=11) | ||
literal.12: bits[32] = literal(value=1, id=12) | ||
add.13: bits[32] = add(add.11, literal.12, id=13) | ||
literal.14: bits[32] = literal(value=2, id=14) | ||
ret add.15: bits[32] = add(add.13, literal.14, id=15) | ||
} |
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
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