BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//swoogo.com//NONSGML kigkonsult.se iCalcreator 2.41.90//
CALSCALE:GREGORIAN
UID:38336236-6233-4233-b436-383434623234
BEGIN:VEVENT
UID:833b1e895b1367cc4e0ffe35fca2752957c8a132@swoogo.com
DTSTAMP:20261113T072040Z
DESCRIPTION:LLVM IR does not have a universal union type like C (unsigned c
 har) or C++ (std::byte) have. Instead\, integers (in particular\, i8\, i16
 \, i32\, i64) are used which makes it possible for them to carry pointers.
  Since LLVM’s alias analyses do not take integer operations into account\,
  this can lead to wrong aliasing results. The abuse of integers as univers
 al data containers can also be seen in memory transfer functions optimizat
 ions: calls to memcpy\, memmove\, etc. are sometimes lowered into integer 
 loads/stores of the corresponding bit width and this type punning combined
  with other LLVM optimizations can lead to miscompilations. In this talk\,
  we present a new byte type for the LLVM IR that can be used as a universa
 l data type and that solves the load type punning problems. We discuss its
  semantics\, engineering efforts to introduce it in LLVM\, as well as the 
 performance impact.
DTSTART:20211118T184500Z
DTEND:20211118T191500Z
LAST-MODIFIED:20261113T072040Z
LOCATION:https://llvm.swoogo.com/2021DevMtg/v/s-705671
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Byte types\, or how to get rid of i8 abuse for chars in LLVM IR
TRANSP:OPAQUE
X-ALT-DESC;FMTTYPE=text/html:<p>LLVM IR does not have a universal union typ
 e like C (unsigned char) or C++ (std::byte) have. Instead\, integers (in p
 articular\, i8\, i16\, i32\, i64) are used which makes it possible for the
 m to carry pointers. Since LLVM’s alias analyses do not take integer opera
 tions into account\, this can lead to wrong aliasing results. The abuse of
  integers as universal data containers can also be seen in memory transfer
  functions optimizations: calls to memcpy\, memmove\, etc. are sometimes l
 owered into integer loads/stores of the corresponding bit width and this t
 ype punning combined with other LLVM optimizations can lead to miscompilat
 ions. In this talk\, we present a new byte type for the LLVM IR that can b
 e used as a universal data type and that solves the load type punning prob
 lems. We discuss its semantics\, engineering efforts to introduce it in LL
 VM\, as well as the performance impact.</p>
BEGIN:VALARM
UID:35366562-6263-4261-a531-383532636561
ACTION:DISPLAY
DESCRIPTION:LLVM IR does not have a universal union type like C (unsigned c
 har) or C++ (std::byte) have. Instead\, integers (in particular\, i8\, i16
 \, i32\, i64) are used which makes it possible for them to carry pointers.
  Since LLVM’s alias analyses do not take integer operations into account\,
  this can lead to wrong aliasing results. The abuse of integers as univers
 al data containers can also be seen in memory transfer functions optimizat
 ions: calls to memcpy\, memmove\, etc. are sometimes lowered into integer 
 loads/stores of the corresponding bit width and this type punning combined
  with other LLVM optimizations can lead to miscompilations. In this talk\,
  we present a new byte type for the LLVM IR that can be used as a universa
 l data type and that solves the load type punning problems. We discuss its
  semantics\, engineering efforts to introduce it in LLVM\, as well as the 
 performance impact.
TRIGGER:-PT15M
END:VALARM
END:VEVENT
END:VCALENDAR
