21 lines · plain
1// RUN: echo "GPU binary would be here" > %t2// RUN: %clang_cc1 -fprofile-instrument=clang -triple x86_64-linux-gnu -target-sdk-version=8.0 -fcuda-include-gpubinary %t -emit-llvm -o - %s | FileCheck --check-prefix=PGOGEN %s3// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -triple x86_64-linux-gnu -target-sdk-version=8.0 -fcuda-include-gpubinary %t -emit-llvm -o - %s | FileCheck --check-prefix=COVMAP %s4// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -triple x86_64-linux-gnu -target-sdk-version=8.0 -fcuda-include-gpubinary %t -emit-llvm-only -o - %s | FileCheck --check-prefix=MAPPING %s5 6#include "Inputs/cuda.h"7 8// PGOGEN-NOT: @__profn_{{.*kernel.*}} =9// COVMAP-COUNT-33: section "__llvm_covfun", comdat10// COVMAP-NOT: section "__llvm_covfun", comdat11// MAPPING-NOT: {{.*dfn.*}}:12// MAPPING-NOT: {{.*kernel.*}}:13 14__device__ void dfn(int i) {}15 16__global__ void kernel(int i) { dfn(i); }17 18void host(void) {19 kernel<<<1, 1>>>(1);20}21