// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "../cpu_model/aarch64.h" struct FEATURES { unsigned long long features; }; extern struct FEATURES __aarch64_cpu_features; #if __GNUC__ >= 9 #pragma GCC diagnostic ignored "-Wprio-ctor-dtor" #endif __attribute__((constructor(90))) static void get_aarch64_cpu_features(void) { if (__atomic_load_n(&__aarch64_cpu_features.features, __ATOMIC_RELAXED)) return; __init_cpu_features(); }