Lines Matching defs:config
24 #include <llvm/Config/config.h>
32 #include <bcc/Config/Config.h>
155 CompilerConfig *config = NULL;
157 config = new (std::nothrow) CompilerConfig(OptTargetTriple);
158 if (config == NULL) {
164 if (config->getTriple().find("arm") != std::string::npos) {
170 config->setFeatureString(fv);
174 if (config->getTriple().find("i686") != std::string::npos) {
175 config->setCPU("atom");
178 // Setup the config according to the value of command line option.
180 config->setRelocationModel(llvm::Reloc::PIC_);
183 case '0': config->setOptimizationLevel(llvm::CodeGenOpt::None); break;
184 case '1': config->setOptimizationLevel(llvm::CodeGenOpt::Less); break;
185 case '3': config->setOptimizationLevel(llvm::CodeGenOpt::Aggressive); break;
188 config->setOptimizationLevel(llvm::CodeGenOpt::Default);
193 pCompilerDriver.setConfig(config);
194 Compiler::ErrorCode result = compiler->config(*config);