[Clang][SME2] Enable multi-vector loads & stores for SME2 (#75821)
[llvm-project.git] / compiler-rt / lib / profile / InstrProfilingRuntime.cpp
blob6b2ce9700173523bdc7d18d26014f4752a4b2be6
1 //===- InstrProfilingRuntime.cpp - PGO runtime initialization -------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 extern "C" {
11 #include "InstrProfiling.h"
13 static int RegisterRuntime() {
14 __llvm_profile_initialize();
15 #ifdef _AIX
16 extern COMPILER_RT_VISIBILITY void *__llvm_profile_keep[];
17 (void)*(void *volatile *)__llvm_profile_keep;
18 #endif
19 return 0;
22 /* int __llvm_profile_runtime */
23 COMPILER_RT_VISIBILITY int INSTR_PROF_PROFILE_RUNTIME_VAR = RegisterRuntime();