Repository navigation
Adding #util.composite attribute. - #6854
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-composite
branch
2 times, most recently
from
August 25, 2021 15:33
21373be to
7cac8c7
Compare
benvanik
marked this pull request as ready for review
August 25, 2021 15:33
benvanik
force-pushed
the
benvanik-composite
branch
from
August 25, 2021 16:01
7cac8c7 to
70c2123
Compare
ScottTodd
approved these changes
Aug 25, 2021
| @@ -1,20 +1,24 @@ | |||
| // RUN: iree-opt -split-input-file -iree-hal-pack-constant-pool-storage %s | IreeFileCheck %s | |||
| // RUN: iree-opt -split-input-file -iree-hal-pack-constant-pool-storage -mlir-print-local-scope %s | IreeFileCheck %s | |||
Member
There was a problem hiding this comment.
Intentional -mlir-print-local-scope? What's that changing here?
Collaborator
Author
There was a problem hiding this comment.
yeah that prevents attribute aliases so they stay inlined, which makes CHECKing them much easier (can check where they are conceptually located in the IR vs at the top of the module).
This allows us to compose multiple serializable attributes without creating a new uniqued attribute, saving tons of memory during constant packing and other operations that stitch together constants. This also uses these newfangled attribute interface things to allow streaming serialization of data-carrying attributes. Though there's still some glue required for the flatbuffers case we are almost zero-copy for the whole route from the start of the HAL dialect to the final output. Fixes #3354.
benvanik
force-pushed
the
benvanik-composite
branch
from
August 25, 2021 17:38
70c2123 to
e59758e
Compare
benvanik
enabled auto-merge (squash)
August 25, 2021 18:17
Merged
copybara-service Bot
pushed a commit
that referenced
this pull request
Aug 25, 2021
* 30463f1 Adding #util.composite attribute. (#6854) * 7a1c579 Implement function.py return type coercion (#6832) * d90f0fc Remove PromoteTensorLoads pass, convert ExtractOp in TensorToFlow. (#6852) * 7fa8c20 Update SwiftShader to 2021-08-25 (#6859) * a328761 Rename Bazel repo iree_vulkan_headers to vulkan_headers (#6862) * 7660e49 Merge pull request #6856 from google/benvanik-shared-target-backend * ebc5eb5 Removing the pipeline caching during executable translation. (#6855) * 2fb7a8d Reapply "Update TFLite concrete function conversion codes" (#6800) * ce7b475 NFC: Merge ConvertToFlow passes into dedicated before/after passes. (#6850) * 9fce2d6 Support f32 in the VM by default in the compiler. (#6744) * b6baea9 Support global ref ops and fix passing of refs on function boundaries in the C.. * 4b5d2ed Bump flatcc version (#6853) * c8a8f5d Add e2e tests for mhlo.bitcast_convert (#6846) COPYBARA_INTEGRATE_REVIEW=#6865 from hanhanW:main-to-google 30463f1 PiperOrigin-RevId: 392952973
iree-github-actions-bot
pushed a commit
that referenced
this pull request
Aug 25, 2021
* 30463f1 Adding #util.composite attribute. (#6854) * 7a1c579 Implement function.py return type coercion (#6832) * d90f0fc Remove PromoteTensorLoads pass, convert ExtractOp in TensorToFlow. (#6852) * 7fa8c20 Update SwiftShader to 2021-08-25 (#6859) * a328761 Rename Bazel repo iree_vulkan_headers to vulkan_headers (#6862) * 7660e49 Merge pull request #6856 from google/benvanik-shared-target-backend * ebc5eb5 Removing the pipeline caching during executable translation. (#6855) * 2fb7a8d Reapply "Update TFLite concrete function conversion codes" (#6800) * ce7b475 NFC: Merge ConvertToFlow passes into dedicated before/after passes. (#6850) * 9fce2d6 Support f32 in the VM by default in the compiler. (#6744) * b6baea9 Support global ref ops and fix passing of refs on function boundaries in the C.. * 4b5d2ed Bump flatcc version (#6853) * c8a8f5d Add e2e tests for mhlo.bitcast_convert (#6846) PiperOrigin-RevId: 392952973
benvanik
added a commit
that referenced
this pull request
Jul 11, 2023
This was replaced in PR #6854 with SerializableAttrInterface.
benvanik
added a commit
that referenced
this pull request
Jul 11, 2023
This was replaced in PR #6854 with SerializableAttrInterface.
nhasabni
pushed a commit
to plaidml/iree
that referenced
this pull request
Aug 24, 2023
This was replaced in PR iree-org#6854 with SerializableAttrInterface.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows us to compose multiple serializable attributes without
creating a new uniqued attribute, saving tons of memory during constant
packing and other operations that stitch together constants.
This also uses these newfangled attribute interface things to allow
streaming serialization of data-carrying attributes. Though there's
still some glue required for the flatbuffers case we are almost zero-copy
for the whole route from the start of the HAL dialect to the final output.
Fixes #3354.