[all-commits] [llvm/llvm-project] 8748e5: [orc-rt] Add ORC_RT_UNREACHABLE / ORC_RT_BUILTIN_U...

Lang Hames via All-commits all-commits at lists.llvm.org
Tue Jul 14 06:06:18 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8748e5e3ac5d06663c3f2057a71ef19065baebaf
      https://github.com/llvm/llvm-project/commit/8748e5e3ac5d06663c3f2057a71ef19065baebaf
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M orc-rt/include/orc-rt/Compiler.h
    M orc-rt/test/unit/CMakeLists.txt
    A orc-rt/test/unit/CompilerTest.cpp

  Log Message:
  -----------
  [orc-rt] Add ORC_RT_UNREACHABLE / ORC_RT_BUILTIN_UNREACHABLE (#209466)

ORC_RT_BUILTIN_UNREACHABLE is an optimizer hint that a location is
unreachable, wrapping __builtin_unreachable / __assume(false). Executing
it is undefined behavior.

ORC_RT_UNREACHABLE(MSG) marks a point the program must never reach. It
aborts with MSG in +Asserts builds; otherwise it lowers to
ORC_RT_BUILTIN_UNREACHABLE.

Adds a CompilerTest unit test covering both the returning-function
compile path and, in +Asserts builds only, the abort behavior via a
death test.



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