-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace inOutLocMap with inputLocMap/outputLocMap
`InOutLocMap` is introduced to a <unsigned, unsigned> map for input/output packing by decoding the unsigned as `InOutLocationInfo`. However, it is a bit reduncant. Original `inputLocMap`/`outputLocMap` also do a <unsigned, unsigned> mapping from user specified locations to concecutive locations. We could reuse it for both packing and non-packing code paths. This change will include: -Refactor `InOutLocationInfo` by adding set/get functions and `operator<`. -Change the type of the key and valu of `inputLocMap`/`outputLocMap` to `InOutLocInfo` and rename `inputLocMap`/`outputLocMap` to `inputLocInfoMap`/`outputLocInfoMap` to distinguish with pure location maps. -In packing code path, replace `inOutLocMap` with `inputLocInfoMap`/`outputLocInfoMap`. -In non-packing code path, construct a `InOutLocationInfo` for map lookup and extract requried bit field from mapped `InOutLocationInfo`.
- Loading branch information
1 parent
f454d20
commit 796032b
Showing
10 changed files
with
290 additions
and
270 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
Oops, something went wrong.