Skip to content

issues Search Results · repo:leonardt/ast_tools language:Python

Filter by

22 results
 (55 ms)

22 results

inleonardt/ast_tools (press backspace or delete to remove)

I m not sure how important this is, but with the latest release the following example taken from fault doesn t work anymore with the SSA pass import magma as m import fault class MWrapperMeta(m.MagmaProtocolMeta): ...
  • leonardt
  • 4
  • Opened 
    on Jun 21, 2021
  • #79

While all of the pytest tests pass, the example from the readme: from ast_tools.passes import begin_rewrite, loop_unroll, end_rewrite @end_rewrite() @loop_unroll() @begin_rewrite() def foo(): for ...
  • jack-melchert
  • 2
  • Opened 
    on Feb 11, 2021
  • #72

This code: import inspect from ast_tools.passes import apply_ast_passes, ssa, loop_unroll from ast_tools.macros import unroll class Foo: def __init__(self): self.x = [i for i in range(4)] ...
  • leonardt
  • 6
  • Opened 
    on Aug 21, 2020
  • #61

Given a trivial code example: def some_fn(): for i in range(100): result += x * i return result unrolled in batches of say 10 iterations: def some_fn(): for i in range(0, 100, 10): ...
  • joshring
  • 4
  • Opened 
    on Aug 4, 2020
  • #60

Ive discovered a bug (maybe undocumented requirement is a better term) that is hard to resolve. Currently given: @wrapper2 @end @... @begin @wrapper1 def foo(...): ... end will exec: @wrapper2 @wrapper1 ...
  • cdonovick
  • 13
  • Opened 
    on May 28, 2020
  • #46

For my inlining tool, there s a number of features I need that aren t present in the standard AST module. I m thinking about the design of an enhanced AST that enables these features, and I d like to know ...
  • willcrichton
  • 7
  • Opened 
    on Mar 13, 2020
  • #44

I see the following line: https://github.com/leonardt/ast_tools/blob/854761fa9b14cb5c7ada684d423081e83299ff23/util/generate_ast/generate.py#L94 When I use ast_tools it seems to want 3.6, but I see that ...
  • rsetaluri
  • 4
  • Opened 
    on Mar 2, 2020
  • #41

  • cdonovick
  • Opened 
    on Jan 17, 2020
  • #35

I was wondering if its possible to support multiple passes of loop unrolling. This is the type of nested loop I want to unroll: def test_nested_unroll(): z = 3 @end_rewrite() @loop_unroll() ...
  • jack-melchert
  • 13
  • Opened 
    on Jan 17, 2020
  • #34

If I utilize ast_tools passes on the __call__ of two different classes, they will both try to generate a file with the same name __call__.py. This causes the second one to overwrite the file from the first ...
  • rdaly525
  • 1
  • Opened 
    on Jan 13, 2020
  • #31
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub