Opened 6 years ago

Closed 6 years ago

#257 closed defect (fixed)

create_convert_utility_code() in PyrexTypes needs a rewrite

Reported by: scoder Owned by: dagss
Priority: critical Milestone: 0.12
Component: Code Generation Keywords:
Cc:

Description (last modified by scoder)

Currently, the create_convert_utility_code() methods in PyrexTypes are used to generate utility functions on the fly. However, this is done at type analysis time, not at code generation time. As things like temp allocation, utility code injection and constant caching have now moved to code generation time, the code generation at analysis time can no longer depend on anything code related being place. That makes it crash in the current cython-unstable branch.

The methods should be split into one that checks for prerequisites (called at type analysis time) and one that generates the code, which can then be called during normal code generation.

Change History (5)

comment:1 Changed 6 years ago by scoder

  • Description modified (diff)
  • Priority changed from major to critical

comment:2 Changed 6 years ago by scoder

This is required to finish #144.

comment:3 Changed 6 years ago by dagss

I might end up doing this (check ticket assignment).

comment:4 Changed 6 years ago by dagss

  • Owner changed from somebody to dagss

comment:5 Changed 6 years ago by dagss

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.