diff options
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; } |
