sharkrain / gpuocelot

Automatically exported from code.google.com/p/gpuocelot
0 stars 0 forks source link

Support nested curly braces in function bodies #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to compile something like this

.entry foo
{
  {
    .reg .u32 some_temp_reg;
    add some_temp_reg, some_temp_reg, 1;
  }
}

What is the expected output? What do you see instead?

Ocelot's PTX parser should define some_temp_reg only until the end of the
curly brace.  It should also allow multiple levels of nesting.

Original issue reported on code.google.com by gregory....@gatech.edu on 28 Sep 2011 at 11:39

GoogleCodeExporter commented 8 years ago
Added support in r1480

Original comment by gregory....@gatech.edu on 29 Sep 2011 at 6:28