search for: opt_level

Displaying 6 results from an estimated 6 matches for "opt_level".

Did you mean: pt_level
2010 Feb 11
2
[LLVMdev] LLVM memory usage?
...(bitcode_name, &error_message); ModuleProvider *mp = getBitcodeModuleProvider(buffer, getGlobalContext(), &error_message); if( first_time ) { InitializeNativeTarget(); builder = new EngineBuilder(mp); builder->setEngineKind(EngineKind::JIT); CodeGenOpt::Level opt_level = CodeGenOpt::Default; builder->setOptLevel(opt_level); execution_engine = builder->create(); delete(builder); // lli doesn't do this - is it safe? } Module *module = mp->materializeModule(&error_message); for (Module::iterator I = module->begin(),...
2010 Feb 12
0
[LLVMdev] LLVM memory usage?
...;   ModuleProvider *mp = getBitcodeModuleProvider(buffer, getGlobalContext(), > &error_message); > >   if( first_time ) { >       InitializeNativeTarget(); >       builder = new EngineBuilder(mp); >       builder->setEngineKind(EngineKind::JIT); >       CodeGenOpt::Level opt_level = CodeGenOpt::Default; >       builder->setOptLevel(opt_level); >       execution_engine = builder->create(); >       delete(builder);       // lli doesn't do this - is it safe? lli allocates the builder on the stack, so it is automatically destroyed on scope exit. >   } &gt...
2017 Sep 30
2
invalid code generated on Windows x86_64 using skylake-specific features
...VMGetNativeFeatures(); } else { target_specific_cpu_args = ""; target_specific_features = ""; } g->target_machine = LLVMCreateTargetMachine(target_ref, buf_ptr(&g->triple_str), target_specific_cpu_args, target_specific_features, opt_level, reloc_mode, LLVMCodeModelDefault); char *ZigLLVMGetHostCPUName(void) { std::string str = sys::getHostCPUName(); return strdup(str.c_str()); } char *ZigLLVMGetNativeFeatures(void) { SubtargetFeatures features; StringMap<bool> host_features; if (sys::getHostCPUFeatures...
2017 Oct 01
1
invalid code generated on Windows x86_64 using skylake-specific features
...{ > target_specific_cpu_args = ""; > target_specific_features = ""; > } > > g->target_machine = LLVMCreateTargetMachine(target_ref, > buf_ptr(&g->triple_str), > target_specific_cpu_args, target_specific_features, opt_level, > reloc_mode, LLVMCodeModelDefault); > > > > char *ZigLLVMGetHostCPUName(void) { > std::string str = sys::getHostCPUName(); > return strdup(str.c_str()); > } > > char *ZigLLVMGetNativeFeatures(void) { > SubtargetFeatures features; > > StringMa...
2017 Oct 03
2
invalid code generated on Windows x86_64 using skylake-specific features
...gt;> target_specific_features = ""; >>> } >>> >>> g->target_machine = LLVMCreateTargetMachine(target_ref, >>> buf_ptr(&g->triple_str), >>> target_specific_cpu_args, target_specific_features, >>> opt_level, reloc_mode, LLVMCodeModelDefault); >>> >>> >>> >>> char *ZigLLVMGetHostCPUName(void) { >>> std::string str = sys::getHostCPUName(); >>> return strdup(str.c_str()); >>> } >>> >>> char *ZigLLVMGetNativeFeatures(...
2017 Jun 29
3
Definitive list of optimisations at each optimisation level
On Mon, Jun 26, 2017 at 5:04 AM, ORiordan, Martin <martin.oriordan at intel.com > wrote: > Thanks Sean and Silva. > > > > I guess what I was seeking was a URL that I could point (non-compiler) > people at, but I guess no such reference exists. What I can do if > reference bot the source manager and use ‘-mllvm -debug-pass=Structure’ > for each optimisation level,