llvm/llvm-project

AMDGPU GlobalISel fails on select of G_UBSANTRAP

开放

#131,740 创建于 2025年3月18日

 (5 条评论) (0 个反应) (1 位负责人)C++ (10,782 个派生)batch import
backend:AMDGPUgood first issuellvm:globalisel

仓库指标

星标
 (26,378 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

https://godbolt.org/z/6PzeExK4f

; RUN: llc -mtriple=amdgcn-amd-amdhsa -global-isel < %s
; LLVM ERROR: cannot select: G_UBSANTRAP 0 (in function: ubsan_trap)

define void @ubsan_trap() {
  call void @llvm.ubsantrap(i8 0)
  ret void
}

We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow

贡献者指南