[all-commits] [llvm/llvm-project] 9af3f9: [MC] Add baseline test for MCContext::getSubtarget...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Tue Sep 29 16:26:07 PDT 2026


  Branch: refs/heads/users/arichardson/mc-add-baseline-test-for-mccontext-getsubtargetcopy-hwmode
  Home:   https://github.com/llvm/llvm-project
  Commit: 9af3f9fbcf4fdb1b98d24d16a68aa3886aee39ad
      https://github.com/llvm/llvm-project/commit/9af3f9fbcf4fdb1b98d24d16a68aa3886aee39ad
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/test/TableGen/HwModeBitSet.td
    M llvm/unittests/MC/TargetRegistry.cpp

  Log Message:
  -----------
  [MC] Add baseline test for MCContext::getSubtargetCopy HwMode loss

No change intended here, just adding test coverage showing that
MCContext::getSubtargetCopy currently slices away the target's
<Target>GenMCSubtargetInfo subclass and causes getHwMode() and
getHwModeSet() to return 0.

This commit was created with the help of AI tools



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