Displaying 2 results from an estimated 2 matches for "other_def".
Did you mean:
other_db
2012 Aug 15
0
[LLVMdev] clang promoting local to global
...t;>> following (just using clang -emit-llvm at -O0):
> >>>
> >>> void f() { const int x[5] = {1,2,3,4}; }
> >>>
> >>> What does your testcase look like?
> >>>
> >>> -Eli
> >>
> >>
> >
>
#define other_def(x, tab, vf, rf, c) (x ^ tab[0][x ^ c0 ^ vf ^ rf ^ c)
#define my_def(y,x,k,c) defs(y,c) = (k}[c] ^ other_def(x, it_tab,
inv_var, rf1, c)
void my_func() {
#define r10(p,q,r,s) 0x##s##r##q##p
#undef r
#define r r10
const word it_tab[4][256] = { r(const, const, const, const),
r(...
2012 Aug 15
2
[LLVMdev] clang promoting local to global
On Wed, Aug 15, 2012 at 3:17 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> So there are some #define (defined outside the function scope) that use
> it_tab that are used inside the function, is this why it is promoting it to
> a global?
Macros shouldn't matter. Please give a complete testcase and steps to
reproduce. And please don't top-post.
-Eli
>
> On Wed,