diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2023-04-25 10:43:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-25 10:43:29 -0400 |
| commit | 7b7c095b37e85ca3a8f55eff1c3d9643d467b8e0 (patch) | |
| tree | 9c71955dbc956b0058b19818ca127c8132cda512 /source/slang/slang-ir-liveness.cpp | |
| parent | 284cee1f246c072f190c87c8fb60c1d2181e458f (diff) | |
Dictionary using lowerCamel (#2835)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP lowerCamel Dictionary.
* WIP more lowerCamel fixes for Dictionary.
* Add/Remove/Clear
* GetValue/Contains
* Fix tabs in dictionary.
Count -> getCount
* Fix fields with caps.
* Key -> key
Value -> value
Use m_ for members where appropriate.
Use lowerCamel in linked list.
* Some small fixes/improvements to Dictionary.
* Kick CI.
Diffstat (limited to 'source/slang/slang-ir-liveness.cpp')
| -rw-r--r-- | source/slang/slang-ir-liveness.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/slang/slang-ir-liveness.cpp b/source/slang/slang-ir-liveness.cpp index f2d834cc1..9cd4462af 100644 --- a/source/slang/slang-ir-liveness.cpp +++ b/source/slang/slang-ir-liveness.cpp @@ -768,13 +768,13 @@ void LivenessContext::_addInst(IRInst* inst) void LivenessContext::_addAccessInst(IRInst* inst) { // If we already have it don't need to add again - if (m_accessSet.Contains(inst)) + if (m_accessSet.contains(inst)) { return; } // Add to the access set - m_accessSet.Add(inst); + m_accessSet.add(inst); // Add the instruction to the block info _addInst(inst); @@ -785,7 +785,7 @@ void LivenessContext::_findAliasesAndAccesses(IRInst* root) // Clear all the aliases m_aliases.clear(); // Clear the access set - m_accessSet.Clear(); + m_accessSet.clear(); // Add the root to the list of aliases, to start lookup m_aliases.add(root); @@ -997,7 +997,7 @@ bool LivenessContext::_isNormalRunInst(IRInst* inst) { // Just because it's the right type *doesn't* mean it's an access, it has to also // be in the access set - return m_accessSet.Contains(inst); + return m_accessSet.contains(inst); } return false; @@ -1289,7 +1289,7 @@ void LivenessContext::_processFunction(IRFunc* func) // By having as an index we can easily/quickly associate information with blocks with arrays // Set up the map from blocks to indices - m_blockIndexMap.Clear(); + m_blockIndexMap.clear(); m_blockInfos.clear(); m_fixedBlockInfos.clear(); @@ -1304,7 +1304,7 @@ void LivenessContext::_processFunction(IRFunc* func) for (auto block : func->getChildren()) { IRBlock* blockInst = as<IRBlock>(block); - m_blockIndexMap.Add(blockInst, BlockIndex(index++)); + m_blockIndexMap.add(blockInst, BlockIndex(index++)); FixedBlockInfo fixedBlockInfo; fixedBlockInfo.init(blockInst); @@ -1484,7 +1484,7 @@ void LivenessContext::_orderRangeStartsDeterministically() Index order = -1; - if (auto orderPtr = rootOrderMap.TryGetValueOrAdd(root, orderCounter + 1)) + if (auto orderPtr = rootOrderMap.tryGetValueOrAdd(root, orderCounter + 1)) { order = *orderPtr; } |
