// slang-ir-address-analysis.h #pragma once #include "slang-ir-dominators.h" #include "slang-ir.h" namespace Slang { struct AddressInfo : public RefObject { IRInst* addrInst = nullptr; AddressInfo* parentAddress = nullptr; bool isConstant = false; List children; }; struct AddressAccessInfo { OrderedDictionary> addressInfos; }; // Gather info on all addresses used by `func`. AddressAccessInfo analyzeAddressUse(IRDominatorTree* domTree, IRGlobalValueWithCode* func); } // namespace Slang