Massimo Fioravanti
38a3c5a086
Introduce TupleTree::deserialize
2022-04-15 15:14:02 +02:00
Alvise de Faveri
45784cce8c
YAMLTraits: Add serializeToString()
2022-03-17 18:34:09 +01:00
Alessandro Di Federico
5e38805063
Rename detail namespaces into revng::detail
2022-03-11 15:37:12 +01:00
Alessandro Di Federico
78be0e9268
Explode TupleTree.h
2022-01-31 16:28:26 +01:00
Alessandro Di Federico
d78993ac54
Add TupleTree file (de)serialization
...
Tuple tree file serialization will be used by the revng-pipeline as a
helper function to load and store the models in the working directory.
2022-01-05 14:44:57 +01:00
Alessandro Di Federico
56644b8512
Move model::Register in its own file
2021-07-15 13:50:53 +02:00
Pietro Fezzardi
75bff8f29c
Move CompositeScalar in YAMLTraits.h
...
Soon Binary.h will not be the only user.
This commit makes the same machinery usable elsewhere.
2021-06-09 20:13:27 +02:00
Pietro Fezzardi
4b7f383ea5
Conceptify YAMLTraits.h
2021-06-09 20:13:27 +02:00
Pietro Fezzardi
50681284c0
Conceptify revng
...
Use concepts across revng wherever possible, to keep the code concise
and easier to understand.
2021-05-05 17:10:12 +02:00
Alessandro Di Federico
aeb81c4218
Don't implicitly use StringRef as std::string
2021-04-22 18:06:27 +02:00
Alessandro Di Federico
e9ca81247d
Improve get*FromYAML*
...
This commit fixes the following issues:
1. It introduces `getNameFromYAMLEnumScalar` which returns a
`llvm::StringRef` instead of a `std::string`.
2. Lets users decide what to do when `getValueFromYAMLScalar` does not
get any match (abort by defaul, or return an "Invalid" value).
2021-02-18 18:44:42 +01:00
Alessandro Di Federico
a96c6d4931
get{Name,Value}FromYAMLScalar: support quotes
2021-02-18 18:44:42 +01:00
Alessandro Di Federico
e382f40119
get*FromYAML* handle scalars and enumeration
2021-02-17 11:45:28 +01:00
Alessandro Di Federico
38031f2f8a
Import preliminary model
...
This commit imports:
* support for (de-)serializing tuple-like objects in YAML
* the Model data structure
* the {Load,Serialize}ModelPass
2021-01-27 19:46:53 +01:00