The struct OffsetAndSize is a simple tuple of two int64_t. Treating it as a
derived class of std::pair has no special benefit, but it makes the code
verbose since we need get/set functions that avoid using "first" and "second" in
client code. Eliminating the std::pair makes this more readable.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
732 | That kinda goes without saying whenever a DenseMap is used. But I've now added comments to the place where Unknown and Unsigned are declared. |
llvm/include/llvm/Transforms/IPO/Attributor.h | ||
---|---|---|
256 | Note: I mixed up MAX and MIN here, but I've fixed it in my local change that is ready to commit. |
Comment Actions
LG
llvm/lib/Transforms/IPO/AttributorAttributes.cpp | ||
---|---|---|
732 | In case these are all compile time constants we could even use a static_assert. |
Note: I mixed up MAX and MIN here, but I've fixed it in my local change that is ready to commit.