Commit Graph

5059 Commits

Author SHA1 Message Date
Vassil Vassilev
b47016f2da TemplateArgument::print takes one more argument.
See llvm/llvm-project@99d63ccff0
2022-12-09 08:44:17 +01:00
Vassil Vassilev
4798c95740 Dropped compatibility flags F_{Text,None} -> OF_{Text,None}
See llvm/llvm-project@3302af9
2022-12-09 08:44:17 +01:00
Stefan Gränitz
ace63db064 Rework the cling JIT to use the ORCv2 interface.
The ORCv1 JIT was deprecated and removed in llvm13. The ORCv2 provides several
benefits such as parallel compilation.
2022-12-09 08:44:17 +01:00
Vassil Vassilev
b6689404a0 Use the real name not it's synonym.
See llvm/llvm-project@518d955f9d
2022-12-09 08:44:17 +01:00
Vassil Vassilev
3ed9f6c114 Add an include to TargetInfo.h 2022-12-09 08:44:17 +01:00
Vassil Vassilev
ff94269b05 llvm::make_unique -> std::make_unique 2022-12-09 08:44:17 +01:00
Vassil Vassilev
dfcbac8b76 createDriverOptTable became a singleton.
See llvm/llvm-project@433927595d
2022-12-09 08:44:17 +01:00
Vassil Vassilev
6fb14e3f8a The StoredDeclsList is reworked and more user-friendly.
See llvm/llvm-project@0cb7e7ca0c
2022-12-09 08:44:17 +01:00
Vassil Vassilev
1320eb67c6 CGFT_AssemblyFile was moved to the llvm namespace.
See llvm/llvm-project@1dfede3122
2022-12-09 08:44:17 +01:00
Vassil Vassilev
e91023391e dump() takes an ASTContext now.
See llvm/llvm-project@473fbc90d1
2022-12-09 08:44:17 +01:00
Vassil Vassilev
1b0fffe4ba Expr dependence was reworked and made protected.
By default we should get no dependence, assert that instead.

See llvm/llvm-project@ec3060c72d
2022-12-09 08:44:16 +01:00
Vassil Vassilev
1afd43b6da stripPointerCastsNoFollowAliases got renamed to stripPointerCasts
See llvm/llvm-project@2452d7030b
2022-12-09 08:44:16 +01:00
Vassil Vassilev
cef10fdf63 createOutputFile was simplified.
See llvm/llvm-project@ad7aaa475e
2022-12-09 08:44:16 +01:00
Vassil Vassilev
7fcc35181a FileInfo always has content cache and replaceBuffer became setBuffer.
See llvm/llvm-project@296314516d
2022-12-09 08:44:16 +01:00
Vassil Vassilev
0041450ed4 ContentCache::getRawBuffer is replaced with getBufferDataIfLoaded
See llvm/llvm-project@156e8b3702
2022-12-09 08:44:16 +01:00
Vassil Vassilev
62dc043874 Qualify DestroyTemplateIdAnnotationsRAIIObj. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
62d600d2cf FileManager::getFile returns an llvm::ErrorOr which needs to be checked. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
f086a7e06f getFlags returns llvm::Expected. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
a82c91dbc1 The BuiltinContext is in a separate header. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
dd4a124b8f OmitFramePointer flag became an enum.
See llvm/llvm-project@ff22ec3d70
2022-12-09 08:44:16 +01:00
Vassil Vassilev
0679bcbd75 ShowTimers went in CodeGenOptions.
See llvm/llvm-project@1821265db6
2022-12-09 08:44:16 +01:00
Vassil Vassilev
b3196f3644 CreateFromArgs takes now an ArrayRef.
See llvm/llvm-project@1fac68b0dc
2022-12-09 08:44:16 +01:00
Vassil Vassilev
9a73829827 llvm::sys::fs went into a separate header. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
6f04131d85 CPlusPlus2a was renamed to CPlusPlus20. 2022-12-09 08:44:16 +01:00
Vassil Vassilev
64125520ed getName returns now Expected<StringRef>
See llvm/llvm-project@bcc00e1afb
2022-12-09 08:44:16 +01:00
Vassil Vassilev
e08a5e0fee Preprocessor::LookupFile returns FileEntryRef.
See llvm/llvm-project@4dc5573acc
2022-12-09 08:44:16 +01:00
Vassil Vassilev
e209eba70b The mangler accepts GlobalDecls and we don't need special cases ctors and dtors.
See llvm/llvm-project/29e1a16be8216066d1ed733a763a749aed13ff47
2022-12-09 08:44:16 +01:00
Vassil Vassilev
2a956809bb Color handling moved from raw_fd_ostream to raw_ostream.
We do not need the wrapper which did more than needed.

See llvm/llvm-project@8744d7f25b
2022-12-09 08:44:16 +01:00
Vassil Vassilev
c8c61d7aa9 llvm::StringRef does not support automatic conversion to string anymore.
See llvm/llvm-project@777180a32b
2022-12-09 08:44:16 +01:00
Vassil Vassilev
83ff0acdd2 Add getSizeExpr parameter.
See llvm-project/llvm@772e266fbf
2022-12-09 08:44:16 +01:00
Jonas Hahnfeld
eb2b4bd693 Revert "Add support for profiling/debugging interpreted/JITted code"
This reverts commit 22b1606f5fd842590f04724d789de5b29495efc6 until it
is re-implemented on top of the changes for upgrading to LLVM 13.
2022-12-09 08:44:15 +01:00
Vassil Vassilev
4d262fb1f5 Revert "Disable optimizations and keep frame pointer when debugging"
This reverts commit b3193eb7c7ac0a7fb273b3c09be179bca7e8e8c9.
2022-12-09 08:44:15 +01:00
Vassil Vassilev
7bfde53296 Revert "Accept only true values for CLING_PROFILE and CLING_DEBUG"
This reverts commit a8e50f882e284b1dc47eb60951ef0672490ac31d.
2022-12-09 08:44:15 +01:00
Jiang Yi
7c1e968336 Delete UITabCompletion* with unique_ptr 2022-11-19 16:14:05 +01:00
Sara Bellei
7f3ede672b Improve the documentation to align better to the cling repository. 2022-11-19 08:44:03 +01:00
Axel Naumann
c88ce22326 Xcode 14 warns about -undefined dynamic_lookup; simply suppress:
"suppress" ignores any unresolved symbol. This requires flat_namespace,
see man ld.
2022-11-11 23:44:03 +01:00
Guilherme Amadio
086229fd34 Accept only true values for CLING_PROFILE and CLING_DEBUG
This implementation of ConvertEnvValueToBool uses const char* as
input intentionally in order to be able to accept nullptr for when
environment variables are not set, but also because using something
like std::string would require bringing in several extra headers.
2022-11-10 09:44:07 +01:00
Guilherme Amadio
13f82d17fe Disable optimizations and keep frame pointer when debugging 2022-11-10 09:44:07 +01:00
Vassil Vassilev
f2dfbff122 Change the theme with a better looking one. 2022-11-03 10:59:05 +01:00
Duncan Ogilvie
d25f2b9e53 Fix ClingTargets.cmake not being installed
The property CLING_HAS_EXPORTS seems to be a leftover, there are no references to it in the codebase.
2022-10-25 15:29:06 +02:00
Duncan Ogilvie
f9e0cd9e9e Fix the build on MSVC
Closes https://github.com/root-project/cling/issues/454
2022-10-25 15:29:06 +02:00
Vassil Vassilev
a3805bb26d Bump clad version to v1.0.
This new release includes some improvements:
  * Add support for pushforward- and pullback-style functions
  * More supported constructs in forward and reverse mode
  * Forward mode support for CUDA programs
  * AD-based Floating Point Error Estimation Framework
  * Integration with Enzyme

See more at: https://github.com/vgvassilev/clad/blob/v1.0/docs/internalDocs/ReleaseNotes.md
2022-10-15 10:59:05 +02:00
Vassil Vassilev
db6637f8dc Move the docs in the parent folder as in clang.
Adjust a few options to make the docs locally buildable.
2022-10-14 18:59:06 +02:00
Vassil Vassilev
8fce36a483 Move interpreter/docs into interpreter/cling/docs
This was done by a mistake when porting a PR from root-project/cling
2022-10-14 16:14:06 +02:00
Vassil Vassilev
5e93b60c99 Enable the Sphinx doc system for Cling 2022-10-13 18:44:07 +02:00
Vassil Vassilev
2e6dee514f gcc12's regex header file relies on a std::vector<int> instance, export it.
The C++ modules marks the std::vector<int> instantiation as not visible because
it came from the `regex` header file which we did not explicitly include.

root-project/root@a785402 introduces checks if certain declaration is visible
in dictionary generation time which was intending to semantically improve the
coherence by what the user "allowed" (or requested) rootcling to see vs what
it can see globally. While this model works well it seems to not work for
template instantiations as they won't be re-instantiated with visible modifier.

This patch works around the current issue seen with libstdc++ 12 but a better
solution would be to implement a finer grained control over the implicit template
instatiations when generating a dictionary.

Fixes root-project/root#11329
2022-10-04 20:14:06 +02:00
saisoma123
4c32554d73 Fixed some line break issues 2022-09-26 19:44:03 +02:00
saisoma123
e302c39be6 More splitting lines for getting rid of E501 error 2022-09-26 19:44:03 +02:00
Baidyanath Kundu
6cabc7a8f8 Fix long long error in findBuiltinType 2022-09-20 15:14:04 +02:00
Sergey Linev
6dd621f4d3 add override qualifier for ColoredOutput methods 2022-08-31 09:14:04 +02:00