Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / xray-always-emit-typedevent.cpp
blob745c63f6b3fa5c6330df55c2e5cf27ba1b38ac46
1 // RUN: %clang_cc1 -fxray-instrument -fxray-always-emit-typedevents -x c++ \
2 // RUN: -std=c++11 -triple x86_64-unknown-unknown -emit-llvm -o - %s \
3 // RUN: | FileCheck %s
5 // CHECK-LABEL: @_Z15neverInstrumentv
6 [[clang::xray_never_instrument]] void neverInstrument() {
7 static constexpr char kPhase[] = "never";
8 __xray_typedevent(1, kPhase, 5);
9 // CHECK: call void @llvm.xray.typedevent(i64 {{.*}}, ptr{{.*}}, i64 5)