search for: optimizenone

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

2019 Feb 22
2
Create the GlobalVariable which have extern in one header file
...ave following: GlobalVariable *gvar_data = new GlobalVariable( M, blockItems->getType(), true, GlobalValue::CommonLinkage, blockItems, "DATA_TABLE"); gvar_data->setAlignment(16); gvar_data->setSection("data_section"); gvar_data->addAttribute(llvm::Attribute::OptimizeNone); I am not sure if I am using the correct Linkage or not. The pass has failed to complete it. Here is the runtime fault. Any guess what I am doing incorrect? 'common' global must have a zero initializer! [10 x i8*]* @DATA_TABLE.1 LLVM ERROR: Broken module found, compilation aborted:::::::...
2013 Dec 01
3
[LLVMdev] Disabling certain optimizations at -O1?
Could we move this setting to function attributes? We already have OptimizeForSize / MinSize there, but not the other opt levels. We also have OptimizeNone, which seems to be completely unused. This would let us support __attribute__((optimize())) in the future, which is currently ignored. Another example would be an LTO link of objects compiled with different optimization settings. I'm not sure if anyone would want this in practice. On Thu, Nov...
2019 Feb 22
1
Create the GlobalVariable which have extern in one header file
...Why it is creating another global variable instead of linking? Is that because of array size mismatch? Here is my code: GlobalVariable *old = M.getGlobalVariable("DATA_TABLE"); old->setAlignment(16); old->setSection("data_section"); old->addAttribute(llvm::Attribute::OptimizeNone); old->setDSOLocal(false); GlobalVariable *gNew = new GlobalVariable( M, blockItems->getType(), false, GlobalValue::ExternalLinkage, blockItems, "DATA_TABLE"); gNew->setAlignment(16); gNew->setSection("data_section"); gNew->addAttribute(llvm::Attribute::OptimizeN...
2013 Nov 28
0
[LLVMdev] Disabling certain optimizations at -O1?
On 28 November 2013 13:31, David Tweed <david.tweed at gmail.com> wrote: > Indeed, a most of the bugs which > really need a debugger are manifest in big applications where even a > non-debug build can be very "not simple".) My example was a very crude example of simplicity. But the more complex your application is, the simpler you want the compiler to be for a debug
2013 Nov 28
2
[LLVMdev] Disabling certain optimizations at -O1?
On Thu, Nov 28, 2013 at 1:11 PM, Renato Golin <renato.golin at linaro.org>wrote: > On 28 November 2013 00:00, Robinson, Paul > <Paul_Robinson at playstation.sony.com> wrote: > > In my experience, to a first approximation, anything > > that changes the CFG or that reorders generated code beyond source > > statement boundaries is likely to make things more
2015 Dec 03
3
Function attributes for LibFunc and its impact on GlobalsAA
----- Original Message ----- > From: "James Molloy via llvm-dev" <llvm-dev at lists.llvm.org> > To: "Vaivaswatha Nagaraj" <vn at compilertree.com> > Cc: "LLVM Dev" <llvm-dev at lists.llvm.org> > Sent: Thursday, December 3, 2015 4:41:46 AM > Subject: Re: [llvm-dev] Function attributes for LibFunc and its impact on GlobalsAA > >