1*4c3eb207Smrg /* Common hooks for eBPF. 2*4c3eb207Smrg Copyright (C) 2019-2020 Free Software Foundation, Inc. 3*4c3eb207Smrg 4*4c3eb207Smrg This file is part of GCC. 5*4c3eb207Smrg 6*4c3eb207Smrg GCC is free software; you can redistribute it and/or modify 7*4c3eb207Smrg it under the terms of the GNU General Public License as published by 8*4c3eb207Smrg the Free Software Foundation; either version 3, or (at your option) 9*4c3eb207Smrg any later version. 10*4c3eb207Smrg 11*4c3eb207Smrg GCC is distributed in the hope that it will be useful, 12*4c3eb207Smrg but WITHOUT ANY WARRANTY; without even the implied warranty of 13*4c3eb207Smrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*4c3eb207Smrg GNU General Public License for more details. 15*4c3eb207Smrg 16*4c3eb207Smrg You should have received a copy of the GNU General Public License 17*4c3eb207Smrg along with GCC; see the file COPYING3. If not see 18*4c3eb207Smrg <http://www.gnu.org/licenses/>. */ 19*4c3eb207Smrg 20*4c3eb207Smrg #include "config.h" 21*4c3eb207Smrg #include "system.h" 22*4c3eb207Smrg #include "coretypes.h" 23*4c3eb207Smrg #include "tm.h" 24*4c3eb207Smrg #include "common/common-target.h" 25*4c3eb207Smrg #include "common/common-target-def.h" 26*4c3eb207Smrg #include "config/bpf/bpf-protos.h" 27*4c3eb207Smrg 28*4c3eb207Smrg #undef TARGET_DEFAULT_TARGET_FLAGS 29*4c3eb207Smrg #define TARGET_DEFAULT_TARGET_FLAGS 0 30*4c3eb207Smrg 31*4c3eb207Smrg /* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */ 32*4c3eb207Smrg static const struct default_options bpf_option_optimization_table[] = 33*4c3eb207Smrg { 34*4c3eb207Smrg /* Enable -funroll-all-loops by default. */ 35*4c3eb207Smrg { OPT_LEVELS_ALL, OPT_funroll_all_loops, NULL, 1 }, 36*4c3eb207Smrg { OPT_LEVELS_NONE, 0, NULL, 0 } 37*4c3eb207Smrg }; 38*4c3eb207Smrg 39*4c3eb207Smrg #undef TARGET_OPTION_OPTIMIZATION_TABLE 40*4c3eb207Smrg #define TARGET_OPTION_OPTIMIZATION_TABLE bpf_option_optimization_table 41*4c3eb207Smrg 42*4c3eb207Smrg struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER; 43