This commit adds NVPTX codegen support for brkpt instruction (https://docs.nvidia.com/cuda/parallel-thread-execution/#miscellaneous-instructions-brkpt) with test under CodeGen/NVPTX/brkpt.ll
9 lines
171 B
LLVM
9 lines
171 B
LLVM
; RUN: llc -o - -march=nvptx64 %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: .func breakpoint
|
|
define void @breakpoint() {
|
|
; CHECK: brkpt;
|
|
call void @llvm.debugtrap()
|
|
ret void
|
|
}
|