[all-commits] [llvm/llvm-project] e17c21: [msan] Add MSan instrumentation support for Hexago...

Brian Cain via All-commits all-commits at lists.llvm.org
Sun Mar 29 11:04:32 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e17c21974ec61380c81d665cf904fa88f1d3a11d
      https://github.com/llvm/llvm-project/commit/e17c21974ec61380c81d665cf904fa88f1d3a11d
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2026-03-29 (Sun, 29 Mar 2026)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    A llvm/test/Instrumentation/MemorySanitizer/Hexagon/hexagon.ll
    A llvm/test/Instrumentation/MemorySanitizer/Hexagon/vararg-hexagon.ll

  Log Message:
  -----------
  [msan] Add MSan instrumentation support for Hexagon (#189122)

Add MemorySanitizer instrumentation pass support for Hexagon Linux. This
is the codegen/instrumentation side; the compiler-rt runtime changes are
in a separate patch.

The shadow memory layout uses XOR-based mapping with XorMask=0x20000000
and OriginBase=0x50000000, designed to fit within the 32-bit address
space.

VarArg handling uses VarArgGenericHelper with VAListTagSize=12, matching
the Hexagon ABI where va_list is a three-pointer struct {
current_reg_area, reg_area_end, overflow_area }.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list