181084Sjake/* Common hooks for eBPF. 281084Sjake Copyright (C) 2019-2020 Free Software Foundation, Inc. 381084Sjake 481084SjakeThis file is part of GCC. 581084Sjake 681084SjakeGCC is free software; you can redistribute it and/or modify 781084Sjakeit under the terms of the GNU General Public License as published by 881084Sjakethe Free Software Foundation; either version 3, or (at your option) 981084Sjakeany later version. 1081084Sjake 1191671SumeGCC is distributed in the hope that it will be useful, 1291671Sumebut WITHOUT ANY WARRANTY; without even the implied warranty of 1390623StmmMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1486148StmmGNU General Public License for more details. 1581084Sjake 1681084SjakeYou should have received a copy of the GNU General Public License 1793122Stmmalong with GCC; see the file COPYING3. If not see 1886235Stmm<http://www.gnu.org/licenses/>. */ 1986235Stmm 2093855Stmm#include "config.h" 2193855Stmm#include "system.h" 2286235Stmm#include "coretypes.h" 2386235Stmm#include "tm.h" 2486235Stmm#include "common/common-target.h" 2590623Stmm#include "common/common-target-def.h" 2681084Sjake#include "config/bpf/bpf-protos.h" 2786235Stmm 2886235Stmm#undef TARGET_DEFAULT_TARGET_FLAGS 2981084Sjake#define TARGET_DEFAULT_TARGET_FLAGS 0 3090623Stmm 3193264Sdillon/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ 3290623Stmmstatic const struct default_options bpf_option_optimization_table[] = 3390623Stmm { 3490623Stmm /* Enable -funroll-all-loops by default. */ 3590623Stmm { OPT_LEVELS_ALL, OPT_funroll_all_loops, NULL, 1 }, 3681084Sjake { OPT_LEVELS_NONE, 0, NULL, 0 } 3781173Sjake }; 3881173Sjake 3981084Sjake#undef TARGET_OPTION_OPTIMIZATION_TABLE 4081173Sjake#define TARGET_OPTION_OPTIMIZATION_TABLE bpf_option_optimization_table 4193840Stmm 4293840Stmmstruct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; 4393840Stmm