PandA-2024.02
Enumerations | Functions
compiler_wrapper.cpp File Reference
#include "compiler_wrapper.hpp"
#include "Parameter.hpp"
#include "compiler_constants.hpp"
#include "compiler_xml.hpp"
#include "cpu_stats.hpp"
#include "cpu_time.hpp"
#include "dbgPrintHelper.hpp"
#include "exceptions.hpp"
#include "fileIO.hpp"
#include "file_IO_constants.hpp"
#include "hls_step.hpp"
#include "parse_tree.hpp"
#include "polixml.hpp"
#include "string_manipulation.hpp"
#include "tree_manager.hpp"
#include "tree_node.hpp"
#include "tree_reindex.hpp"
#include "utility.hpp"
#include "xml_dom_parser.hpp"
#include "xml_helper.hpp"
#include "config_CLANG_PLUGIN_DIR.hpp"
#include "config_EXTRA_CLANGPP_COMPILER_OPTION.hpp"
#include "config_GCC_PLUGIN_DIR.hpp"
#include "config_HAVE_I386_CLANG10_COMPILER.hpp"
#include "config_HAVE_I386_CLANG10_M32.hpp"
#include "config_HAVE_I386_CLANG10_M64.hpp"
#include "config_HAVE_I386_CLANG10_MX32.hpp"
#include "config_HAVE_I386_CLANG11_COMPILER.hpp"
#include "config_HAVE_I386_CLANG11_M32.hpp"
#include "config_HAVE_I386_CLANG11_M64.hpp"
#include "config_HAVE_I386_CLANG11_MX32.hpp"
#include "config_HAVE_I386_CLANG12_COMPILER.hpp"
#include "config_HAVE_I386_CLANG12_M32.hpp"
#include "config_HAVE_I386_CLANG12_M64.hpp"
#include "config_HAVE_I386_CLANG12_MX32.hpp"
#include "config_HAVE_I386_CLANG13_COMPILER.hpp"
#include "config_HAVE_I386_CLANG13_M32.hpp"
#include "config_HAVE_I386_CLANG13_M64.hpp"
#include "config_HAVE_I386_CLANG13_MX32.hpp"
#include "config_HAVE_I386_CLANG16_COMPILER.hpp"
#include "config_HAVE_I386_CLANG16_M32.hpp"
#include "config_HAVE_I386_CLANG16_M64.hpp"
#include "config_HAVE_I386_CLANG16_MX32.hpp"
#include "config_HAVE_I386_CLANG4_COMPILER.hpp"
#include "config_HAVE_I386_CLANG4_M32.hpp"
#include "config_HAVE_I386_CLANG4_M64.hpp"
#include "config_HAVE_I386_CLANG4_MX32.hpp"
#include "config_HAVE_I386_CLANG5_COMPILER.hpp"
#include "config_HAVE_I386_CLANG5_M32.hpp"
#include "config_HAVE_I386_CLANG5_M64.hpp"
#include "config_HAVE_I386_CLANG5_MX32.hpp"
#include "config_HAVE_I386_CLANG6_COMPILER.hpp"
#include "config_HAVE_I386_CLANG6_M32.hpp"
#include "config_HAVE_I386_CLANG6_M64.hpp"
#include "config_HAVE_I386_CLANG6_MX32.hpp"
#include "config_HAVE_I386_CLANG7_COMPILER.hpp"
#include "config_HAVE_I386_CLANG7_M32.hpp"
#include "config_HAVE_I386_CLANG7_M64.hpp"
#include "config_HAVE_I386_CLANG7_MX32.hpp"
#include "config_HAVE_I386_CLANG8_COMPILER.hpp"
#include "config_HAVE_I386_CLANG8_M32.hpp"
#include "config_HAVE_I386_CLANG8_M64.hpp"
#include "config_HAVE_I386_CLANG8_MX32.hpp"
#include "config_HAVE_I386_CLANG9_COMPILER.hpp"
#include "config_HAVE_I386_CLANG9_M32.hpp"
#include "config_HAVE_I386_CLANG9_M64.hpp"
#include "config_HAVE_I386_CLANG9_MX32.hpp"
#include "config_HAVE_I386_CLANGVVD_COMPILER.hpp"
#include "config_HAVE_I386_CLANGVVD_M32.hpp"
#include "config_HAVE_I386_CLANGVVD_M64.hpp"
#include "config_HAVE_I386_CLANGVVD_MX32.hpp"
#include "config_HAVE_I386_GCC49_COMPILER.hpp"
#include "config_HAVE_I386_GCC49_M32.hpp"
#include "config_HAVE_I386_GCC49_M64.hpp"
#include "config_HAVE_I386_GCC49_MX32.hpp"
#include "config_HAVE_I386_GCC5_COMPILER.hpp"
#include "config_HAVE_I386_GCC5_M32.hpp"
#include "config_HAVE_I386_GCC5_M64.hpp"
#include "config_HAVE_I386_GCC5_MX32.hpp"
#include "config_HAVE_I386_GCC6_COMPILER.hpp"
#include "config_HAVE_I386_GCC6_M32.hpp"
#include "config_HAVE_I386_GCC6_M64.hpp"
#include "config_HAVE_I386_GCC6_MX32.hpp"
#include "config_HAVE_I386_GCC7_COMPILER.hpp"
#include "config_HAVE_I386_GCC7_M32.hpp"
#include "config_HAVE_I386_GCC7_M64.hpp"
#include "config_HAVE_I386_GCC7_MX32.hpp"
#include "config_HAVE_I386_GCC8_COMPILER.hpp"
#include "config_HAVE_I386_GCC8_M32.hpp"
#include "config_HAVE_I386_GCC8_M64.hpp"
#include "config_HAVE_I386_GCC8_MX32.hpp"
#include "config_I386_CLANG10_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG10_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG10_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG10_EXE.hpp"
#include "config_I386_CLANG10_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG10_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG10_SSA_PLUGIN.hpp"
#include "config_I386_CLANG10_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG10_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG10_VERSION.hpp"
#include "config_I386_CLANG11_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG11_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG11_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG11_EXE.hpp"
#include "config_I386_CLANG11_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG11_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG11_SSA_PLUGIN.hpp"
#include "config_I386_CLANG11_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG11_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG11_VERSION.hpp"
#include "config_I386_CLANG12_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG12_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG12_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG12_EXE.hpp"
#include "config_I386_CLANG12_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG12_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG12_SSA_PLUGIN.hpp"
#include "config_I386_CLANG12_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG12_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG12_VERSION.hpp"
#include "config_I386_CLANG13_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG13_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG13_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG13_EXE.hpp"
#include "config_I386_CLANG13_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG13_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG13_SSA_PLUGIN.hpp"
#include "config_I386_CLANG13_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG13_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG13_VERSION.hpp"
#include "config_I386_CLANG16_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG16_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG16_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG16_EXE.hpp"
#include "config_I386_CLANG16_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG16_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG16_SSA_PLUGIN.hpp"
#include "config_I386_CLANG16_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG16_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG16_VERSION.hpp"
#include "config_I386_CLANG4_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG4_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG4_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG4_EXE.hpp"
#include "config_I386_CLANG4_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG4_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG4_SSA_PLUGIN.hpp"
#include "config_I386_CLANG4_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG4_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG4_VERSION.hpp"
#include "config_I386_CLANG5_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG5_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG5_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG5_EXE.hpp"
#include "config_I386_CLANG5_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG5_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG5_SSA_PLUGIN.hpp"
#include "config_I386_CLANG5_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG5_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG5_VERSION.hpp"
#include "config_I386_CLANG6_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG6_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG6_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG6_EXE.hpp"
#include "config_I386_CLANG6_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG6_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG6_SSA_PLUGIN.hpp"
#include "config_I386_CLANG6_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG6_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG6_VERSION.hpp"
#include "config_I386_CLANG7_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG7_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG7_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG7_EXE.hpp"
#include "config_I386_CLANG7_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG7_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG7_SSA_PLUGIN.hpp"
#include "config_I386_CLANG7_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG7_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG7_VERSION.hpp"
#include "config_I386_CLANG8_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG8_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG8_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG8_EXE.hpp"
#include "config_I386_CLANG8_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG8_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG8_SSA_PLUGIN.hpp"
#include "config_I386_CLANG8_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG8_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG8_VERSION.hpp"
#include "config_I386_CLANG9_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANG9_CSROA_PLUGIN.hpp"
#include "config_I386_CLANG9_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANG9_EXE.hpp"
#include "config_I386_CLANG9_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANG9_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANG9_SSA_PLUGIN.hpp"
#include "config_I386_CLANG9_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANG9_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANG9_VERSION.hpp"
#include "config_I386_CLANGPP10_EXE.hpp"
#include "config_I386_CLANGPP11_EXE.hpp"
#include "config_I386_CLANGPP12_EXE.hpp"
#include "config_I386_CLANGPP13_EXE.hpp"
#include "config_I386_CLANGPP16_EXE.hpp"
#include "config_I386_CLANGPP4_EXE.hpp"
#include "config_I386_CLANGPP5_EXE.hpp"
#include "config_I386_CLANGPP6_EXE.hpp"
#include "config_I386_CLANGPP7_EXE.hpp"
#include "config_I386_CLANGPP8_EXE.hpp"
#include "config_I386_CLANGPP9_EXE.hpp"
#include "config_I386_CLANGPPVVD_EXE.hpp"
#include "config_I386_CLANGVVD_ASTANALYZER_PLUGIN.hpp"
#include "config_I386_CLANGVVD_CSROA_PLUGIN.hpp"
#include "config_I386_CLANGVVD_EMPTY_PLUGIN.hpp"
#include "config_I386_CLANGVVD_EXE.hpp"
#include "config_I386_CLANGVVD_EXPANDMEMOPS_PLUGIN.hpp"
#include "config_I386_CLANGVVD_GEPICANON_PLUGIN.hpp"
#include "config_I386_CLANGVVD_SSA_PLUGIN.hpp"
#include "config_I386_CLANGVVD_SSA_PLUGINCPP.hpp"
#include "config_I386_CLANGVVD_TOPFNAME_PLUGIN.hpp"
#include "config_I386_CLANGVVD_VERSION.hpp"
#include "config_I386_CLANG_CPP10_EXE.hpp"
#include "config_I386_CLANG_CPP11_EXE.hpp"
#include "config_I386_CLANG_CPP12_EXE.hpp"
#include "config_I386_CLANG_CPP13_EXE.hpp"
#include "config_I386_CLANG_CPP16_EXE.hpp"
#include "config_I386_CLANG_CPP4_EXE.hpp"
#include "config_I386_CLANG_CPP5_EXE.hpp"
#include "config_I386_CLANG_CPP6_EXE.hpp"
#include "config_I386_CLANG_CPP7_EXE.hpp"
#include "config_I386_CLANG_CPP8_EXE.hpp"
#include "config_I386_CLANG_CPP9_EXE.hpp"
#include "config_I386_CLANG_CPPVVD_EXE.hpp"
#include "config_I386_CPP49_EXE.hpp"
#include "config_I386_CPP5_EXE.hpp"
#include "config_I386_CPP6_EXE.hpp"
#include "config_I386_CPP7_EXE.hpp"
#include "config_I386_CPP8_EXE.hpp"
#include "config_I386_GCC49_EMPTY_PLUGIN.hpp"
#include "config_I386_GCC49_EXE.hpp"
#include "config_I386_GCC49_SSA_PLUGIN.hpp"
#include "config_I386_GCC49_SSA_PLUGINCPP.hpp"
#include "config_I386_GCC49_TOPFNAME_PLUGIN.hpp"
#include "config_I386_GCC49_VERSION.hpp"
#include "config_I386_GCC5_EMPTY_PLUGIN.hpp"
#include "config_I386_GCC5_EXE.hpp"
#include "config_I386_GCC5_SSA_PLUGIN.hpp"
#include "config_I386_GCC5_SSA_PLUGINCPP.hpp"
#include "config_I386_GCC5_TOPFNAME_PLUGIN.hpp"
#include "config_I386_GCC5_VERSION.hpp"
#include "config_I386_GCC6_EMPTY_PLUGIN.hpp"
#include "config_I386_GCC6_EXE.hpp"
#include "config_I386_GCC6_SSA_PLUGIN.hpp"
#include "config_I386_GCC6_SSA_PLUGINCPP.hpp"
#include "config_I386_GCC6_TOPFNAME_PLUGIN.hpp"
#include "config_I386_GCC6_VERSION.hpp"
#include "config_I386_GCC7_EMPTY_PLUGIN.hpp"
#include "config_I386_GCC7_EXE.hpp"
#include "config_I386_GCC7_SSA_PLUGIN.hpp"
#include "config_I386_GCC7_SSA_PLUGINCPP.hpp"
#include "config_I386_GCC7_TOPFNAME_PLUGIN.hpp"
#include "config_I386_GCC7_VERSION.hpp"
#include "config_I386_GCC8_EMPTY_PLUGIN.hpp"
#include "config_I386_GCC8_EXE.hpp"
#include "config_I386_GCC8_SSA_PLUGIN.hpp"
#include "config_I386_GCC8_SSA_PLUGINCPP.hpp"
#include "config_I386_GCC8_TOPFNAME_PLUGIN.hpp"
#include "config_I386_GCC8_VERSION.hpp"
#include "config_I386_GPP49_EXE.hpp"
#include "config_I386_GPP5_EXE.hpp"
#include "config_I386_GPP6_EXE.hpp"
#include "config_I386_GPP7_EXE.hpp"
#include "config_I386_GPP8_EXE.hpp"
#include "config_I386_LLVM10_LINK_EXE.hpp"
#include "config_I386_LLVM10_OPT_EXE.hpp"
#include "config_I386_LLVM11_LINK_EXE.hpp"
#include "config_I386_LLVM11_OPT_EXE.hpp"
#include "config_I386_LLVM12_LINK_EXE.hpp"
#include "config_I386_LLVM12_OPT_EXE.hpp"
#include "config_I386_LLVM13_LINK_EXE.hpp"
#include "config_I386_LLVM13_OPT_EXE.hpp"
#include "config_I386_LLVM16_LINK_EXE.hpp"
#include "config_I386_LLVM16_OPT_EXE.hpp"
#include "config_I386_LLVM4_LINK_EXE.hpp"
#include "config_I386_LLVM4_OPT_EXE.hpp"
#include "config_I386_LLVM5_LINK_EXE.hpp"
#include "config_I386_LLVM5_OPT_EXE.hpp"
#include "config_I386_LLVM6_LINK_EXE.hpp"
#include "config_I386_LLVM6_OPT_EXE.hpp"
#include "config_I386_LLVM7_LINK_EXE.hpp"
#include "config_I386_LLVM7_OPT_EXE.hpp"
#include "config_I386_LLVM8_LINK_EXE.hpp"
#include "config_I386_LLVM8_OPT_EXE.hpp"
#include "config_I386_LLVM9_LINK_EXE.hpp"
#include "config_I386_LLVM9_OPT_EXE.hpp"
#include "config_I386_LLVMVVD_LINK_EXE.hpp"
#include "config_I386_LLVMVVD_OPT_EXE.hpp"
#include "config_NPROFILE.hpp"
#include <cerrno>
#include <list>
#include <random>
#include <regex>
#include <string>
#include <unistd.h>
Include dependency graph for compiler_wrapper.cpp:

Go to the source code of this file.

Enumerations

enum  CompilerMode : int {
  CM_EMPTY = 1 << 0, CM_ANALYZER_INTERFACE = 1 << 1, CM_ANALYZER_OPTIMIZE = 1 << 2, CM_ANALYZER_ALL = 3 << 1,
  CM_OPT_INTERNALIZE = 1 << 8, CM_OPT_EXPANDMEMOPS = 1 << 9, CM_OPT_DUMPGIMPLE = 1 << 10, CM_OPT_ALL = (7 << 8),
  CM_LTO_FLAG = 1 << 16, CM_COMPILER_STD = 1 << 24, CM_COMPILER_OPT = 1 << 25, CM_COMPILER_LTO = 1 << 26
}
 

Functions

static std::string __escape_define (const std::string &str)
 

Enumeration Type Documentation

◆ CompilerMode

enum CompilerMode : int
Enumerator
CM_EMPTY 
CM_ANALYZER_INTERFACE 
CM_ANALYZER_OPTIMIZE 
CM_ANALYZER_ALL 
CM_OPT_INTERNALIZE 
CM_OPT_EXPANDMEMOPS 
CM_OPT_DUMPGIMPLE 
CM_OPT_ALL 
CM_LTO_FLAG 
CM_COMPILER_STD 
CM_COMPILER_OPT 
CM_COMPILER_LTO 

Definition at line 357 of file compiler_wrapper.cpp.

Function Documentation

◆ __escape_define()

static std::string __escape_define ( const std::string &  str)
static

Definition at line 373 of file compiler_wrapper.cpp.

References CompilerWrapper::bambu_ir_info.

Referenced by CompilerWrapper::FillTreeManager(), and CompilerWrapper::InitializeCompilerParameters().

Here is the caller graph for this function:

Generated on Mon Feb 12 2024 13:03:36 for PandA-2024.02 by doxygen 1.8.13