this is the first step in unifying some of the logic between hwasan and
mte stack tagging. this only moves around code, changes to converge
different implementations of the same logic follow later.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Transforms/Utils/MemoryTaggingSupport.h | ||
---|---|---|
75 | Let us not be the first to define "AllocaInfo" in namespace llvm. There are already two others but fortunately they are wrapped in an anonymous namespace. StackInfo is very generic, too. Maybe call it StackTaggingInfo or StackInstrumentationInfo and make AllocaInfo its inner class? | |
84 | This can be part of AllocaInfo (not necessarily in this change). We also do not need to collect these for uninteresting allocas I think. | |
104 | Can we just pass an std::function? This delegate stuff feels very heavy handed. |
Let us not be the first to define "AllocaInfo" in namespace llvm. There are already two others but fortunately they are wrapped in an anonymous namespace. StackInfo is very generic, too.
Maybe call it StackTaggingInfo or StackInstrumentationInfo and make AllocaInfo its inner class?
Or move everything to namespace memtag or something.