Commit Graph

6113 Commits

Author SHA1 Message Date
Giacomo Vercesi a6a7a09606 daemon-self-test: fix dumping of daemon output
Fix the `fail` function, to properly capture the output of the daemon
process in case of failure.
2022-10-30 09:12:33 +01:00
Giacomo Vercesi a465e796df revng.api: explicitly declare exports 2022-10-30 09:11:53 +01:00
Alessandro Di Federico 7d9a80b0e6 Merge branch 'feature/ttr-caching' 2022-10-30 08:18:34 +01:00
Pietro Fezzardi f371c03e93 Globals.h: evictCachedReferences on clear() 2022-10-29 16:46:19 +02:00
Pietro Fezzardi d520fd5aea Cache TTRs in Model tools 2022-10-29 16:46:19 +02:00
Pietro Fezzardi fff0fbd874 LoadModelPass: cache TTRs on getReadOnlyModel
The cache is evicted on the next call to getWritableModel.
2022-10-29 16:46:19 +02:00
Pietro Fezzardi f371be4271 Cache TTRs on getModelFromContext
The cache is evicted on getWritableModelFromContext.
2022-10-29 16:46:19 +02:00
Pietro Fezzardi d04e2e73d3 TupleTree: caching methods for TupleTreeReferences 2022-10-29 16:46:19 +02:00
Pietro Fezzardi 0795c7e331 TupleTreeReference: cache target pointers 2022-10-29 16:46:19 +02:00
Pietro Fezzardi 7eb94c6646 QualifiedType: add operator<=> 2022-10-29 16:46:19 +02:00
Pietro Fezzardi cf3103d3d7 TupleTree{Path,Reference}: add operator<=> 2022-10-29 16:46:19 +02:00
Pietro Fezzardi 8e9170eb60 Enforce that TTRs in TupleTree are mutable 2022-10-29 16:46:19 +02:00
Pietro Fezzardi 6173d154a3 TupleTree: visitReferences with non-const visitors 2022-10-29 16:46:19 +02:00
Pietro Fezzardi 5f8dab184d Move ConstOrNot to Concepts.h 2022-10-29 16:46:19 +02:00
Alessandro Di Federico 53616b34ea LinkForTranslation: use ld, not c++
This change enables us to depend on the linker only, not on the
compiler.
2022-10-29 12:11:17 +02:00
Alessandro Di Federico 48656584ce Drop PrintStackTraceOnErrorSignal
InitLLVM, and therefore, InitRevng does that.
2022-10-28 16:03:15 +02:00
Alessandro Di Federico 5161ed3325 Update README.md 2022-10-27 01:22:02 +02:00
Alessandro Di Federico 8a61d2a69e Merge branch 'feature/vscode-web-component' 2022-10-25 16:53:17 +02:00
Giacomo Vercesi 579cd2c558 npm: handle global install in lib64
Some distributions change the LIBDIR for global installation to lib64,
account for that when installing the model in CMAKE_BINARY_DIR
2022-10-24 14:27:52 +02:00
Giacomo Vercesi 232a28ae69 FileContainer: handle case where Path is empty
When requesting a `cloneFiltered` the Path attribute of the
FileContainer might be empty, and this will lead to an abort. Fix this
situation by checking if the Path is empty.
2022-10-24 14:25:02 +02:00
Giacomo Vercesi d36fddc71e revng-model: install in global mode
Install revng-model in global mode, so it is consistent with the
other installed packages
2022-10-24 09:58:55 +02:00
Giacomo Vercesi e4adbe8134 revng.support: add get_root
Add the get_root function which will return the absolute path of the
root, relatively to the file location in support
2022-10-24 09:58:55 +02:00
Giacomo Vercesi f7ec377aa4 mktemp: use --tmpdir
Without the --tmpdir argument the current directory is used to generate
the temporary file
2022-10-24 09:58:55 +02:00
Alessandro Di Federico 368f27b876 yields test: use one-per-architecture 2022-10-22 00:42:53 +02:00
Djordje Todorovic ee8eb9e697 Adding LoopRewriteWithCanonicalIV LoopPass 2022-10-21 15:56:13 +02:00
Massimo Fioravanti 6a869735a9 Pipeline: fix driver for targetless invocation 2022-10-21 11:18:33 +02:00
Pietro Fezzardi bf83f40e3b Move SCEVBaseAddressExplorer.h from public headers 2022-10-21 10:00:23 +02:00
Pietro Fezzardi 25119c4377 Drop bugged addPointerQualifier for getPointerTo
This commit removes the bugged addPointerQualifier helper function,
that was wrongly pushing the pointer qualifier at the end.

Instead, we now use the correct model::Binary::getPointerTo method.
2022-10-21 09:45:28 +02:00
Massimo Fioravanti 5d730d1411 Upgrade to support starless revng 2022-10-20 16:06:13 +02:00
Massimo Fioravanti d55aa9b9e6 Pipeline: remove * from targets
Now * is just a pipeline frontend shorthand.
2022-10-20 14:20:12 +02:00
Pietro Fezzardi 887701e6f0 InitModelTypes: better support CABIFunctionType 2022-10-20 10:22:20 +02:00
Pietro Fezzardi 4df861a099 MakeModeGEPPass: fix makeBestGEPArgs for arrays 2022-10-18 17:05:50 +02:00
Pietro Fezzardi 46f54c4065 MakeModelGEPPass: std::move pickBestTAP results 2022-10-18 17:05:50 +02:00
Pietro Fezzardi 83737745af MakeModelGEPPass: fix ChildInfo dump() method 2022-10-18 17:05:46 +02:00
Pietro Fezzardi 2d1ade06b3 Support pointers to arrays in getNamedCInstance 2022-10-17 11:25:24 +02:00
Pietro Fezzardi 9589ba6962 Drop unused variable from getDependencyForFullType 2022-10-12 08:21:28 +02:00
Pietro Fezzardi 7583537848 DependencyGraph.cpp: fix typo in comments 2022-10-12 08:21:13 +02:00
Alessandro Di Federico b2ba0a59eb Merge branch 'feature/gdb' 2022-10-11 19:08:32 +02:00
Alessandro Di Federico 8aa2c2ac44 daemon/test.py: do not use memfd 2022-10-11 19:08:10 +02:00
Alessandro Di Federico 12191a8d01 daemon/test.py: use log function 2022-10-11 19:08:10 +02:00
Alessandro Di Federico 5feea4e47a Drop graphlib-backport: we require Python 3.10 2022-10-11 19:08:10 +02:00
Alessandro Di Federico d18b1a9092 Drop unused Python requirement: psutil 2022-10-11 19:08:10 +02:00
Alessandro Di Federico 6fae9fc1c5 Stop checking Python requirements 2022-10-11 19:08:10 +02:00
Alessandro Di Federico 5a99154196 Put Python packages into lib/python*/site-packages 2022-10-11 19:08:10 +02:00
Pietro Fezzardi 8f01d95195 Merge feature/ptml-fixes 2022-10-11 18:09:04 +02:00
Giacomo Vercesi 062272a615 Fix mime types 2022-10-11 17:36:29 +02:00
Giacomo Vercesi eb2148e157 Add Location info for PrimitiveTypes 2022-10-11 17:36:29 +02:00
Giacomo Vercesi 72050274e2 getNamedCInstance: drop declaration parameter
In all cases this is false
2022-10-11 17:36:29 +02:00
Giacomo Vercesi e53033d0b8 Ranks: remove use of TypeField in locations
Use the new Ranks made available by revng
2022-10-11 17:36:29 +02:00
Alessandro Di Federico cecc22c4a3 Merge branch 'feature/ptml-fixes' 2022-10-11 17:12:07 +02:00