Home | History | Annotate | Download | only in bcc_compat

Lines Matching defs:config

24 #include <llvm/Config/config.h>
32 #include <bcc/Config.h>
149 CompilerConfig *config = nullptr;
151 config = new (std::nothrow) CompilerConfig(OptTargetTriple);
152 if (config == nullptr) {
158 if (config->getTriple().find("arm") != std::string::npos) {
164 config->setFeatureString(fv);
168 if ((config->getTriple().find("i686") != std::string::npos) ||
169 (config->getTriple().find("x86_64") != std::string::npos)) {
172 config->setFeatureString(fv);
176 if (config->getTriple().find("i686") != std::string::npos) {
177 config->setCPU("atom");
180 // Setup the config according to the value of command line option.
182 config->setRelocationModel(llvm::Reloc::PIC_);
185 if (config->getTriple().find("x86_64") != std::string::npos) {
186 config->setCodeModel(llvm::CodeModel::Small);
190 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break;
191 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break;
192 case '3': config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); break;
195 config->setOptimizationLevel(llvm::CodeGenOpt::Default);
200 pCompilerDriver.setConfig(config);
201 Compiler::ErrorCode result = compiler->config(*config);