search for: s_dasharrayssize1

Displaying 3 results from an estimated 3 matches for "s_dasharrayssize1".

2014 Aug 21
3
[LLVMdev] How to tell whether a GlobalValue is user-defined
...I'm trying to make changes to prevent llvm from placing user-defined constant arrays in the merge able constant sections. Currently, clang places 16-byte constant arrays that are marked "unnamed_addr" into __literal16 for macho (see following example). $ cat test1.c static const int s_dashArraysSize1[4] = {2, 2, 4, 6}; int foo1(int a) { return s_dashArraysSize1[a]; } $ clang test1.c -S -O3 -o - | tail -n 10 .section __TEXT,__literal16,16byte_literals .align 4 ## @s_dashArraysSize1 _s_dashArraysSize1: .long 2 ## 0x2 .long 2...
2014 Aug 25
2
[LLVMdev] How to tell whether a GlobalValue is user-defined
.... Currently, clang >> places >> >> 16-byte constant arrays that are marked "unnamed_addr" into >> __literal16 for >> >> macho (see following example). >> >> >> >> $ cat test1.c >> >> >> >> static const int s_dashArraysSize1[4] = {2, 2, 4, 6}; >> >> >> >> >> >> int foo1(int a) { >> >> >> >> return s_dashArraysSize1[a]; >> >> >> >> } >> >> >> >> >> >> $ clang test1.c -S -O3 -o - | tail -n 10 >>...
2014 Aug 25
4
[LLVMdev] How to tell whether a GlobalValue is user-defined
...r-defined >> constant arrays in the merge able constant sections. Currently, clang places >> 16-byte constant arrays that are marked "unnamed_addr" into __literal16 for >> macho (see following example). >> >> $ cat test1.c >> >> static const int s_dashArraysSize1[4] = {2, 2, 4, 6}; >> >> >> int foo1(int a) { >> >> return s_dashArraysSize1[a]; >> >> } >> >> >> $ clang test1.c -S -O3 -o - | tail -n 10 >> >> .section __TEXT,__literal16,16byte_literals >> >> .align 4...