brintos

brintos / llvm-project-archived public Read only

0
0
Text · 395 B · 6dc8ebb Raw
17 lines · plain
1// RUN: mlir-opt %s -inline -split-input-file | FileCheck %s2 3// UNSUPPORTED: system-windows4 5llvm.func @threadidx() -> i32 {6  %tid = nvvm.read.ptx.sreg.tid.x : i327  llvm.return %tid : i328}9 10// CHECK-LABEL: func @caller11llvm.func @caller() -> i32 {12  // CHECK-NOT: llvm.call @threadidx13  // CHECK: nvvm.read.ptx.sreg.tid.x14  %z = llvm.call @threadidx() : () -> (i32)15  llvm.return %z : i3216}17