search for: constvalue

Displaying 4 results from an estimated 4 matches for "constvalue".

Did you mean: constval
2012 Aug 15
2
[LLVMdev] clang promoting local to global
I have a const array allocated inside a function and the IR is showing this has a global function (ie. there is no allocation for the space inside the function). For example: const int32 local_array[256] = {constValue, constValue, ..... } Is there any particular reason this may be occuring? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120815/778438a9/attachment.html>
2012 Aug 15
0
[LLVMdev] clang promoting local to global
...1:26 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > I have a const array allocated inside a function and the IR is showing this > has a global function (ie. there is no allocation for the space inside the > function). > > For example: > > const int32 local_array[256] = {constValue, constValue, ..... } > > Is there any particular reason this may be occuring? It's an optimization; IIRC, you can turn it off with -fno-merge-all-constants. -Eli
2012 Aug 15
2
[LLVMdev] clang promoting local to global
...m> wrote: > > I have a const array allocated inside a function and the IR is showing > this > > has a global function (ie. there is no allocation for the space inside > the > > function). > > > > For example: > > > > const int32 local_array[256] = {constValue, constValue, ..... } > > > > Is there any particular reason this may be occuring? > > It's an optimization; IIRC, you can turn it off with > -fno-merge-all-constants. > > -Eli > -------------- next part -------------- An HTML attachment was scrubbed... URL: <htt...
2012 Nov 16
5
[LLVMdev] Assert with getZExtValue()?
Was hoping it might get some help or a better explanation of this: /ADT/APInt.h:1217: uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed. Program received signal SIGABRT, Aborted. 0x00007ffff6eb4d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64