Commit Graph

20 Commits

Author SHA1 Message Date
Jake Hillion
641a128b39 add command line feature addition/removal 2023-04-21 19:02:44 +02:00
Jon Haslam
c1f672b262
fix offset in generated code (#129) 2023-04-21 11:07:37 +01:00
Jake Hillion
cd2fa8c9ef remove treebuilder pointer validation 2023-04-18 16:04:47 +02:00
Jake Hillion
76f525f43d codegen: carry decl and func with containerinfo 2023-04-03 16:13:30 +01:00
Jay Kamat
e27f725a85 Avoid following weak_ptrs
Previously, we treated weak_ptrs as normal types and we recursed
within them, following the internal data pointer and possibly causing
crashes. We really shouldn't be following them, so I added a custom
type to simply abort processing. If we want to handle them (ie: check
if they are valid, and follow them if so), that should be fairly easy
with the work there is here so far.
2023-03-28 14:10:27 -07:00
Jake Hillion
d2caaf22e8 formatting: force pointers/references with the type 2023-03-24 20:18:18 +00:00
Jake Hillion
9fced15433 uintptr_t: prevent stubbing and renaming 2023-03-17 08:12:46 +00:00
Alastair Robertson
ccc90c3068 Split codegen into separate build targets
To help with the transition to type-graph based CodeGen, we need to
reduce dependencies on legacy CodeGen from other parts of OI.

Pieces of CodeGen referenced by other files, but which only return
drgn data have been moved into a new "drgn_utils" target, allowing
us to remove CodeGen dependencies for these functions.

The new "symbol_service" build target can be used in the future by
other files only needing access to symbol information and not full
CodeGen.
2023-03-08 14:18:20 +00:00
Jon Haslam
39e19a9c47
Special case conditional_t type name handling (#75) 2023-02-21 13:16:26 -08:00
Alastair Robertson
72f995600e Move getRootType from OICodeGen to SymbolService
To allow other parts of OI to remove dependencies on OICodeGen in the
future.
2023-02-17 11:53:10 -08:00
arsarwade
2d7692d7c1
Fix/remove some log statements (#67)
Summary:
Remove some more log statements to reduce output

Test Plan:
make test-devel
2023-02-17 11:41:10 -08:00
Jon Haslam
74e07eef0e
Remove type path printing debug code (#65)
* Fix folly::sorted_vector_set and minor codegen comment change

* remove printTypePath debug code
2023-02-10 14:12:41 +00:00
Jon Haslam
c260586a4e
Fix folly::sorted_vector_set and minor codegen comment change (#63) 2023-02-08 14:34:14 +00:00
Jake Hillion
fcaede9e7d oil: make ObjectAddr a const reference 2023-01-31 13:30:58 +00:00
Alastair Robertson
9e72ada131 Support dynamic polymorphic inheritance
i.e. classes which contain virtual functions and use a virtual pointer
2023-01-30 13:22:09 +00:00
Jake Hillion
ece1e579ac reduce typeToNameMap lookups 2023-01-17 16:44:31 +00:00
Jon Haslam
3f2ae5e56f
Codegen review changes (#18)
Co-authored-by: Jon Haslam <jonhaslam@meta.com>
2023-01-04 17:54:07 +00:00
Jake Hillion
2dc5479c32 container regex matching 2022-12-21 14:31:05 +00:00
Jake Hillion
abec0dcce6 remove funcgeninternal.h
The container information added by `FuncGenInternal.h` has been made
redundant by the pluggable containers feature. Remove this legacy
difference.
2022-12-21 12:10:00 +00:00
Jon Haslam
db90326c4b Initial commit 2022-12-19 06:37:51 -08:00