Changes the size of allocations automatically.
Only implements the case when a single range from start of the allocation is alive.
Don't cast it to an "Impl". There is no need anymore anyway.
State could be anything. At least call it PIState.
This is basically BinSize != 1, return, no?
Why does this not trigger for the ptr/i64 case? Is one of them in bytes the other in bits?
This is fine for OffsetEnd = 2,4,8, but then it becomes a little iffy. Check for non default sizes and go with a char array instead.
Same as above.
|82 ↗||(On Diff #551856)|
This doesn't actually make it smaller, we should avoid such changes.
|135 ↗||(On Diff #551856)|
Revision based on comments
umm, I think BinSize == 0
if its a ptr
public: std::optional<TypeSize> getAllocationSize(const DataLayout &DL)
returns a size of 0 which is why that if condition is not triggered.
I was trying to indicate a fix point for structs like
As I said before, no casting to implementations of the interface. put the method you need into AAPointerInfo.
|384 ↗||(On Diff #552461)|
unrelated, just keep the old version of this file.
This is not a good idea. What happend to the old API you had?
Yeah I see.