Pietro Fezzardi bc76cbe546 AddAssignmentMarkersPass: fix size of ptr locals
Before this commit, we assumed that the size of model types could be
either smaller, equal or larger than IR types.
Hence, the code was designed to take care of all those situations with
various workarounds and assertions.
Thanks to recent developments, the size of Model types can only be equal
to the size of IR types.
There are only 2 exceptions to this rule:
- the size of SPTARs, that can be larger on the Model than on IR, since
  on the IR they are returned as pointers, while on the Model they are
  aggregates;
  these were already handled properly before this commit.
- the size of IR-pointers, since their size in LLVM is target-dependent;
  before this commit they were handled poorly, using LLVM's DataLayout
  but not taking into account that the DataLayout is not necessarily the
  one of the proper target;
  this commit fixes this, just taking the pointer sizes from the Model,
  which effectively represents the proper pointer size for what we're
  handling.
2023-06-21 15:17:28 +02:00
2023-06-09 15:40:23 +02:00
2020-11-12 17:44:10 +01:00
2022-06-22 14:26:44 +02:00
2022-04-19 12:17:59 +02:00
S
Description
Automated archival mirror of github.com/revng/revng
GPL-2.0 24 MiB
Languages
C++ 77.1%
Python 12.6%
MLIR 4.4%
CMake 1.9%
LLVM 1.4%
Other 2.5%