Debian Codegraph @

flang/test/Fir/CUDA/cuda-constructor.f90

raw
1 ! RUN: bbc -fcuda -emit-hlfir %s -o - | fir-opt --cuf-add-constructor | FileCheck %s
2
3 program main
4 real, device :: ahost(10)
5 end
6
7 ! CHECK: llvm.func @_FortranACUFRegisterAllocator() attributes {sym_visibility = "private"}
8 ! CHECK-LABEL: llvm.func internal @__cudaFortranConstructor() {
9 ! CHECK: llvm.call @_FortranACUFRegisterAllocator() : () -> ()
10 ! CHECK: llvm.return
11 ! CHECK: }
12 ! CHECK: llvm.mlir.global_ctors ctors = [@__cudaFortranConstructor], priorities = [0 : i32], data = [#llvm.zero]