This patch refactors the code figures out which block captures need to be copied/destroyed using special copy/destroy code.
This is a preparation patch for work on merging block copy/destroy routines.
Thanks for taking a look!
Differential D30345
[CodeGen][Blocks] Refactor capture handling in code that generates block copy/destroy routines ClosedPublic Authored by arphaman on Feb 24 2017, 10:53 AM.
Details Summary This patch refactors the code figures out which block captures need to be copied/destroyed using special copy/destroy code. Thanks for taking a look!
Diff Detail
Event TimelineComment Actions Looks NFC to me.
Comment Actions You're doing this refactor to... support doing another refactor of the same code? Why are these patches separate? Comment Actions
Not quite, by "merging block copy/destroy routines" I meant that my next patch will try to generate the IR only for unique copy/destroy functions, so individual functions will be merged. arphaman marked 3 inline comments as done. Comment ActionsThe updated patch uses just one enum and simplifies the capture search loops.
Comment Actions
Ah, okay, sure.
Closed by commit rL297023: [CodeGen][Blocks] Refactor capture handling in code that generates (authored by arphaman). · Explain WhyMar 6 2017, 8:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 90197 lib/CodeGen/CGBlocks.cpp
|
BlockCaptureEntityKind, please.