CollectorMetadata abstractly describes stack maps for a function.
authorGordon Henriksen <gordonhenriksen@mac.com>
Thu, 27 Sep 2007 22:18:46 +0000 (22:18 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Thu, 27 Sep 2007 22:18:46 +0000 (22:18 +0000)
commitfc3282221f90c626d80292327213e2badc3de86b
tree6eaec6aefedd7e70c0aed68ecee6f33775f7f5e7
parent3f2d9ec186ce25b19bb36ae54eaee025150058fd
CollectorMetadata abstractly describes stack maps for a function.
It includes:

 - location and of each safe point in machine code (identified by a
   label)
 - location of each root within the stack frame (identified by an
   offset), including the metadata tag provided to llvm.gcroot in
   the user program
 - size of the stack frame (for collectors which want to cheat on
   stack crawling :)
 - and eventually will include liveness

It is to be populated by back-ends during code-generation.

CollectorModuleMetadata aggregates this information across the
entire module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42418 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/CollectorMetadata.h [new file with mode: 0644]
lib/CodeGen/CollectorMetadata.cpp [new file with mode: 0644]